Skip to content
This repository has been archived by the owner on Nov 20, 2021. It is now read-only.

Image Resize is Changing Color #22

Closed
AEFeinstein opened this issue Mar 20, 2015 · 6 comments
Closed

Image Resize is Changing Color #22

AEFeinstein opened this issue Mar 20, 2015 · 6 comments
Assignees
Labels

Comments

@AEFeinstein
Copy link

When I attempt to resize this image:
ic_drawer_about_light
it comes out as this:
ic_drawer_about_light

@AEFeinstein
Copy link
Author

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.

@redwarp
Copy link
Owner

redwarp commented Mar 20, 2015

Thanks! I'll look into it. Didn't even know about this format to begin with haha.
How did you produce the image in the first time? Toshop? Gimp? Something else (like compressing it with imageOptim or zopfli or pngcrush or...)

@redwarp
Copy link
Owner

redwarp commented Mar 20, 2015

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.

@redwarp redwarp added the bug label Mar 20, 2015
@redwarp redwarp self-assigned this Mar 20, 2015
@AEFeinstein
Copy link
Author

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!

@redwarp
Copy link
Owner

redwarp commented Mar 21, 2015

Alright, new version 1.4.1, that should fix this. I changed the way images are opened, Toolkit instead of imageIO

@redwarp redwarp closed this as completed Mar 21, 2015
@AEFeinstein
Copy link
Author

Speedy fix. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants