Skip to content

Commit 0d4358f

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/discussions/8540
1 parent f4976eb commit 0d4358f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

wand/montage.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ static MagickBooleanType MontageUsage(void)
165165
" -origin geometry image origin\n"
166166
" -page geometry size and location of an image canvas (setting)\n"
167167
" -pointsize value font point size\n"
168+
" -precision value maximum number of significant digits to print\n"
168169
" -profile filename add, delete, or apply an image profile\n"
169170
" -quality value JPEG/MIFF/PNG compression level\n"
170171
" -quantize colorspace reduce colors in this colorspace\n"
@@ -1335,6 +1336,17 @@ WandExport MagickBooleanType MontageImageCommand(ImageInfo *image_info,
13351336
ThrowMontageInvalidArgumentException(option,argv[i]);
13361337
break;
13371338
}
1339+
if (LocaleCompare("precision",option+1) == 0)
1340+
{
1341+
if (*option == '+')
1342+
break;
1343+
i++;
1344+
if (i == (ssize_t) argc)
1345+
ThrowMontageException(OptionError,"MissingArgument",option);
1346+
if (IsGeometry(argv[i]) == MagickFalse)
1347+
ThrowMontageInvalidArgumentException(option,argv[i]);
1348+
break;
1349+
}
13381350
if (LocaleCompare("profile",option+1) == 0)
13391351
{
13401352
i++;

0 commit comments

Comments
 (0)