[FWTools] rgb2pct crashes on windows

Frank Warmerdam warmerdam at pobox.com
Thu Feb 9 10:16:48 EST 2006


Luca Manganelli wrote:
> Hi,
> 
> I use rgb2pct to reduce colours number of a TIF.
> 
>   rgb2pct.bat -n 256 -of GTiff 0601013_1.tif 06.tif
> 
> it is OK
> 
> but with
> 
>   rgb2pct.bat -n 65535 -of GTiff 0601013_1.tif 06.tif
> 
> python crashes. (It do also with  -n 1024)

Luca,

The underlying function only supports up to 256
palette entries.  If you file a bug on the issue
I make sure we get a decent error message instead of a
crash.

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    | Geospatial Programmer for Rent



More information about the FWTools mailing list