0

I would like to convert a GEOTIFF to a normal TIFF with python. I'm trying to use gdal but cannot if more than one page..

How can I do it please ?

Thanks for help

1 Answers1

0

You can use gdal.Translate for this. more info

snippet:

from osgeo import gdal
    
options_list = [
    '-ot Byte',
    '-of JPEG',
    '-b 1',
    '-scale'
]           

options_string = " ".join(options_list)
    
gdal.Translate(
    'save_image_path.jpg',
    'image_path.tif',
    options=options_string
)
Tal Folkman
  • 2,368
  • 1
  • 7
  • 21
  • Thanks for your answer ! It works good but I need to save the converted image in "TIFF" format. And when I replace "JPEG" by "TIFF" I got the error "Output driver `TIFF' not recognised" – Léo Dunand Jan 19 '22 at 13:06