Hi All,
Am desperately looking for GIF Image De compressor. Can anyone please help me decompressing Giff images compressed with lzw.
* Will ImageMagick convert gif images with lzw conversion to uncompressed gif image.
* If ImageMagick cannot help me, then can anyone let me know any other tool/library which can do this.
Thanks In Advance.
Mady
GIF LZW Decompression
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: GIF LZW Decompression
Post a link to an example GIF that you want to convert, so we can test it.
Also see non-IM tools at http://www.imagemagick.org/Usage/formats/#gif_non-im
Also see non-IM tools at http://www.imagemagick.org/Usage/formats/#gif_non-im
Re: GIF LZW Decompression
Hello,
Just to bump this issue - I am in the same position as madankn79...
I am converting a tiff to a gif, the command would be
convert +compress <file.tif> <file.gif>
+compress however does not work, and neither does -compress None. gif files will always be produced with an LZW compression:
$ convert +compress ucid00182.tif test.gif
$ identify -verbose test.gif | grep -i compre
Compression: LZW
Please help...
I am using debian wheezy:
imagemagick 8:6.6.9.7-5+b1
Thank you in advance!!
Just to bump this issue - I am in the same position as madankn79...
I am converting a tiff to a gif, the command would be
convert +compress <file.tif> <file.gif>
+compress however does not work, and neither does -compress None. gif files will always be produced with an LZW compression:
$ convert +compress ucid00182.tif test.gif
$ identify -verbose test.gif | grep -i compre
Compression: LZW
Please help...
I am using debian wheezy:
imagemagick 8:6.6.9.7-5+b1
Thank you in advance!!
Re: GIF LZW Decompression
If you just need the uncompressed image, why not convert it to PPM which is
a simple uncompressed format? If the output must be GIF but uncompressed
for some reason, there is libungif. Note that there is no longer any patent issue
about LZW which was the motivation for writing libungif about 1995.
See http://directory.fsf.org/wiki/Libungif
a simple uncompressed format? If the output must be GIF but uncompressed
for some reason, there is libungif. Note that there is no longer any patent issue
about LZW which was the motivation for writing libungif about 1995.
See http://directory.fsf.org/wiki/Libungif
Re: GIF LZW Decompression
thank you for your feedback!
I really needed the uncompressed gif for some statistical work (and the work must be done on a gif only unfortunately). libungif tools don't seem to have any straight forward conversion between tiff and gif (tried tiff->rgb->gif but didn't work properly).
I guess I must write something myself (doh!)
I really needed the uncompressed gif for some statistical work (and the work must be done on a gif only unfortunately). libungif tools don't seem to have any straight forward conversion between tiff and gif (tried tiff->rgb->gif but didn't work properly).
I guess I must write something myself (doh!)
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: GIF LZW Decompression
Did you try putting +compress after the input image is read in. See http://www.imagemagick.org/Usage/basics/#why
convert ucid00182.tif +compress test.gif
or
convert ucid00182.tif -compress none test.gif
convert ucid00182.tif +compress test.gif
or
convert ucid00182.tif -compress none test.gif
Re: GIF LZW Decompression
Same result unfortunately...
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: GIF LZW Decompression
Yes, I tried the same thing on some test images and got the same result -- cannot get rid of LZWRagnar0k wrote:Same result unfortunately...
see non-im solutions at http://www.imagemagick.org/Usage/formats/#gif_non-im
Re: GIF LZW Decompression
ImageMagick supported uncompressed GIF but we removed support when the LZW compression patent expired world-wide.
Re: GIF LZW Decompression
ImageMagick-5.5.7 is still available at SourceForge and I believe it supports uncompressed GIF.