mogrify doesn't detect image format

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
naoliv
Posts: 110
Joined: 2007-12-10T18:54:27-07:00
Location: Brazil

mogrify doesn't detect image format

Post 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!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: mogrify doesn't detect image format

Post 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
naoliv
Posts: 110
Joined: 2007-12-10T18:54:27-07:00
Location: Brazil

Re: mogrify doesn't detect image format

Post 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!
Post Reply