I tried gdal translate to png:
gdal_translate image.bsq image.jpg -of JPEG -outsize 10% 10% -scale
and jpeg:
gdal_translate image.bsq image.png -of PNG -outsize 10% 10% -scale
jpeg looks better and file size is smaller. In general should I expect poor result with png?
Using the -r
cubic and bilinear are almost the same to my eyes:
gdalinfo -hist
. The viewer may also play a role it it tries to be clever and do automatic stretch for this quite dark image. Anyway PNG is a lossless format and saves the data exactly bit by bit as it comes after scaling.