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

Correctly bind max width and height values when using withoutEnlargement #2024

Merged
merged 1 commit into from
Jan 7, 2020

Conversation

BrychanOdlum
Copy link
Contributor

Fix re #2020

When the withoutEnlargement option is set to true the pipeline should now bind the input image's width and height as maximum.

Previously if one value was in bounds and one was out of bounds, then the output image would keep the dimensions of the input image.

Also added two unit tests to back this.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 6a27013 on BrychanOdlum:fix/withoutEnlargement into 730ab14 on lovell:wit.

@lovell lovell merged commit 4031604 into lovell:wit Jan 7, 2020
@lovell
Copy link
Owner

lovell commented Jan 7, 2020

Marvellous, an even simpler approach, thank you very much Brychan.

@lovell lovell added this to the v0.24.0 milestone Jan 7, 2020
lovell added a commit that referenced this pull request Jan 8, 2020
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.

None yet

3 participants