Read thumbnail/embedded JPEG in DNG file
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have a compressed DNG file which I can preview in the Photos app on Windows 11, possibly because there is an embedded JPEG aka thumbnail in the DNG file. Is there a way to read this thumbnail into Matlab? I figure if Windows Photos can do it, Matlab should be able to also. I can't seem to use imread as suggeted here to get the preview, however:
imread('SomeCompressedDngFile.DNG') % Error: Unable to read TIFF file "SomeCompressedDngFile.DNG". File is corrupt or image does not
contain any readable tiles.
imread('SomeCompressedDngFile.DNG', 'jpeg') % Error: 'SomeCompressedDngFile.DNG is not a jpeg file
2 comentarios
Walter Roberson
el 28 de Feb. de 2023
Note that the TIFF content itself is probably not going to make sense as DNG images are typically compressed in a way that the Tiff class does not know how to handle.
Respuesta aceptada
KAE
el 3 de Mzo. de 2023
Editada: KAE
el 6 de Mzo. de 2023
5 comentarios
Walter Roberson
el 6 de Mzo. de 2023
It looks like the answer might be to use .NET
System.IO.File.GetCreationTime(PATH)
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import and Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!