[gdal-dev] Skipping PHOTOMETRIC=YCBCR when not reasonable

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Fri Nov 1 07:32:21 PDT 2013


Hi,

Gdal_translate throws 
ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)
if user tries to apply YCBCR to non-RGB image. It means that when I have a
mixture of RGB and B/W images I must separate them before making batch jobs.

I think that nothing bad would happen if gdal_translate in such case just
throws a warning and continues by compressing black and white image with the
default photometric settings.

-Jukka Rahkonen-



More information about the gdal-dev mailing list