rgb2pct.py "Permission denied" exception
|Reported by:||lpinner||Owned by:||warmerdam|
rgb2pct.py crashes with a Permission Denied exception when attempting to create a temporary tiff file in a directory that the user does not have write permission for. This can happen when the script is run from a GUI such as QGIS, eg - http://gis.stackexchange.com/a/60166/2856
Suggested patch attached that uses a secure temp file.