I have a image complete.tif with size 1228x567. A part of this image (with size 655x376) has pixels that correspond to an actual picture. Rest of the pixels have transparent background (no color). When I crop using
Code: Select all
convert complete.tif -trim cropped.tif
Now, I need the information the co-ordinates of the bounding box of the picture inside the original image complete.tif. Is there any command that peeps through complete.tif and provides information about the bounding box for the actual picture? (say, "roll complete.tif by 10 pixels to the right and 50 pixels down to get the actual picture aligned to left-top corner")?
Thanks
Vinay