Skip to content
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

Wrong image depth displayed? #126

Open
fire-eggs opened this issue Feb 6, 2023 · 2 comments
Open

Wrong image depth displayed? #126

fire-eggs opened this issue Feb 6, 2023 · 2 comments

Comments

@fire-eggs
Copy link
Owner

fire-eggs commented Feb 6, 2023

The image from issue #105 is a 256 color image, yet YAIV title bar displays it to be a 4-byte depth image.

Using Xnview to resize said image and making sure the result resized image was also 256 color / 1-byte depth, YAIV title bar displays that image (see attached) to be a 3-byte depth image.

earth_temperature_timeline_20000_8.png.zip

@rageworx
Copy link
Collaborator

rageworx commented Mar 6, 2023

I've checked this issue too.
That very long image (20000 pixels ? wow ...) used color format to PAL(pallet-indexed) 8 bits.
I think this is automatically converted pallet index colors to RGB in Fl_RGB_Image.

@fire-eggs
Copy link
Owner Author

My thanks for the diagnosis! Apparently I've not run into any pallette-based PNGs before ...

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

No branches or pull requests

2 participants