-
Notifications
You must be signed in to change notification settings - Fork 638
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
Split ImageBuffer and relevant low-level structs and traits for raw images into a separate crate? #793
Comments
I would prefer this solution. Extracting crates and types into an external crate will likely cause semver hell in the long term. |
But on the other hand separate crate will allow to stabilize it (lets call it |
I think we should give this some serious consideration. Right now the crates for specific image types (image-png, image-tiff, etc.) each have to implement their own versions of ColorType, ImageDecoder, and so forth which leads to a lot of redundancy. |
I found another reason to support this option: There are two separate concerns at play here. The decoder part, and the image manipulation part. For web, such as in So, in the long term I think we should aim to narrow down the scope of several libs (bikeshedding names):
That would give us the possibility of achieving a strong, and well tested foundation with |
I like this but I would suggest that the interpretation of pixel values be part of |
@icefoxen Could you clarify what you mean by interpretation of pixel values? My current thinking is to have image-core include |
Ah, sorry for being unclear. I was suggesting that |
A couple years late, but I should probably provide an update on this... I tried working on this issue. Created a repository for Without the ability to rapidly iterate on the types/traits, I didn't see how |
It could be useful for using those structs in other crates which work with raw images and don't want to depend on whole
image
crate. Alternatively we could add additional default feature which will gate functionality not related to raw image representation.The text was updated successfully, but these errors were encountered: