Skip to content

Load PNG images via libpng rather than stbi#288

Merged
Tom94 merged 4 commits into
masterfrom
libpng
May 4, 2025
Merged

Load PNG images via libpng rather than stbi#288
Tom94 merged 4 commits into
masterfrom
libpng

Conversation

@Tom94

@Tom94 Tom94 commented May 4, 2025

Copy link
Copy Markdown
Owner

This has multiple advantages

  • Compatible with virtually all PNG encodings (palette, grayscale, 16 bit, etc.)
  • Faster loading than stbi
  • Correct colors when an ICC color profile is attached to the PNG (fixes all the remaining jxl<->png discrepancies from Add JPEG XL Support #282 )

@Tom94 Tom94 force-pushed the libpng branch 3 times, most recently from a55b48b to 423af59 Compare May 4, 2025 13:15
This not only simplifies the CMake workflow but also gets rid of the
system-level zlib dependency on macos and linux
@Tom94 Tom94 merged commit 741ab89 into master May 4, 2025
@Tom94 Tom94 deleted the libpng branch May 16, 2025 17:35
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.

1 participant