I am trying to create .jpg
files that can be consumed on the web from a .tif
image. I would like to rely on EXIF data about the image metadata, however, I fail to read any. What am I doing wrong?
$ gdal_translate --version
GDAL 3.0.4, released 2020/01/28
$ gdalwarp -t_srs EPSG:4326 IW32001452_mask.tif /tmp/tif2jpeg.tif
Creating output file that is 1802P x 1244L.
Processing IW32001452_mask.tif [1/1] : 0...10...20...30...40...50...60...70...80...90...100 - done.
$ gdal_translate -of JPEG -scale -co write_exif_metadata=yes /tmp/tif2jpeg.tif IW32001452_mask.jpg
Input file size is 1802, 1244
0...10...20...30...40...50...60...70...80...90...100 - done.
$ exif IW32001452_mask.jpg
Corrupt data
The data provided does not follow the specification.
ExifLoader: The data supplied does not seem to contain EXIF data.