Skip to content

PNG: Fix is_apng and gamma_value - #3040

Merged
197g merged 1 commit into
image-rs:mainfrom
RunDevelopment:png-fix-apng-and-gamma
Jun 14, 2026
Merged

197g merged 1 commit into
image-rs:mainfrom
RunDevelopment:png-fix-apng-and-gamma

Conversation

@RunDevelopment

Copy link
Copy Markdown
Member

These two methods previously required the underlying PNG reader to have already been initialized. This requirement wasn't documented anyway and isn't obvious. Now both methods will initialize the reader when necessary.

Note that the errors previously returned these methods were both wrong. self.reader is None if the reader isn't initialized or reading has failed. Errors behave better now.

@197g
197g merged commit ded383d into image-rs:main Jun 14, 2026
31 checks passed
@RunDevelopment
RunDevelopment deleted the png-fix-apng-and-gamma branch June 14, 2026 22:15
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.

2 participants