[gdal-dev] Gdal_translate overwriting images

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Sat May 12 11:53:21 EDT 2012


Hi,

I am playing with compression options and by accident used an existing image as
a target.

gdal_translate -of GTiff -co tiled=yes -co compress=jpeg q4213e.tif lzw.tif
Input file size is 12000, 12000
ERROR 1: Deleting lzw.tif failed:
Permission denied
0...10...20...30...40...50...60...70...80...90...100 - done.

It looks like gdal_translate tries to avoid overwriting but still gdalinfo shows
that the lzw.tif file is now jpeg compressed. Could it be that check is just
sending the ERROR 1 message but overwriting still happens?

-Jukka Rahkonen-



More information about the gdal-dev mailing list