Help with resize and ">" option
Posted: 2008-05-18T10:45:40-07:00
I thought the ">" option on the resize command should cause the image to be resized only if one of the dimensions exceeds the geometry spec. However, it seems that the image is always changed or at least rewritten as the file date/time stamp is always updated even if the geometry does not exceed the spec.
For example:
mogrify -resize "200x200>" folder.jpg
Initially folder.jpg is 300x300
After above command is run, size is 200x200
If above command is run again, size is still 200x200, but folder.jpg file date/time stamp is updated.
Am I not understanding how ">" is intended to work? Or am I just not using it correctly?
I'm trying to use this resize album art on my MP3 player. Most album art in my library is around 500x500. I'd like to be able to sync the player and then run a batch file that will resize any larger images down to 200x200. Any images already 200x200 or less should be left alone. Is this possible with ImageMagick?
I'm using the 6.4.1-3-Q16-windows-dll version on Windows XP SP2.
For example:
mogrify -resize "200x200>" folder.jpg
Initially folder.jpg is 300x300
After above command is run, size is 200x200
If above command is run again, size is still 200x200, but folder.jpg file date/time stamp is updated.
Am I not understanding how ">" is intended to work? Or am I just not using it correctly?
I'm trying to use this resize album art on my MP3 player. Most album art in my library is around 500x500. I'd like to be able to sync the player and then run a batch file that will resize any larger images down to 200x200. Any images already 200x200 or less should be left alone. Is this possible with ImageMagick?
I'm using the 6.4.1-3-Q16-windows-dll version on Windows XP SP2.