Commit a84b77d1 authored by anthony's avatar anthony

Fixed Equal-Area Cropping (size and minimum of delta increments)


git-svn-id: https://www.imagemagick.org/subversion/ImageMagick/branches/ImageMagick-6.7.4@6115 aa41f4f7-0bf4-0310-aa73-e5a19afd5a74
parent 7e9ad919
2011-12-02 6.7.4-1 Anthony <quetzlzacatenango@image...>
* Fixed Equal-Area Cropping (size and minimum of delta increments)
2011-12-01 6.7.3-10 Cristy <quetzlzacatenango@image...>
* New version 6.7.4-10, SVN revision 6106.
......
......@@ -795,6 +795,8 @@ MagickExport Image *CropImageToTiles(const Image *image,
}
delta.x=(double) width/geometry.width;
delta.y=(double) height/geometry.height;
if ( delta.x < 1.0 ) delta.x = 1.0;
if ( delta.y < 1.0 ) delta.y = 1.0;
for (offset.y=0; offset.y < (double) height; )
{
if ((flags & AspectValue) == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment