Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to the rgb crate v0.9 pixel types and trait. #2259

Open
ripytide opened this issue Jun 13, 2024 · 1 comment
Open

Switch to the rgb crate v0.9 pixel types and trait. #2259

ripytide opened this issue Jun 13, 2024 · 1 comment

Comments

@ripytide
Copy link
Member

Although not actually released yet, when v0.9 is released it should have several Pixel traits that are just as powerful or more than the one used already in this crate. Similar to that from pixeli demonstrated in #2255.

It would also make this crate more interoperable with other image crates as the rgb pixel types are commonly used for interoperability.

This would be a breaking change so I'd suggest we implement it for v0.26 #2245. This may also conflict with #2239.

@kornelski
Copy link
Contributor

Having interoperability with the image types would be awesome. The image crate already depends on the rgb crate via AVIF encoder.

I plan to use the semver trick to keep structs in rgb v0.8 and v0.9 compatible. The v0.9 has an option to add a cleaned-up Pixel trait and other traits, to better align with the image crate.

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

No branches or pull requests

2 participants