6.9.0-1 and default output formats

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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

6.9.0-1 and default output formats

Post by snibgo »

On Windows 8.1, downloaded from http://www.imagemagick.org/download/bin ... static.exe .

The default format for output filetypes seems broken. For example, the following produce binary-identical files, all in the PPM compressed format.

Code: Select all

%IMG6901%convert rose: rose.png
%IMG6901%convert rose: rose.jpg
%IMG6901%convert rose: rose.tiff
%IMG6901%convert rose: rose.gif
%IMG6901%convert rose: rose.exr
A workaround is to use a prefix, eg

Code: Select all

%IMG6901%convert rose: PNG:rose.png
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 6.9.0-1 and default output formats

Post by fmw42 »

I see the same thing on my Mac OSX Snow Leopard with IM 6.9.0.1


convert rose: rose.png
identify -verbose rose.png
Image: rose.png
Format: PPM (Portable pixmap format (color))


It seems to keep whatever is the input format rather than use the output image's suffix to change formats.

convert lena33.jpg tmp.png
identify tmp.png
tmp.png JPEG 512x512 512x512+0+0 8-bit sRGB 76.2KB 0.000u 0:00.000
JodieC
Posts: 82
Joined: 2014-10-03T21:38:50-07:00
Authentication code: 6789

Re: 6.9.0-1 and default output formats

Post by JodieC »

I've had something like this happen as well, I had to change my scripts on Linux to prefix the format.
Then I got three segfaults I can't reproduce. *smh*
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 6.9.0-1 and default output formats

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.9.0-2 Beta, available by sometime tomorrow. Thanks.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: 6.9.0-1 and default output formats

Post by snibgo »

As this has broken a fundamental feature of IM, you might consider re-releasing 6.9.0-1 or scheduling a rapid release of 6.9.0-2.
snibgo's IM pages: im.snibgo.com
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 6.9.0-1 and default output formats

Post by magick »

The 6.9.0-2 release is available now.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: 6.9.0-1 and default output formats

Post by snibgo »

Great, thanks.
snibgo's IM pages: im.snibgo.com
JodieC
Posts: 82
Joined: 2014-10-03T21:38:50-07:00
Authentication code: 6789

Re: 6.9.0-1 and default output formats

Post by JodieC »

Seems to work better from here, thanks!
User avatar
Marsu42
Posts: 75
Joined: 2014-06-12T03:17:45-07:00
Authentication code: 6789
Location: Berlin

Re: 6.9.0-1 and default output formats

Post by Marsu42 »

magick wrote:The 6.9.0-2 release is available now.
Thanks for fixing this, after trying to debug my scripts to no avail, this is a good incentive to visit the IM forum :-) ... I couldn't imagine for this basic fault, actually IM itself is to blame. Probably some regression testing suite to avoid something like this would be in order, or extending the beta testing period of new versions?
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: 6.9.0-1 and default output formats

Post by dlemstra »

We added a unit test for this mistake I made :) The patch was created right before the release.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply