Changes between Initial Version and Version 2 of Ticket #1483
- Timestamp:
- Apr 1, 2007, 7:20:23 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1483
- Property Priority highest → normal
- Property Status new → closed
- Property Component default → GDAL_Raster
- Property Resolution → invalid
-
Ticket #1483 – Description
initial v2 1 2 I have an error with some large (geo)tiffs that I'm working with. I've generated them with georeferenced info via the GDAL utilities, then I want to add an overview image (like a preview) using the gdaladdo utility. If I use exiftool to add a preview first, gdaladdo reports an error in the file format. See the commands below: 1 3 {{{ 2 I have an error with some large (geo)tiffs that I'm working with. I've generated them with georeferenced info via the GDAL utilities, then I want to add an overview image (like a preview) using the gdaladdo utility. If I use exiftool to add a preview first, gdaladdo reports an error in the file format. See the commands below:3 4 4 " 5 5 Pine06:~ sage$ cp orig.tif exif_tooled.tif … … 13 13 ...10...20...30...40...50...60...70...80...90...100 - done. 14 14 " 15 15 }}} 16 16 At first I thought that it was a bug in exiftool, so I emailed the author. It looks like it's actually a bug with GDAL (or libtiff) expecting tags that aren't required for an EXIF image preview. Here is his full reply: 17 17 … … 21 21 In your case, however, ExifTool is adding IFD1, not the ExifIFD. According to the specification, ImageWidth and ImageLength are only required in IFD1 for uncompressed images. For compressed thumbnails (ie. JPEG), the only mandatory tags are: 22 22 23 -Compression24 -XResolution25 -YResolution26 -ResolutionUnit27 -ThumbnailOffset (aka JPEGInterchangeFormat)28 -ThumbnailLength (aka JPEGInterchangeLength)23 * Compression 24 * XResolution 25 * YResolution 26 * ResolutionUnit 27 * ThumbnailOffset (aka JPEGInterchangeFormat) 28 * ThumbnailLength (aka JPEGInterchangeLength) 29 29 30 30 And these are exactly what is written. … … 37 37 I followed his recommendation with setting the height and width, and GDAL threw a new error: 38 38 39 " 39 {{{ 40 40 Pine06:~ sage$ ./exiftool -v5 '-ThumbnailImage<=thumb.jpg' -IFD1:ImageWidth=512 -IFD1:ImageHeight=512 exif_tooled.tif 41 41 Pine06:~ sage$ ./gdaladdo -r average exif_tooled.tif 16 32 … … 43 43 0ERROR 1: MissingRequired:exif_tooled.tif: TIFF directory is missing required "StripOffsets" field 44 44 ...10...20...30...40...50...60...70...80...90...100 - done. 45 "46 45 }}}