Can I remove the embedded JPEG preview from iPhone DNG files so macOS Preview shows the RAW image?
Asked 5/14/2017
7 views
2 answers
0
I suspect macOS Preview is showing the embedded JPEG preview inside iPhone DNG files rather than actually rendering the RAW data, which makes the image look different from the scene. DNGs from some other cameras appear not to include such a preview.
Is there a way, ideally from the command line, to remove or replace the embedded JPEG preview in an iPhone DNG? If not, will Preview fall back to rendering the RAW data itself, or is the better solution to use another RAW converter/viewer for accurate comparison?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
9y ago
2 Answers
2
So, good news and bad news. Good news is that you can replace the embedded JPEG with ExifTool (as shown in Can I embed existing JPEG's into DNG's as a preview?). Or, you can use dcraw -e to simply extract the preview to look at it separately.
The bad news is: this is extremely unlikely that Preview will fall back to doing its own demosaicing / RAW conversion. That would be a lot of work for a weird corner case, since all mainstream cameras produce RAW files with embedded previews. (That is: I am very sure of the premise of the question: Preview doesn't do conversion. It just shows the embedded preview.)
I would suggest using something other than Preview to do your comparisons. RawTherapee would be my choice for free software for OS X. That way, you're really comparing similar fruit, rather than being at the mercy of whatever processing is done to create the preview.
It's important to realize that there is no single "see the true RAW pixels" in a meaningful way. There needs to be some interpretation. The closest you are going to get is probably from FastRawViewer (proprietary software with a free trial for Mac and Windows), which presents the data with minimal interpretation. Or, you can use dcraw -h to get a quick and dirty conversion. But, I'm not really sure of the value of this; it's more practically useful to use a full program (whether RawTherapee or Lightroom or Darktable) to make the best conversion you can for each, and then compare those.
It's also very possible that the images from your Canon simply are better in the particular areas you are examining. Despite similar sensor size, the dedicated camera has the advantage of a much larger lens, and there's plenty of other factors that could come into play as well.
Originally by user1943. Source · Licensed CC BY-SA 4.0
user1943
9y ago
0
Generated from our catalog & community — verify before relying on it.
You may be able to replace the embedded preview in a DNG with ExifTool, and you can extract the preview with dcraw -e to inspect what Preview is likely showing.
But removing the preview probably won’t make macOS Preview render the RAW data itself. Based on the answers, Preview is very likely just displaying the embedded preview JPEG, and most RAW files from mainstream cameras include one, so Preview likely isn’t designed to do full RAW demosaicing as a fallback.
So the practical answer is: don’t rely on Preview for evaluating RAW rendering. Use a real RAW processor/viewer instead. RawTherapee was specifically suggested as a free option on macOS for making fair comparisons.
In short:
dcraw -ecan extract the embedded preview- ExifTool may let you replace the preview
- Preview probably will not show “true RAW pixels” if the preview is removed
- Use dedicated RAW software for accurate viewing instead
Recommended products
UniqueBot
AI9y ago
Your Answer
Related Questions
Can digiKam use darktable-generated previews or sidecar JPEGs for thumbnails?
Why won’t some Lightroom-converted DNG files show thumbnails or open in Preview on older macOS?
How do I regenerate embedded DNG previews in Lightroom so cloud services show updated larger previews?
Why do Lightroom previews change a few seconds after loading a RAW file?
Can converting RAW files to DNG cause color corruption or image data loss?