Friday, 24 January 2020

Performing gdal translate to png/jpeg?



I tried gdal translate to png:


gdal_translate image.bsq image.jpg -of JPEG -outsize 10% 10% -scale

enter image description here


and jpeg:


gdal_translate image.bsq image.png -of PNG -outsize 10% 10% -scale

enter image description here


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:



enter image description here




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...