Browse Source

v1.8.7

Fixed crop calculation bug


Former-commit-id: 0d3dd55a20f9254b8bed53ae69633a565435619d
af/merge-core
James South 12 years ago
parent
commit
07f925f6ec
  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