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

ImageIO loader fails to load some png files from circuslinux #53

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 1 comment
Closed

ImageIO loader fails to load some png files from circuslinux #53

SDLBugzilla opened this issue Feb 11, 2021 · 1 comment

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: 1.2.12
Reported for operating system, platform: Mac OS X 10.5 (PPC), PowerPC

Comments on the original bug report:

On 2013-02-14 11:06:58 +0000, wrote:

When compiled with ImageIO support, showimage fails to load some png files from circuslinux:

$ ./showimage /opt/local/share/circuslinux/data/images/title/programming.png
Couldn't load /opt/local/share/circuslinux/data/images/title/programming.png: Unknown bits_per_pixel u

Same file loads ok when compiled with --disable-imageio

See https://trac.macports.org/ticket/38012

On 2013-02-14 11:08:35 +0000, wrote:

Created attachment 1043
sample png

On 2013-06-03 02:01:22 +0000, Sam Lantinga wrote:

This appears to be fixed in the SDL_image 2.0 release candidate.

Thanks!

On 2016-04-29 12:42:24 +0000, Joshua Root wrote:

I'm not so sure this is actually fixed. The test case on the MacPorts ticket shows that the 8-bit images are loaded fine but not the 2-bit colormaps. I suspect ImageIO on 10.5 just doesn't handle those (or at least does something unexpected with them). Nobody ever reported this problem with later OS versions.

Given that SDL2 doesn't work on 10.5 anyway it may be a moot point, but if you were inclined to fix it in a new 1.2.x release then the straightforward workaround would be to not use ImageIO on 10.5 or earlier. No idea if a real fix for 10.5 is even possible.

Feel free to just re-close as WONTFIX if you'd prefer.

@sezero
Copy link
Contributor

sezero commented Apr 16, 2021

ImageIO updates from 2.0 have been backported to SDL-1.2 branch for some time ago. Closing.

@sezero sezero closed this as completed Apr 16, 2021
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