[Gdal-dev] Conversion of paletted PNG to ECW does not work
Frank Warmerdam
warmerdam at pobox.com
Tue Jul 3 17:22:36 EDT 2007
Brent Fraser wrote:
> Frank,
>
> I don't think ECW supports palettes. As a work-around we
> can convert the files to 24-bit then ECW, so no big problem.
>
> My thought was the same as the original poster's: either
> have GDAL do the 8-bit to 24-bit conversion as part of the
> format translation (for convenience and to save on temporary
> disk space), or at least produce a warning message that
> paletted files are not supported (this would save time on
> user support!)
Brent,
I agree that ECWCreateCopy() should issue a warning (or if bStrict
is TRUE an error) if a palette is present on the source image.
If you file a bug, I'll "grow the scope" a bit to cover some other
common drivers, and queue it for Mateusz to work on. Many of the
CreateCopy() implementations are pretty quiet about the information
the ignore.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the Gdal-dev
mailing list