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
Image color loss during conversion #201
Comments
There have been similar issues reported in the past, and usually it can be solved by forcing the image type to be |
Perhaps .outputFormat(BufferedImage.TYPE_INT_ARGB) is a typo?
Unfortunately, the above code did not help to fix the error. |
I had a similar issue (converting from
It's a bit cumbersome since we need to set |
Expected behavior
Please describe what you are expecting the library to perform.
The image does not lose color during conversion.
Actual behavior
Hello!
I'm using the thumbnailator library to compress and convert customers images to png (to default size 200x200).
One user came in with an image that was losing color (black gets lighter).
Perhaps the error is due to the fact that the original image was 16 BitsPerPixel - the result is 32 BitsPerPixel.
Perhaps I'm not using the library correctly.
Help me to understand.
Steps to reproduce the behavior
My code:
Source image:
Converted image:
Environment
The text was updated successfully, but these errors were encountered: