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 Answer 1

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
)
1
  • 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" Commented Jan 19, 2022 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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