Fails to convert SGI Iris RGB onto itself

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
towolf
Posts: 3
Joined: 2012-01-31T14:07:55-07:00
Authentication code: 8675308

Fails to convert SGI Iris RGB onto itself

Post by towolf »

Somehow IM writes invalid SGI Iris RGB format images since recently. I cannot extactly tell when this started since our scripts are only run sporadically

I’m using the regular Imagemagick in the Ubuntu archive (precise p, 12.04). The version is

Version: ImageMagick 6.6.9-7 2012-02-17 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP

And the Ubuntu build: 8:6.6.9.7-5ubuntu3

Here’s an example image
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Fails to convert SGI Iris RGB onto itself

Post by magick »

RGB is an ambiguous extension so you must write the image with an explicit tag. For example,
  • > convert regine-osram-filled.rgb sgi:image.rgb
    > identify -verbose regine-osram-filled.rgb image.rgb
    regine-osram-filled.rgb SGI 512x512 512x512+0+0 8-bit DirectClass 787KB
    image.rgb[1] SGI 512x512 512x512+0+0 8-bit DirectClass 787KB
towolf
Posts: 3
Joined: 2012-01-31T14:07:55-07:00
Authentication code: 8675308

Re: Fails to convert SGI Iris RGB onto itself

Post by towolf »

Thanks, that makes it work.
Post Reply