Menu

DNG thumbnail is empty

fs999
2015-11-06
2015-11-10
  • fs999

    fs999 - 2015-11-06

    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
  • Phil Harvey

    Phil Harvey - 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

     
  • fs999

    fs999 - 2015-11-09

    Hello,

    I tried your command :

    C:\Data\Photos>exiftool -preview:all K5S04498.DNG
    Preview Image : (Binary data 40848 bytes, use -b option to extract)

    Then tried to extract :

    exiftool -b -ThumbnailImage K5S04498.DNG > thumbnail.jpg

    But file is still empty !

    Kind regards,
    F.Schneider

     
  • fs999

    fs999 - 2015-11-09

    Ok ! Found the problem !

    This command works :

    exiftool -b -Preview:PreviewImage K5S04498.DNG > thumbnail.jpg

    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
  • Phil Harvey

    Phil Harvey - 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.

     
  • fs999

    fs999 - 2015-11-10

    Thank you very much. It worked !

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.