Page 1 of 1

Fails to convert SGI Iris RGB onto itself

Posted: 2012-06-01T05:23:37-07:00
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

Re: Fails to convert SGI Iris RGB onto itself

Posted: 2012-06-01T06:15:01-07:00
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

Re: Fails to convert SGI Iris RGB onto itself

Posted: 2012-06-07T06:48:31-07:00
by towolf
Thanks, that makes it work.