[gdal-dev] libpng: Invalid color type/bit depth combination in IHDR
Martin Landa
landa.martin at gmail.com
Tue Mar 10 07:46:12 PDT 2015
Hi,
2015-03-10 15:41 GMT+01:00 Jukka Rahkonen <jukka.rahkonen at maanmittauslaitos.fi>:
>> when trying to convert data [1] from GeoTIFF to PNG I ended up with error
> below:
>>
>> gdal_translate -of PNG dmt.tif dmt.png
>> Input file size is 19615, 11119
>> Warning 1: libpng: Invalid color type/bit depth combination in IHDR
>> ERROR 1: libpng: Invalid IHDR data
>
> What do you get from gdalinfo dmt.tif?
Ops, I forgot the link [1], here it is:
dalinfo dmt.tif -noct
Driver: GTiff/GeoTIFF
Files: dmt.tif
Size is 19615, 11119
Coordinate System is:
PROJCS["Lambert Azimuthal Equal Area",
GEOGCS["grs80",
DATUM["European_Terrestrial_Reference_System_1989",
SPHEROID["Geodetic_Reference_System_1980",6378137,298.257222101,
AUTHORITY["EPSG","7019"]],
AUTHORITY["EPSG","6258"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]],
PROJECTION["Lambert_Azimuthal_Equal_Area"],
PARAMETER["latitude_of_center",52],
PARAMETER["longitude_of_center",10],
PARAMETER["false_easting",4321000],
PARAMETER["false_northing",3210000],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]]]
Origin = (4470075.000000000000000,3113850.000000000000000)
Pixel Size = (25.000000000000000,-25.000000000000000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 4470075.000, 3113850.000) ( 12d 7'45.45"E, 51d 6'58.63"N)
Lower Left ( 4470075.000, 2835875.000) ( 12d 1'17.21"E, 48d37' 4.34"N)
Upper Right ( 4960450.000, 3113850.000) ( 19d 5'33.89"E, 50d46'40.98"N)
Lower Right ( 4960450.000, 2835875.000) ( 18d38'14.85"E, 48d17'56.80"N)
Center ( 4715262.500, 2974862.500) ( 15d28'34.54"E, 49d45'14.51"N)
Band 1 Block=19615x1 Type=UInt16, ColorInterp=Palette
NoData Value=65535
Metadata:
COLOR_TABLE_RULES_COUNT=5
COLOR_TABLE_RULE_RGB_0=4.927737e+01 3.556740e+02 255 255 0 0 255 0
COLOR_TABLE_RULE_RGB_1=3.556740e+02 6.620707e+02 0 255 0 0 255 255
COLOR_TABLE_RULE_RGB_2=6.620707e+02 9.684673e+02 0 255 255 0 0 255
COLOR_TABLE_RULE_RGB_3=9.684673e+02 1.274864e+03 0 0 255 255 0 255
COLOR_TABLE_RULE_RGB_4=1.274864e+03 1.581261e+03 255 0 255 255 0 0
Generated_with=GRASS GIS 7.1.svn
Color Table (RGB with 65536 entries)
[1] http://training.gismentors.eu/geodata/eu-dem/dmt.zip
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
More information about the gdal-dev
mailing list