-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
Improve magickload's color handling #3625
Comments
Hi @Dclipsham, It works if you avoid imagemagick, fwiw. If I run:
I see: So perhaps that's a workaround. If I run:
And then look at the |
It looks like Could you explain why you need to use |
Thank you for looking at this @jcupitt - As I understand it we're using |
libvips has internal code for falling back to IM if there's no native loader. For example:
Will automatically run
You can see it's running |
... the native loaders are usually faster and more memory efficient. For example, with a large JPG I see:
So the native loader is about 40% faster and needs 10x less memory. |
I don't think there's a bug here, but we could probably improve magicload's colour handling. Let's leave this open as an enhancement. |
Describe the bug
The attached image (an EXIF 2.3.1 JPEG) , when attempting to transcode to JPG using:
vips magickload {inputfile} {outputfile}
Creates an output image that is unviable - everything goes grey. I have a theory this might be due to mishandling the CMYK color profile, but I'm no expert at all.
Similar results if just trying to transcode to PNG, although the output PNG file is too large to attach here
To Reproduce
Steps to reproduce the behavior:
vips magickload (original_input)Apple_Group_with_Labels_V3.jpg (jpg_output)Apple_Group_with_Labels_V3.jpg
Expected behavior
The image to transcode without such a stark difference in color
Actual behavior
The image transcodes with everything a deep gray hue
Screenshots
Input file, and output file attached
Environment
(please complete the following information)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: