[Gdal-dev] error 1: JPEGSetupEncode:RowsPerStrip must be multiple
of 8 for JPEG
WolfgangZ
wollez at gmx.net
Tue Aug 7 07:31:40 EDT 2007
Hello,
I'm trying to convert some TIFFS so that the compression is JPEG.
The source image was a tiff with a color palette. I used pct2rgb to
convert it first.
D:\todonew>gdal_translate -of GTIFF -co "COMPRESS=JPEG" E48-104.tif
E48-104j.tif
Input file size is 8000, 5778
0ERROR 1: JPEGSetupEncode:RowsPerStrip must be multiple of 8 for JPEG
ERROR 1: TIFFWriteScanline failed.
I'm using the FWTools 1.3.5 on WinXP.
Thanks for any help
Wolfgang
PS: gdalinfo on the input file gives:
D:\todonew>gdalinfo E48-104.tif
Driver: GTiff/GeoTIFF
Files: E48-104.tif
Size is 8000, 5778
Coordinate System is:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.2572235630016,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4326"]]
Origin = (105.450000000000000,17.383333333333301)
Pixel Size = (0.000075000000000,-0.000075000000000)
Metadata:
AREA_OR_POINT=Area
Corner Coordinates:
Upper Left ( 105.4500000, 17.3833333) (105d27'0.00"E, 17d23'0.00"N)
Lower Left ( 105.4500000, 16.9499833) (105d27'0.00"E, 16d56'59.94"N)
Upper Right ( 106.0500000, 17.3833333) (106d 3'0.00"E, 17d23'0.00"N)
Lower Right ( 106.0500000, 16.9499833) (106d 3'0.00"E, 16d56'59.94"N)
Center ( 105.7500000, 17.1666583) (105d45'0.00"E, 17d 9'59.97"N)
Band 1 Block=8000x1 Type=Byte, ColorInterp=Red
Band 2 Block=8000x1 Type=Byte, ColorInterp=Green
Band 3 Block=8000x1 Type=Byte, ColorInterp=Blue
More information about the Gdal-dev
mailing list