1

Given as input a light 874kb jpg, I use gdal_translate -a_ullr (source) to reinject GIS georeferencing :

-a_ullr ulx uly lrx lry :
Assign/override the georeferenced bounds of the output file. This assigns georeferenced bounds to the output file, ignoring what would have been derived from the source file

My command being:

gdal_translate -a_ullr 67.0 37.5 99.0 05.0 ./color_hillsades.jpg ./color_hillsades.gis.tif

While the input is .874MB, the output is 13.5MB, or 15.51 times bigger.

enter image description here

Why does it become so huge ?

What to do to keep it light ?

1

1 Answer 1

2

Thanks to gdal_translate- why jpg compressed tif is 2 times greater than jpg file?, I found the way :

gdal_translate -a_ullr 67.0 37.5 99.0 05.0 \
               -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR \
               ./color_hillsades.jpg ./color_hillsades.gis.tif

Input is .888MB, output is a .898MB literally just 1% bigger for a georeferenced tif using JPEG compression. This .tif is loaded properly into Quantum GIS.

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.