Issues with Multiple "convert -extract wxh+x+y"
Posted: 2012-04-23T17:16:35-07:00
version 6.7.5-7 on Linux Mint 10
My program extracts a portion of an image using "convert -extract wxh+x+y input.tif interim.tif" syntax, and that gives me the results I am looking for. However, when I subsequently want to extract a portion of interim.tif using the same syntax "convert -extract wxh+x+y interim.tif output.tif", it does not give me the expected results. It either gives me an unexpected output.tif (different location or different size) or doesn't find anything. I think that my program is correct because if I open the interim.tif in GIMP and then resave it as interim.tif, I do get the expected output.tif results. So it looks like ImageMagick must be using some sort of saved property when doing "convert -extract" conversions? Can anyone confirm how I should be doing multiple "convert -extract" conversions (input.tif->convert/extract->interim.tif->convert/extract->output.tif)?
My program extracts a portion of an image using "convert -extract wxh+x+y input.tif interim.tif" syntax, and that gives me the results I am looking for. However, when I subsequently want to extract a portion of interim.tif using the same syntax "convert -extract wxh+x+y interim.tif output.tif", it does not give me the expected results. It either gives me an unexpected output.tif (different location or different size) or doesn't find anything. I think that my program is correct because if I open the interim.tif in GIMP and then resave it as interim.tif, I do get the expected output.tif results. So it looks like ImageMagick must be using some sort of saved property when doing "convert -extract" conversions? Can anyone confirm how I should be doing multiple "convert -extract" conversions (input.tif->convert/extract->interim.tif->convert/extract->output.tif)?