-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DNG: Full image VS preview #4307
Comments
It looks like you're using a globally-installed libvips compiled with support for ImageMagick, which is the correct approach that will allow you to read DNG images. In this case, the DNG image is masquerading as a JPEG, and libvips' image loader priority means that libjpeg will used in preference to ImageMagick as it is always much faster when reading JPEG images. Perhaps you could compile your own libvips without support for JPEG? |
Hi, Thanks for the response. I'm trying to compile libvips without support for JPEG, but no far not succeeded yet. One workaround so far is for me to install imagemagick and libraw... then first convert the raw images with the "magick" command and then handling the converted images to sharp. But then question: I understand the behavior but shouldn't this be added to sharp itself as well? (I mean the fact that the full raw image should be processed and not the embedded preview) Best regards, |
I've just remembered you can use sharp.block() to skip the JPEG loader. sharp.block({ operation: ['VipsForeignLoadJpeg'] }); |
@DidierHoarau Were you able to make any progress with this? |
Question about an existing feature
What are you trying to achieve?
I am trying to convert a DNG to a JPG.
This works but as per my understanding, DNG file contain a small embedded preview. When using sharp the conversion works but it appears to take the embedded preview as input image so the output image is very small.
Example of output:
I would like the conversion to happen on the full image and not the embedded preview. (in the case of my test image the image resolution is 1024x683)
When you searched for similar issues, what did you find that might be related?
No
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this question
Script:
or Dockerfile:
The dockerfile is run with
docker build --progress=plain .
Please provide sample image(s) that help explain this question
Can be reproduced with those: https://toolsfairy.com/image-test/sample-dng-files#
The text was updated successfully, but these errors were encountered: