libretro-thumbnails icon indicating copy to clipboard operation
libretro-thumbnails copied to clipboard

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

Open trr opened this issue 4 months ago • 1 comments

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 avatar Oct 07 '24 08:10 trr