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

ImageBuffer: add write_with_encoder() method #1931

Merged
merged 1 commit into from
May 21, 2023

Conversation

9ary
Copy link
Contributor

@9ary 9ary commented May 16, 2023

References: #1922

This is essentially the same thing as ImageBuffer::write_to(), but it accepts an encoder. This is safer and more ergonomic than calling ImageEncoder::write_image() directly because it removes the guesswork of deconstructing the ImageBuffer manually.

I license past and future contributions under the dual MIT/Apache-2.0 license, allowing licensees to choose either at their option.

@fintelia fintelia merged commit 5b5a4fd into image-rs:master May 21, 2023
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