Draw rectangle on multipage TIF
Posted: 2014-03-14T05:20:02-07:00
I have a multipage tif image containing 50 pages. I need to draw rectangles on page 4 and save the multipage tif in the same page order. I've attempted many things with not much success. -clone does it somewhat but I can't figure out how to get the image I drew the rectangle on back in the correct sequence. I've also attempted using *.tif[4] for example also with no success.
Any ideas?
Here are two examples of attempts with no success:
1. Outputs only single page of 50 page TIF
convert "C:\01000014333.tif[3]" -fill "rgba(0,0,0,1)" -draw "rectangle 678,848,957,894" "C:\01000014333x.tif"
2. Outputs correct number of pages but the page with rectanagle is placed at end of sequence
convert "C:\01000014333.tif" ( -clone 3 -fill "rgba(0,0,0,1)" -draw "rectangle 678,848,957,894" ) -delete 3 "C:\01000014333x.tif"
Any ideas?
Here are two examples of attempts with no success:
1. Outputs only single page of 50 page TIF
convert "C:\01000014333.tif[3]" -fill "rgba(0,0,0,1)" -draw "rectangle 678,848,957,894" "C:\01000014333x.tif"
2. Outputs correct number of pages but the page with rectanagle is placed at end of sequence
convert "C:\01000014333.tif" ( -clone 3 -fill "rgba(0,0,0,1)" -draw "rectangle 678,848,957,894" ) -delete 3 "C:\01000014333x.tif"