Skip to content

Conversation

@JimBobSquarePants
Copy link
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

When calculating a target size/rectangle during resizing ensure that rounding doesn't leave a width/height of zero. Fixes #1195

@codecov
Copy link

codecov bot commented May 9, 2020

Codecov Report

Merging #1198 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1198   +/-   ##
=======================================
  Coverage   82.58%   82.58%           
=======================================
  Files         694      694           
  Lines       30046    30047    +1     
  Branches     3397     3397           
=======================================
+ Hits        24813    24814    +1     
  Misses       4535     4535           
  Partials      698      698           
Flag Coverage Δ
#unittests 82.58% <100.00%> (+<0.01%) ⬆️
Impacted Files Coverage Δ
...ssing/Processors/Transforms/Resize/ResizeHelper.cs 50.86% <100.00%> (+0.28%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de74ad4...0fd2a4c. Read the comment docs.


private static void ThrowInvalid(string message) => throw new InvalidOperationException(message);

private static int Sanitize(int input)
Copy link
Member

@dlemstra dlemstra May 9, 2020

Choose a reason for hiding this comment

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

Nitpicking but this could be an arrow.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm usually not precious, updated now though

@JimBobSquarePants JimBobSquarePants merged commit b720219 into master May 10, 2020
@JimBobSquarePants JimBobSquarePants deleted the js/fix-1195 branch May 10, 2020 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Images 2 pixels wide can not be resized

2 participants