Skip to content

Conversation

197g
Copy link
Member

@197g 197g commented Aug 20, 2025

The respective methods on DynamicImage are blocked on the type representation. We can't use any specific pixel type if the goal is preserving the type but DynamicImage has no Luma32F variant. For applying a mask we would have to take the parameter type as a non-DynamicImage somehow? Feels weird, we should just resolve to add at least 32-bit Luma to the crate, even if we do not add 32-bit LumaAlpha.

So I don't think this should close #1786 yet.

197g added 2 commits August 31, 2025 03:22
The respective methods on `DynamicImage` are blocked on the type
representation. We can't use any specific pixel type if the goal is
preserving the type but `DynamicImage` has no Luma32F variant.
For applying a mask we would have to take the parameter type as a
non-`DynamicImage` somehow? Feels weird, we should just resolve to add
at least 32-bit Luma to the crate, even if we do not add 32-bit
LumaAlpha.
Also adds a test suite of the method for different failure mechanisms,
pixel types and size mismatches.
@197g 197g force-pushed the i1786-extract-alpha branch from 4eede62 to ebcd84b Compare August 31, 2025 01:22
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.

Add possibility to extract an alpha channel as a separate luma image

2 participants