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
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.
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?
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)
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: