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.