...
diff --git a/coders/svg.c b/coders/svg.c
index 193e53e..cba141a 100644
--- a/coders/svg.c
+++ b/coders/svg.c
@@ -2834,7 +2834,8 @@
       image=DestroyImageList(image);
       return((Image *) NULL);
     }
-  if ((image->resolution.x == 0.0) || (image->resolution.y == 0.0))
+  if ((fabs(image->resolution.x) < MagickEpsilon) ||
+      (fabs(image->resolution.y) < MagickEpsilon))
     {
       GeometryInfo
         geometry_info;