Page 1 of 1

can't read Sun raster file (8-bit compressed RGB)

Posted: 2012-09-20T21:36:04-07:00
by rbd
Hi all,

My latest version of IM (6.7.9-5) can no longer read Sun rasterfiles I am creating. Previous versions of IM (at least up to and including whatever IM was distributed with CentOS 5.7) had no trouble with these files, and I can still display them with eog (CentOS 6.3). I can also display them on my Mac ('open' loads them into the OpenOffice draw program). Here's some output on my CentOS 6 system:

% file *ras
4075x4792x8bit.ras: Sun raster image data, 4075 x 4792, 8-bit, compressed, RGB colormap

% display 4075x4792x8bit.ras
display: improper image header `4075x4792x8bit.ras' @ error/sun.c/ReadSUNImage/403.

% eog 4075x4792x8bit.ras ### this works fine!

I have left a copy of the file at ftp://ftp.soest.hawaii.edu/rbd/4075x4792x8bit.ras for anyone who wants to take a look.

I need IM to convert these files to JPEG, which it used to do, but no longer does:

% convert 4075x4792x8bit.ras xx.jpg
convert: improper image header `4075x4792x8bit.ras' @ error/sun.c/ReadSUNImage/403.

If anyone can tell me how to get this to work (or suggest another way to do the conversion under CentOS via a command-line tool without displaying it) that would be much appreciated. Thanks!

Roger Davis
~

Re: can't read Sun raster file (8-bit compressed RGB)

Posted: 2012-09-21T04:08:39-07:00
by magick
Looks like a bug. We'll have a patch for it by sometime tomorrow in ImageMagick-6.7.9-7 Beta. Thanks.

Re: can't read Sun raster file (8-bit compressed RGB)

Posted: 2012-09-21T15:31:21-07:00
by rbd
Sorry for my ignorance, but where can I download the 6.7.9-7 beta from? I don't see it on the ImageMagick download site I'm looking at (although maybe it just hasn't been put there yet).

Thanks!

Roger

Re: can't read Sun raster file (8-bit compressed RGB)

Posted: 2012-09-21T15:35:08-07:00
by fmw42

Re: can't read Sun raster file (8-bit compressed RGB)

Posted: 2012-09-21T15:41:43-07:00
by rbd
Aargh, sorry, I'm an idiot!

Roger

Re: can't read Sun raster file (8-bit compressed RGB)

Posted: 2012-09-21T16:06:34-07:00
by rbd
Hi magick,

I just downloaded the ImageMagick-6.7.9-7.tar.gz from http://www.imagemagick.org/download/beta but the problem is not yet fixed:

% display --version
Version: ImageMagick 6.7.9-7 2012-09-21 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP

% display 4075x4792x8bit.ras
display: improper image header `4075x4792x8bit.ras' @ error/sun.c/ReadSUNImage/403.

Was I too soon, has the bugfix not yet been applied?

Thanks,

Roger

Re: can't read Sun raster file (8-bit compressed RGB)

Posted: 2012-09-21T18:42:46-07:00
by fmw42
Sometimes it takes a day to pass from the development site to the public site. If you are in a hurry and want to get the very latest, go to http://magick.imagemagick.org/download/beta/ rather than http://www.imagemagick.org/download/beta/

But you may get a version of the beta that is in progress and may error upon compile.

Re: can't read Sun raster file (8-bit compressed RGB)

Posted: 2012-09-21T19:16:06-07:00
by rbd
Thanks, Fred!

Roger

Re: can't read Sun raster file (8-bit compressed RGB)

Posted: 2012-09-21T19:25:18-07:00
by rbd
Hi magick,

The bug appears to be fixed in the beta, thank you very much!

Roger