[FWTools] gdalwarp with jpeg compression errors

Vikalpa Jetly vjetly at i3.com
Tue Nov 20 15:43:57 EST 2007


Hello,

I'm subsampling an 8bit 3band tiff image using gdalwarp in FWTools 2.0.0 and
running the following command:

 

gdalwarp -of GTiff  -co "TILED=YES" -co "PROFILE=GeoTIFF" -co
"COMPRESS=JPEG"  -co "PHOTOMETRIC=YCBCR" -co "JPEG_QUALITY=90" -tr 50 50
test2.tif test2_50.tif

 

This generates the following output.

 

Creating output file that is 858P x 1469L.

Processing input file test2.tif.

:0...10...20...30...40...50...60...70...80...90...100 - done.

Warning 1: JPEGFixupTagsSubsampling:Unable to auto-correct subsampling
values, likely corrupt JPEG compressed data in first strip/tile;
auto-correcting skipped

ERROR 1: TIFFSetField:test2_50.tif: Cannot modify tag "" while writing

ERROR 1: TIFFSetField:test2_50.tif: Cannot modify tag "" while writing

...

 

 

The output file gets generated and looks fine but I'm wondering as to what
is happening here. Any insights would be appreciated.

 

Thanks.

Vikalpa

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/fwtools/attachments/20071120/c295bd22/attachment.html


More information about the FWTools mailing list