0

I have over 1000 georeferenced .img files I need to compress down for sharing. They are 16 bit 4 band RGBI, and use about 800mb of space each. I really like the result of compressing using Gdal_translate JPEG compression with photometric = YCBCR. I can easily run this compression after I transform the .img files to 8bit 3 band .tif files using arcmap render function. Now I am looking to batch compress, so I need a way to batch change the .img files to 3 band 8bit. Can I run Gdal_translate with the mask band feature and some other function to translate 16 to 8 bit .img to tif?

I know I can batch the .img files and create 8bit tifs using ERDAS Imagine software. I'm willing to do that, and then try to batch reduce the bands with Gdal, unless there is a more concise way.

  • Can you open these files with gdal? then you can also reduce the bitsize with gdal in one go. gdal_translate -of GTiff -ot Byte -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR .... Optional with -scale parameter. – pLumo Jan 16 at 16:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.