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

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
rbd
Posts: 21
Joined: 2012-09-13T12:41:06-07:00
Authentication code: 67789

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

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

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

Post by magick »

Looks like a bug. We'll have a patch for it by sometime tomorrow in ImageMagick-6.7.9-7 Beta. Thanks.
rbd
Posts: 21
Joined: 2012-09-13T12:41:06-07:00
Authentication code: 67789

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

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post by fmw42 »

rbd
Posts: 21
Joined: 2012-09-13T12:41:06-07:00
Authentication code: 67789

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

Post by rbd »

Aargh, sorry, I'm an idiot!

Roger
rbd
Posts: 21
Joined: 2012-09-13T12:41:06-07:00
Authentication code: 67789

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

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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.
rbd
Posts: 21
Joined: 2012-09-13T12:41:06-07:00
Authentication code: 67789

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

Post by rbd »

Thanks, Fred!

Roger
rbd
Posts: 21
Joined: 2012-09-13T12:41:06-07:00
Authentication code: 67789

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

Post by rbd »

Hi magick,

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

Roger
Post Reply