Image Resize Pad Mode Needs New Default - Fix Included


The Image Resize Pad Mode is described as:

Pad: adds a padding so that the target image is exactly of width and height.

However, that is not technically true without adding in the following code:
settings.Scale = ScaleMode.Both;
This forces the scaling of both dimensions whereas in the current code it will not pad out the smaller of the dimensions - described here: http://stackoverflow.com/questions/16823146/incorrect-image-padding

I placed the above code in line 45 so it is just applies to the "pad" case and won't influence the other defaults.


sebastienros wrote Oct 25, 2013 at 7:57 PM

Fixed in changeset 8e8138f9dd6d3b9ee93baf46cda8d80280abd28b