1 . There seems to be a problem with DNG files (I tried from different cameras : Pentax K-3, Pentax K-5 IIs, Pentax K-5, Leica M9, Nokia Lumia 1020), every thumbnail extract with this command is empty (0 bytes) :
But with a PEF file there are 3 preview images : Jpeg from Raw, Preview Image and Thumbnail Image.
How can I get always the smallest image (Thumbnail Image or Preview Image) ?
The image is allways in landscape, could the thumbnail be rotated as stated in the exif ?
Kind regards,
F.Schneider
Last edit: fs999 2015-11-09
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You could use a user-defined tag to return the smallest preview image. See the sample config file for how to do this: http://owl.phy.queensu.ca/~phil/exiftool/config.html The BigImage tag in this config file does exactly this, except it returns the largest instead of the smallest image. ExifTool doesn't do image manipulations, so it won't rotate the thumbnail. You can use something like ImageMagick for this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have a bug report and a few questions.
1 . There seems to be a problem with DNG files (I tried from different cameras : Pentax K-3, Pentax K-5 IIs, Pentax K-5, Leica M9, Nokia Lumia 1020), every thumbnail extract with this command is empty (0 bytes) :
exiftool -b -ThumbnailImage image.dng > thumbnail.jpg
2 . Could the thumbnail be rotated as the photo ?
3 . Could it be possible to have the exiftool as DLL ?
Kind regards
F.Schneider
Last edit: fs999 2015-11-06
ExifTool only extracts information that exists in the file. Use this command to see what embedded images exist: exiftool -preview:all FILE
Hello,
I tried your command :
Then tried to extract :
But file is still empty !
Kind regards,
F.Schneider
Ok ! Found the problem !
This command works :
But with a PEF file there are 3 preview images : Jpeg from Raw, Preview Image and Thumbnail Image.
How can I get always the smallest image (Thumbnail Image or Preview Image) ?
The image is allways in landscape, could the thumbnail be rotated as stated in the exif ?
Kind regards,
F.Schneider
Last edit: fs999 2015-11-09
You could use a user-defined tag to return the smallest preview image. See the sample config file for how to do this: http://owl.phy.queensu.ca/~phil/exiftool/config.html The BigImage tag in this config file does exactly this, except it returns the largest instead of the smallest image. ExifTool doesn't do image manipulations, so it won't rotate the thumbnail. You can use something like ImageMagick for this.
Thank you very much. It worked !