Open

by damned truths

submit your photo


Hall of Fame
View past winners from this year

Please participate in Meta
and help us grow.

Take the 2-minute tour ×
Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. It's 100% free, no registration required.

Using CHDK with my Canon A550 I get DNG files that do not have an embedded preview image only a very small thumbnail (see this question). However, alongside the DNG a full resolution JPEG file is created by default. Can I somehow use that existing JPEG file as the DNG preview? Is there some kind of tool to take that file and embed it inside the DNG? If so, would that be faster than generating and embedding DNG previews via Lightroom?

The JPEG and DNG files have the same filename except for the extension.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

I think you should be able to do it using "exiftool" --- I tested on a Linux PC, via commandline, and with a Sony ARW image, so your mileage may vary --- I have no DNG to test with.

The command is basically:

exiftool '-previewImage<=myown.jpg' test.arw

(the quotes are needed in Unix to prevent the shell interpretation of <=). I have a bit of problems with the orientation of the embedded preview, but probably you can work out a solution with a bit of testing.

share|improve this answer
    
The command runs but doesn't change the DNG file in any way. It outputs: 0 image files updated; 1 image files unchanged –  Bart Arondson Jan 22 at 16:57
    
Maybe that does not work with DNG. Worth asking to the exiftool developers, I think. –  Rmano Jan 22 at 17:11
    
It worked for me on this DNG file I have version 9.13 on Linux Ubuntu. –  Rmano Jan 22 at 17:45
    
I've posted on the exiftool forum to see what's going on. This is the JPG file I'm trying embed in this DNG file –  Bart Arondson Jan 22 at 17:53
2  
I've got a response there saying that, because my original DNG image lacks a previewimage field in the exif info, Exiftool can't be used. The previewimage field needs to be present before Exiftool can add a JPG to it. Exiftool is unable to create the previewimage field by itself because it can't modify the directory structure of a TIFF-format image. Thanks for your help though. –  Bart Arondson Jan 22 at 18:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.