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

Convenience function for encoding a DynamicImage #2225

Closed
Shnatsel opened this issue May 3, 2024 · 2 comments
Closed

Convenience function for encoding a DynamicImage #2225

Shnatsel opened this issue May 3, 2024 · 2 comments

Comments

@Shnatsel
Copy link
Contributor

Shnatsel commented May 3, 2024

I am looking at the ImageEncoder documentation and the API for writing an image is fairly low-level. If I have a DynamicImage, there doesn't seem to be a function to just write to to the specified format.

Am I just looking into the wrong place in the docs? And if not, is there a reason ImageEncoder doesn't just provide a wrapper around the low-level API that accepts a DynamicImage and writes it?

@fintelia
Copy link
Contributor

fintelia commented May 3, 2024

The function you are looking for is probably write_to or write_with_encoder

@Shnatsel
Copy link
Contributor Author

Shnatsel commented May 3, 2024

Ah, write_with_encoder is the one. Thanks!

@Shnatsel Shnatsel closed this as completed May 3, 2024
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