Trying to write a 3-band JPEG using gdal_merge but keep getting the following error:
Format driver JPEG does not support creation and piecewise writing. Please select a format that does, such as GTiff (the default) or HFA (Erdas Imagine).
Here is my command:
gdal_merge.py -of JPEG -co QUALITY=90 -co EXIF_THUMBNAIL=YES -n 0 -a_nodata 0 -o /path/to/Output.jpg /path/to/inputs/band1.tif /path/to/inputs/band2.tif /path/to/inputs/band3.tif
Why am I recieving this error? I realize that my input bands are 32-bit float but I just figured they would be truncated since JPEG only supports 8-bit. Could this be my problem? I don't want to spend time fixing that if there is something else I'm missing as to why I can't create jpeg.