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