Le samedi 15 août 2015 11:15:33, NASAHARA Kenlo a écrit : > Hi, GDAL people, > > I am trying to make a thumbnail from a GeoTIFF image > using gdaladdo and am confronting a problem. > My GeoTIFF file is ALOS AVNIR2 file (4 bands). > > After browsing the mannual (http://www.gdal.org/gdaladdo.html), > I tried the following command: > $ gdaladdo -ro --config COMPRESS_OVERVIEW JPEG --config > PHOTOMETRIC_OVERVIEW YCBCR --config INTERLEAVE_OVERVIEW PIXEL > ALAV2A273212850-OORIRFU.RCRefG.GEO.tif 16 > > then I got the following errors: > ERROR 6: PHOTOMETRIC_OVERVIEW=YCBCR requires a source raster with only 3 > bands (RGB) Overview building failed. > > All I want to do is create a small true-color jpeg image (RGB=321) > from the 4 band satellite image in GeoTIFF format. I appreciate > your suggestions.
Kenlo, Try instead: gdal_translate -of JPEG -b 3 -b 2 -b 1 in.tif out.jpg -outsize 6.25% 6.25% Best regards, Even -- Spatialys - Geospatial professional services http://www.spatialys.com _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
