From eaa2635305f11ded6da97cb8d3f43c6c53796970 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 13 Oct 2019 17:12:14 -0400 Subject: [PATCH] Support -delay setting --- MagickWand/montage.c | 12 ++++++++++++ utilities/montage.1.in | 1 + 2 files changed, 13 insertions(+) diff --git a/MagickWand/montage.c b/MagickWand/montage.c index 775ce23e4..0e549faa0 100644 --- a/MagickWand/montage.c +++ b/MagickWand/montage.c @@ -134,6 +134,7 @@ static MagickBooleanType MontageUsage(void) " -compress type type of pixel compression when writing the image\n" " -define format:option\n" " define one or more image format options\n" + " -delay value display the next image after pausing\n" " -density geometry horizontal and vertical density of the image\n" " -depth value image depth\n" " -display server query font from this X server\n" @@ -750,6 +751,17 @@ WandExport MagickBooleanType MontageImageCommand(ImageInfo *image_info, } break; } + if (LocaleCompare("delay",option+1) == 0) + { + if (*option == '+') + break; + i++; + if (i == (ssize_t) argc) + ThrowMontageException(OptionError,"MissingArgument",option); + if (IsGeometry(argv[i]) == MagickFalse) + ThrowMontageInvalidArgumentException(option,argv[i]); + break; + } if (LocaleCompare("delete",option+1) == 0) { if (*option == '+') diff --git a/utilities/montage.1.in b/utilities/montage.1.in index 11ceffbd9..351279251 100644 --- a/utilities/montage.1.in +++ b/utilities/montage.1.in @@ -25,6 +25,7 @@ Image Settings: \-compress type type of pixel compression when writing the image \-define format:option define one or more image format options + \-delay value display the next image after pausing \-density geometry horizontal and vertical density of the image \-depth value image depth \-display server query font from this X server -- 2.40.0