]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1725
authorCristy <urban-warrior@imagemagick.org>
Sun, 6 Oct 2019 13:27:03 +0000 (09:27 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 6 Oct 2019 13:27:03 +0000 (09:27 -0400)
ChangeLog
MagickCore/geometry.c

index 9e947658731fb60cd650309bad1bcc647636d32a..2a20eaa6128073510c9bba03f7f71f240bb1f24a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2019-10-06  7.0.8-69 Cristy  <quetzlzacatenango@image...>
+  * Release ImageMagick version 7.0.8-69, GIT revision 16...
+
+2019-10-06  7.0.8-69 Cristy  <quetzlzacatenango@image...>
+  * Fixed numerous issues  posted to GitHub (reference
+    https://github.com/ImageMagick/ImageMagick/issues).
+
 2019-10-05  7.0.8-68 Cristy  <quetzlzacatenango@image...>
   * Release ImageMagick version 7.0.8-68, GIT revision 16184:b75b0e5:20191005.
 
index aa84a0e9bd1f463e7e601790f835c65a9f1af2be..4a2e719159e16d453787b4bbcd115d59f43f040f 100644 (file)
@@ -1434,13 +1434,13 @@ MagickExport MagickStatusType ParseMetaGeometry(const char *geometry,ssize_t *x,
       if (geometry_ratio >= image_ratio)
         {
           *width=former_width;
-          *height=(size_t) floor((double) (former_height*image_ratio/
-            geometry_ratio)+0.5);
+          *height=(size_t) floor((double) (PerceptibleReciprocal(
+            geometry_ratio)*former_height*image_ratio)+0.5);
         }
       else
         {
-          *width=(size_t) floor((double) (former_width*geometry_ratio/
-            image_ratio)+0.5);
+          *width=(size_t) floor((double) (PerceptibleReciprocal(
+            image_ratio)*former_width*geometry_ratio)+0.5);
           *height=former_height;
         }
       former_width=(*width);