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

Need for Speed Prostreet, Nintendo DS boxart image is not a valid PNG #144

Open
trr opened this issue Oct 7, 2024 · 1 comment
Open

Comments

@trr
Copy link

trr commented Oct 7, 2024

Python's PIL won't read the png for this image, and checking it with pngcheck reveals the following:

pngcheck` Need\ for\ Speed\ -\ ProStreet\ \(USA\)\ \(En\,Fr\,De\,Es\,It\).png 
Need for Speed - ProStreet (USA) (En,Fr,De,Es,It).png  CRC error in chunk iCCP (computed e7579afe, expected cd2628fa)
ERROR: Need for Speed - ProStreet (USA) (En,Fr,De,Es,It).png

The error when opening the image in a Python script is:

  File "/usr/lib/python3/dist-packages/PIL/Image.py", line 3008, in open
    raise UnidentifiedImageError(
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7fde0448b330>

Many tools ignore the iCCP header and/or its checksum and therefore do not have a problem viewing the file, so for example in Firefox the file displays fine.

Full file names affected:

Nintendo - Nintendo DS/Named_Boxarts/Need for Speed - ProStreet (USA) (En,Fr,De,Es,It).png
Nintendo - Nintendo DS/Named_Boxarts/Need for Speed - ProStreet (USA) (En,Fr,De,Es,It) (Rev 1).png

Note: I have a relatively large collection and this is the only libretro thumbnail image I've encountered this issue on.

@trr
Copy link
Author

trr commented Oct 7, 2024

Here is a version of the file that I've opened and re-saved in GIMP, that should work.

Attachment

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

No branches or pull requests

1 participant