Skip to content

Conversation

@Neradoc
Copy link
Contributor

@Neradoc Neradoc commented Feb 21, 2025

fixes #97
Tested with he same heart PNGs.
Could not test the paeth (filter 4) implementation.

IMG_6223
The middle one is with the non-fixed version.

Also updating __version__.

@Neradoc
Copy link
Contributor Author

Neradoc commented Feb 21, 2025

Tested (and fixed) paeth with this New Zealand flag.
U1F1F3_U1F1FF

IMG_6224

@Neradoc Neradoc requested a review from FoamyGuy February 21, 2025 15:32
Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thank you @Neradoc! 🎉

I tested both sample images from the issue with this fix and the pink one does render properly now.

I also found an indexed image which makes use of all the scanline filter types and it renders properly as well. I also tested a few of the images from http://www.schaik.com/pngsuite/ successfully. All testing was on a Metro RP2350 with LCD shield.

@FoamyGuy FoamyGuy merged commit f667e4f into adafruit:main Feb 21, 2025
1 check passed
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Feb 22, 2025
Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI to 9.0.0 from 8.4.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#216 from justmobilize/wifi-manager-update

Updating https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad to 1.24.0 from 1.23.9:
  > Merge pull request adafruit/Adafruit_CircuitPython_ImageLoad#98 from Neradoc/add-filters-indexed-png

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Added the following libraries: Adafruit_CircuitPython_Display_Emoji_Text
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

Successfully merging this pull request may close these issues.

Some Indexed PNGs Rendering Improperly

2 participants