[gdal-dev] to make black areas transparent

Frank Warmerdam warmerdam at pobox.com
Thu Jan 27 09:53:56 EST 2011


On 11-01-27 04:06 AM, ahmet temiz wrote:
> I want to make black areas transparent, and used:
>
> gdalwarp -overwrite  -dstnodata 0 -dstalpha geobk_jeo.tif geobk_jeo2.png
>
> it didn't make them transparent.

Ahmet,

Try -srcnodata 0 instead of -dstnodata 0.

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 gdal-dev mailing list