I have a big high-resolution orthophoto image (6cm/pixel, 22gb). I need to convert it to a JPEG image. Using QGIS (Raster - Conversion - Translate (Covert Format)) or the same GDAL command in OSGeo4W shell gives me the same error
Input file size is 152068, 195130
0Warning 1: 4-band JPEGs will be interpreted on reading as in CMYK colorspace
ERROR 1: libjpeg: Maximum supported image dimension is 65500 pixels
I tried to deflate the quality of the image through gdal_warp and gdal_translate commands to 8-9 cm/pix (I can't go lower than that) and it reduced file sizes to 12-10GB. But even though I have the same Error. I can't convert the image through PhotoShop either because it just drops every time because of such big files. Is there another way to convert a big GeoTIFF file into a JPEG image without losing the quality of the initial data?
JPEG/JFIF supports a maximum image size of 65,535×65,535 pixels
en.wikipedia.org/wiki/JPEG. But JPEG is a poor choice for big images anyway because for reading any data out of JPEG the whole file must be decompressed. Split the image to reasonably sized parts if you really need just JPEG format.