diff --git a/src/ImageProcessor/Processors/Crop.cs b/src/ImageProcessor/Processors/Crop.cs index 24e718ae2..fa4f20ccf 100644 --- a/src/ImageProcessor/Processors/Crop.cs +++ b/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; diff --git a/src/ImageProcessor/Properties/AssemblyInfo.cs b/src/ImageProcessor/Properties/AssemblyInfo.cs index f658eb06f..901fe97cc 100644 --- a/src/ImageProcessor/Properties/AssemblyInfo.cs +++ b/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")] diff --git a/src/Nuget/ImageProcessor.1.8.7.0.nupkg b/src/Nuget/ImageProcessor.1.8.7.0.nupkg new file mode 100644 index 000000000..764aae449 Binary files /dev/null and b/src/Nuget/ImageProcessor.1.8.7.0.nupkg differ