[GRASSLIST:3996] importing GIFs?

Alex Thorn amthorn1979 at yahoo.com
Mon Jul 1 15:19:01 EDT 2002


Hi guys.

More questions from a newbie.
I'm trying to import GIF files (or any image type
really) into GRASS, and have been having troubles.

I'm not sure exactly what the problem I am
experiencing is, whether it has to do with a bad
install of GRASS 4.3, or that I am not using images in
the correct format, or perhaps that I am not putting
them in the correct location in the filesystem
directory structure.

>From the UNIX commandline, I copied the image files
into the PERMANENT directory for my current location
(is this what it means when it says to put the files
into the "working directory"?), and then tried using
r.in.gif.  Here's what it gave me:

GRASS:~ > r.in.gif -v input=ricepic1.gif
output=ricepic1 title="Rice Cartoon 1"
1. GIF file not acceptable for conversion

My initial thought was that it might be a 24-bit
image, so I tried using the UNIX convert command:

GRASS:~ > convert ricepic1.gif ricepic1.gif87+

...and then copying *that* file into the PERMANENT
directory and again tried importing:

GRASS:~/grassdata/test/PERMANENT > r.in.gif -v
input=ricepic1.gif87+ output=ricepic1 title="Rice
Cartoon 1"

1. GIF file not acceptable for conversion

Same result if I changed the name of the .gif87+ file
to .gif before attempting the import.  Can someone
tell me what is going on?


Incidentally, before I tried importing images as GIFs,
I first tried with TIFFs, which gave the following
error:
GRASS:~ > r.in.tiff
r.in.tiff: error while loading shared libraries:
libjpeg.so.6: cannot open shared object file: No such
file or directory

Any help would be much appreciated.

Thanks,
Alex

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com



More information about the grass-user mailing list