Skip to content

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

@trr

Description

@trr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions