Windows XP reports an error when attempting to rotate an image via the shell subsequent to the use of Imagemagick's mogrify.exe. Perhaps header information or something is being corrupted in a way that makes Windows unable to read the file?
System configuration:
Windows XP, SP3 and all updates installed as of 08 June 2009
Imagemagick v. 6.5.2-6 2009-05-16 Q16
Repro steps:
1. go to: http://tinyurl.com/kvclew
2. right click, save image to local directory FOO
3. open command window in directory FOO
4. execute 'mogrify -quality 80 IMG_0986.JPG'
5. open explorer window in directory FOO and set view to "thumbnails"
6. right click on IMG_0986.JPG and attempt to rotate clockwise
7. windows gives an error: "You cannot rotate this image..."
Oddly, note that if you use the windows explorer to rotate the image before using mogrify, then subsequent rotations will also work (!). That is, this sequence works fine:
1. go to: http://tinyurl.com/kvclew
2. right click, save image to local directory FOO
3. open explorer window in directory FOO and set view to "thumbnails"
4. right click on IMG_0986.JPG and to rotate clockwise (works ok)
5. open command window in directory FOO
6. execute 'mogrify -quality 80 IMG_0986.JPG'
7. in same explorer window, right click on IMG_0986.JPG and attempt to rotate clockwise. it still works!
If I can be of any help, please let me know. Thanks very much for your help with a great and tremendously useful package!
mogrify and winXP's shell extension don't play well together
Re: mogrify and winXP's shell extension don't play well together
one more data point:
it seems that if i invoke mogrify from jhead (which subsequently restores all EXIF information), then XP's shell rotation will still work. that is, if i use:
jhead -cmd "mogrify -quality 80 &i" IMG_0986.JPG
instead of just:
mogrify -quality 80 IMG_0986.JPG
then everything is fine. Seems like more evidence that mogrify is corrupting the EXIF information a bit.
and two more data points (2009-06-09 13:50 PST):
* issue does not seem to reproduce with windows vista and IM 6.5.3-3
* issue does reproduce with winXP and IM 6.5.3-3
it seems that if i invoke mogrify from jhead (which subsequently restores all EXIF information), then XP's shell rotation will still work. that is, if i use:
jhead -cmd "mogrify -quality 80 &i" IMG_0986.JPG
instead of just:
mogrify -quality 80 IMG_0986.JPG
then everything is fine. Seems like more evidence that mogrify is corrupting the EXIF information a bit.
and two more data points (2009-06-09 13:50 PST):
* issue does not seem to reproduce with windows vista and IM 6.5.3-3
* issue does reproduce with winXP and IM 6.5.3-3