Removing thumbnail from tiff file [solved]

Hi everyone,

I am looking a command line solution to remove thumbnail recorded whithin tiff file.

The master part is usually identified as IFD-0 and the thumbnail is rescorded as a subfile Type IFD1 whithin the tiff file. I would like to remove all data related to the IFD1 part.

Below is the IFD1 part extracted with Exiftool.

[EXIF]          Subfile Type                    : Reduced-resolution image
[EXIF]          Image Width                     : 105
[EXIF]          Image Height                    : 160
[EXIF]          Bits Per Sample                 : 8 8 8
[EXIF]          Compression                     : Uncompressed
[EXIF]          Photometric Interpretation      : RGB
[EXIF]          Strip Offsets                   : 85244332
[EXIF]          Samples Per Pixel               : 3
[EXIF]          Rows Per Strip                  : 160
[EXIF]          Strip Byte Counts               : 50400
[EXIF]          Planar Configuration            : Chunky
[EXIF]          Thumbnail TIFF                  : (Binary data 50616 bytes, use -b option to extract)

The solution I currently use splits the input tiff file containing thumbnail into two files:

  • one tiff the master part without thumbnail (my goal)
  • one tiff with thumbnail.

then it requires to remove the thumbnail tiff file and rename back the tiff file without thumbnail.

I look for a more straitghtforward solution.

Thank you in advance for your help.

Cheers,
Romain

exiftool -ifd1:all= -m [FILE NAME]

In my hands, this results in a warning but the result seems to be okay. But be sure to test this first and only apply to files for which you have backups .

Thanks Thomas- for your help,

From my side, it does not change anything. The file stays unchanged. (date stamp is the same).

Oops sorry I missed one character: “=” and it makes the difference ! It works

Should I change the status of this post to Solved ?

Thanks again Thomas!