mriale / PyDPainter

A usable pixel art paint program written in Python
GNU General Public License v3.0
550 stars 26 forks source link

Screen size panel trigger a bug with current PNG picture. #179

Open Sleuthgame opened 1 month ago

Sleuthgame commented 1 month ago
  1. Load this PNG https://www.mobygames.com/game/7515/project-x/screenshots/amiga/118158/
  2. Look at Screen Size to check - the png is hires and the pic is intended to be med-res, but it's ok.
  3. Cancel the Screen Size panel. Picture disapears or something weird happens with palette and size.

Checked it in 2.0.1 and dev with other PNG. Won't happen with IFF.

mriale commented 1 month ago

That was weird! I think I fixed it in the develop branch.

Sleuthgame commented 1 month ago

Yes. Thanks you, I'll have a look.

Sleuthgame commented 1 month ago

Okay, can you check the cycling ball on this file ? It's fine on 2.0.1. and there is a anomaly on cycling now on last dev. https://www.randelshofer.ch/animations/anims/karl_bihlmeier/ABCK.ilbm.html

mriale commented 1 month ago

I got it working again it by reverting a change by @hsk to make color conversion faster by caching colors. Looks like it broke pictures where the color palette has duplicate entries. It's on develop now.

Thanks for finding that, @Sleuthgame!

Sleuthgame commented 3 weeks ago

Time for a bugfix and maintenance release ? It's always good to show that the software lives.