Skip to content

Conversation

@kaixiong
Copy link
Member

Currently, the PNG loader applies a libpng input transformation to convert 8-bit indexed colour images into 24-bit RGB images. This may be an undesirable step and inconsistent with what the BMP loader does.

This patch drops this and loads 8-bit indexed colour PNGs directly into 8-bit colour LV::Video objects. Note that 8-bit grayscale images continue to be converted to 24-bit RGB.

@kaixiong kaixiong requested a review from hartwork January 23, 2025 22:02
@kaixiong kaixiong self-assigned this Jan 23, 2025
Copy link
Member

@hartwork hartwork left a comment

Choose a reason for hiding this comment

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

@kaixiong looks alright to the point that I can understand without dedicated research of my own 👍

@kaixiong kaixiong force-pushed the png-loader-no-8bit-to-rgb24-conversion branch from 547a31a to a92641d Compare January 25, 2025 17:31
@kaixiong kaixiong merged commit d937b13 into master Jan 25, 2025
6 checks passed
@kaixiong kaixiong deleted the png-loader-no-8bit-to-rgb24-conversion branch January 25, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants