Browse Source

v1.8.7

Fixed crop calculation bug


Former-commit-id: 2c0d5cc7882414b8f7ab3dfbebc846a70161a16b
pull/17/head
James South 12 years ago
parent
commit
dcc9d57099
  1. 2
      src/ImageProcessor/Processors/Crop.cs
  2. 4
      src/ImageProcessor/Properties/AssemblyInfo.cs
  3. BIN
      src/Nuget/ImageProcessor.1.8.7.0.nupkg

2
src/ImageProcessor/Processors/Crop.cs

@ -158,7 +158,7 @@ namespace ImageProcessor.Processors
{
// Work out the percentages.
float left = cropLayer.Left * sourceWidth;
float top = cropLayer.Top * sourceWidth;
float top = cropLayer.Top * sourceHeight;
float width = (1 - cropLayer.Left - cropLayer.Right) * sourceWidth;
float height = (1 - cropLayer.Top - cropLayer.Bottom) * sourceHeight;

4
src/ImageProcessor/Properties/AssemblyInfo.cs

@ -32,6 +32,6 @@ using System.Security;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.8.6.1")]
[assembly: AssemblyFileVersion("1.8.6.1")]
[assembly: AssemblyVersion("1.8.7.0")]
[assembly: AssemblyFileVersion("1.8.7.0")]

BIN
src/Nuget/ImageProcessor.1.8.7.0.nupkg

Binary file not shown.
Loading…
Cancel
Save