From 73ef50686e69dbc2ea709f87435b1fd7cd3e4f8b Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 17 Jul 2021 13:26:56 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/3896 --- MagickCore/attribute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagickCore/attribute.c b/MagickCore/attribute.c index eed5b57571..323c625d2b 100644 --- a/MagickCore/attribute.c +++ b/MagickCore/attribute.c @@ -421,8 +421,8 @@ MagickExport RectangleInfo GetImageBoundingBox(const Image *image, artifact=GetImageArtifact(image, "trim:edges"); if (artifact == (const char *) NULL) { - bounds.width=0; - bounds.height=0; + bounds.width=image->columns == 1 ? 1 : 0; + bounds.height=image->rows == 1 ? 1 : 0; bounds.x=(ssize_t) image->columns; bounds.y=(ssize_t) image->rows; }