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

Add TIFF variant to ImageOutputFormat #1453

Merged
merged 3 commits into from
Mar 14, 2021

Conversation

saiintbrisson
Copy link
Contributor

Resolves #1446 by adding a TIFF variant to the ImageOutputFormat. Also merges DynamicImage::write_to with free_functions::write_buffer_impl.

Copy link
Member

@HeroicKatora HeroicKatora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, also simplifies the handling in DynamicImage which is appreciated.

ImageOutputFormat::Unsupported(format) => Err(ImageError::Unsupported(ImageFormatHint::Name(format).into())),
format => Err(ImageError::Unsupported(ImageFormatHint::Name(format!("{:?}", format)).into()))

image::ImageOutputFormat::Unsupported(msg) => {
Copy link
Contributor

@fintelia fintelia Mar 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really not sure why Unsupported is a variant of ImageOutputFormat. Though that doesn't really impact this PR

@HeroicKatora HeroicKatora mentioned this pull request Mar 14, 2021
22 tasks
@HeroicKatora HeroicKatora merged commit d2f9fe8 into image-rs:master Mar 14, 2021
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.

ImageOutputFormat is missing tiff
3 participants