GDAL LZW PREDICTOR : urgent help

View: New views
3 Messages — Rating Filter:   Alert me  

GDAL LZW PREDICTOR : urgent help

by SriRam Prasad Bhasker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Can anyone send me the syntaz of compression a image using GDAL_TRANSLATE with the Predictor Option

My Objective is to compress an Image further more .

Adobe CS2 is compressing the image even further. can anyone what compression algorithm does Adobe Cs2 use to
compress the TIFF Files... (Is it LZW or LZW predictor)

right now i am using the below syntax.
gdal_translate -of GTiff -co PREDICTOR=2 -co compress=lzw ab.tif gplzw.tif
  • COMPRESS=[JPEG/LZW/PACKBITS/DEFLATE/NONE]:
  • PREDICTOR=[0/1/2]

_______________________________________________
Gdal-dev mailing list
Gdal-dev@...
http://lists.maptools.org/mailman/listinfo/gdal-dev

Re: GDAL LZW PREDICTOR : urgent help

by Brent Fraser :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have a look at http://www.gdal.org/frmt_gtiff.html
You might try COMPRESS=JPEG with a low number for JPEG_QUALITY, but this
is a "lossy" compression technique.

> Can anyone send me the syntaz of compression a image using GDAL_TRANSLATE
> with the Predictor Option
>
> My Objective is to compress an Image further more .
>
> Adobe CS2 is compressing the image even further. can anyone what
> compression algorithm does Adobe Cs2 use to
> compress the TIFF Files... (Is it LZW or LZW predictor)
>
> right now i am using the below syntax.
> gdal_translate -of GTiff -co PREDICTOR=2 -co compress=lzw ab.tif gplzw.tif
>
> COMPRESS=[JPEG/LZW/PACKBITS/DEFLATE/NONE]:
> PREDICTOR=[0/1/2]
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev@...
> http://lists.maptools.org/mailman/listinfo/gdal-dev
>


_______________________________________________
Gdal-dev mailing list
Gdal-dev@...
http://lists.maptools.org/mailman/listinfo/gdal-dev

Re: GDAL LZW PREDICTOR : urgent help

by Andrey Kiselev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Feb 03, 2007 at 08:44:39AM +0530, SriRam Prasad Bhasker wrote:
> My Objective is to compress an Image further more .
>
> Adobe CS2 is compressing the image even further. can anyone what
> compression algorithm does Adobe Cs2 use to
> compress the TIFF Files... (Is it LZW or LZW predictor)

You can check it yourself using the tiffinfo utility.  Predictor value
will be reported along with compression scheme used for that file.

> right now i am using the below syntax.
> gdal_translate -of GTiff -co PREDICTOR=2 -co compress=lzw ab.tif gplzw.tif

Preictor 2 is used for floating point images only, so if your image is
not floating point you will not get any effect from that predictor. For
integer data choose predictor 1.

Best regards,
Andrey

--
Andrey V. Kiselev
ICQ# 26871517
_______________________________________________
Gdal-dev mailing list
Gdal-dev@...
http://lists.maptools.org/mailman/listinfo/gdal-dev