You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have the load high res on zoom setting enabled but I'm having issues when zooming on DNG picture. Some are very low quality (DNG: 6000x4000, preview: 256x171) and some others are alright (DNG: 4032x3024, preview: 1280x960).
After some digging, I found out that the issue seems to be coming from Imagick. I tried to replicate the code from getImageJpeg
Applied to both file, it generates the same output as what Memories gives me.
Exiftool gives me the following:
exiftool -json -preview:all my_picture.DNG
// Non working file
[{
"SourceFile": "non_working_test.DNG",
"JpgFromRaw": "(Binary data 1774170 bytes, use -b option to extract)",
"PreviewImage": "(Binary data 53688 bytes, use -b option to extract)",
"ThumbnailTIFF": "(Binary data 131544 bytes, use -b option to extract)"
}]
/// Working file
[{
"SourceFile": "PXL_20230903_184954003.dng",
"PreviewImage": "(Binary data 169066 bytes, use -b option to extract)"
}]
By extracting the previews for both files, it seems that Imagick uses PreviewImage in the case of my working DNG, but uses ThumbnailTIFF in the case of the non working DNG. (the extracted ThumbnailTIFF gives me the low quality preview of 256x171).
I've been trying to understand how Imagick handles the DNG load and conversion, but to no avail...
It seems ImageMagick uses a delegates.xml file to delegate encoding/decoding for certain file type, and DNG is part of the config, but uses ufraw-batch which is deprecated and not installed on my system, but still loads without it. So I'm really confused as to what to do to prevent Imagick to pick the law quality Tiff preview in my DNGs...
So I've no experience with this and can be little help here. Though I'd say one way to deal with this is to shoot both JPEG and DNG and have them in the same folder with the same name. Memories will then collapse them into one file so you can view the JPEG your camera generated and use the DNG in whatever dedicated software you use.
Describe the bug
I have the load high res on zoom setting enabled but I'm having issues when zooming on DNG picture. Some are very low quality (DNG: 6000x4000, preview: 256x171) and some others are alright (DNG: 4032x3024, preview: 1280x960).
After some digging, I found out that the issue seems to be coming from Imagick. I tried to replicate the code from
getImageJpeg
memories/lib/Controller/ImageController.php
Line 416 in 55ba434
Applied to both file, it generates the same output as what Memories gives me.
Exiftool gives me the following:
By extracting the previews for both files, it seems that Imagick uses
PreviewImage
in the case of my working DNG, but usesThumbnailTIFF
in the case of the non working DNG. (the extracted ThumbnailTIFF gives me the low quality preview of 256x171).I've been trying to understand how Imagick handles the DNG load and conversion, but to no avail...
It seems ImageMagick uses a
delegates.xml
file to delegate encoding/decoding for certain file type, and DNG is part of the config, but usesufraw-batch
which is deprecated and not installed on my system, but still loads without it. So I'm really confused as to what to do to prevent Imagick to pick the law quality Tiff preview in my DNGs...To Reproduce
Use the files (zipped for Github):
non_working_test.DNG.zip
PXL_20230903_184954003.dng.zip
Platform:
The text was updated successfully, but these errors were encountered: