From 4c491349a73e10039faf37b5ae502239a8005347 Mon Sep 17 00:00:00 2001 From: cristy Date: Mon, 2 Nov 2009 01:46:10 +0000 Subject: [PATCH] --- ChangeLog | 3 +++ config/delegates.xml | 2 ++ config/delegates.xml.in | 2 ++ magick/constitute.c | 8 +++++++- 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cbbc89a8c..3c49b95b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2009-11-01 6.5.7-4 Cristy + * Use -define delegate:bimodal=true to activate any bimodal delegates. + 2009-10-28 6.5.7-3 Cristy * Convert SVG clipping path points from unsigned to long. diff --git a/config/delegates.xml b/config/delegates.xml index f2706ad16..dacd06e7a 100644 --- a/config/delegates.xml +++ b/config/delegates.xml @@ -54,6 +54,8 @@ %x input image x resolution %y input image y resolution + Set option delegate:bimodal=true to process bimodal delegates otherwise they + are ignored. --> diff --git a/config/delegates.xml.in b/config/delegates.xml.in index ec6933106..b20250cbc 100644 --- a/config/delegates.xml.in +++ b/config/delegates.xml.in @@ -54,6 +54,8 @@ %x input image x resolution %y input image y resolution + Set option delegate:bimodal=true to process bimodal delegates otherwise they + are ignored. --> diff --git a/magick/constitute.c b/magick/constitute.c index 080078128..029d78b6f 100644 --- a/magick/constitute.c +++ b/magick/constitute.c @@ -965,6 +965,9 @@ MagickExport MagickBooleanType WriteImage(const ImageInfo *image_info, char filename[MaxTextExtent]; + const char + *option; + const DelegateInfo *delegate_info; @@ -1044,7 +1047,10 @@ MagickExport MagickBooleanType WriteImage(const ImageInfo *image_info, } } (void) SyncImageProfiles(image); - if ((write_info->page == (char *) NULL) && + option=GetImageOption(image_info,"delegate:bimodal"); + if ((option != (const char *) NULL) && + (IsMagickTrue(option) != MagickFalse) && + (write_info->page == (char *) NULL) && (GetPreviousImageInList(image) == (Image *) NULL) && (GetNextImageInList(image) == (Image *) NULL) && (IsTaintImage(image) == MagickFalse)) -- 2.40.0