From 93b01ce81271292fd132b9f6bec189f75416175a Mon Sep 17 00:00:00 2001 From: cristy Date: Fri, 25 Jun 2010 01:13:23 +0000 Subject: [PATCH] --- ChangeLog | 2 ++ magick/image.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3e7b668b3..0fcd55176 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,8 @@ -background lightblue show:). * Do not annotate directory paths in ListFiles(). * Reset the image matte for png:color-type=2. + * Filename escapes must start with the filename: namespace (e.g. + %[filename:filename]_orig.gif'). 2010-06-17 6.6.2-7 Cristy * Support new label:pointsize property. diff --git a/magick/image.c b/magick/image.c index dcd510e9f..acd2be6c4 100644 --- a/magick/image.c +++ b/magick/image.c @@ -1740,13 +1740,13 @@ MagickExport size_t InterpretImageFilename(const ImageInfo *image_info, value=(const char *) NULL; if ((image_info != (const ImageInfo *) NULL) && (image != (const Image *) NULL)) - value=GetMagickProperty(image_info,image,pattern); + value=GetMagickProperty(image_info,image,pattern+9); else if (image != (Image *) NULL) - value=GetImageProperty(image,pattern); + value=GetImageProperty(image,pattern+9); else if (image_info != (ImageInfo *) NULL) - value=GetImageOption(image_info,pattern); + value=GetImageOption(image_info,pattern+9); if (value == (const char *) NULL) break; q--; -- 2.40.0