Page 1 of 1

mogrify doesn't detect image format

Posted: 2009-08-06T19:34:49-07:00
by naoliv
Hi!

From http://bugs.debian.org/531350:
From the mogrify manual:
"By default, the image format of `file' is determined by its magic number."

$ file 982434113.jpg
982434113.jpg: JPEG image data, JFIF standard 1.02
$ mogrify -resize "40x40" 982434113.jpg
# OK

$ mv 982434113.jpg 982434113.tmp
$ mogrify -resize "40x40" 982434113.tmp
mogrify: no encode delegate for this image format `982434113.tmp' @ constitute.c/WriteImage/1157.
I can confirm it in latest ImageMagick (6.5.4-9).

Thank you!

Re: mogrify doesn't detect image format

Posted: 2009-08-07T10:05:07-07:00
by magick
We cannot reproduce this problem with ImageMagick 6.5.4-9, the latest release:
  • -> convert logo: logo.jpg

    -> identify logo.jpg
    logo.jpg JPEG 640x480 640x480+0+0 8-bit DirectClass 42.7kb

    -> mv logo.jpg logo.tmp

    -> mogrify -resize 40x40 logo.tmp

    -> identify logo.tmp
    logo.tmp JPEG 40x30 40x30+0+0 8-bit DirectClass 952b

Re: mogrify doesn't detect image format

Posted: 2009-08-07T10:29:51-07:00
by naoliv
Indeed.
Probably I did the test with an older version (thinking that was using the latest one).
Sorry for the noise and thank you!