-
Notifications
You must be signed in to change notification settings - Fork 165
Image Resize is Changing Color #22
Comments
I believe it has to do with the image being in A8L8 format. I poked around a bit and didn't find a way of reading a bufferedimage in A8L8 format. |
Thanks! I'll look into it. Didn't even know about this format to begin with haha. |
Okkkkay! Using the term "A8L8" scared me, because all I found was reference to textures for 3D and stuff. But actually, it just means, here : greyscale PNG. So I opened an image with gimp, converted it to greyscale, saved it, used it with Resizer, and observed the same thing than with your image : fucked up output. So it's not isolated to your image, it probably works with every greyscale PNG, that's good to know! I'll look into it, thanks for the feedback. |
Yep, 8 bits of alpha, 8 bits of luminance. I generated this image with imagemagick's convert command. Turns out its the default format for greyscale png, but you can force it to save in ARGB too, which I did for now. Thanks for looking into it! |
Alright, new version 1.4.1, that should fix this. I changed the way images are opened, Toolkit instead of imageIO |
Speedy fix. Thanks! |
When I attempt to resize this image:
it comes out as this:
The text was updated successfully, but these errors were encountered: