Skip to content

Commit cdb3ca7

Browse files
author
Cristy
committed
respect filename:literal define for both input and output filenames
1 parent c1e7d5a commit cdb3ca7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

magick/image.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -2759,6 +2759,9 @@ MagickExport MagickBooleanType SetImageInfo(ImageInfo *image_info,
27592759
*q,
27602760
subimage[MaxTextExtent];
27612761

2762+
const char
2763+
*p;
2764+
27622765
const MagicInfo
27632766
*magic_info;
27642767

@@ -2774,9 +2777,6 @@ MagickExport MagickBooleanType SetImageInfo(ImageInfo *image_info,
27742777
MagickBooleanType
27752778
status;
27762779

2777-
const char
2778-
*p;
2779-
27802780
ssize_t
27812781
count;
27822782

@@ -2791,6 +2791,8 @@ MagickExport MagickBooleanType SetImageInfo(ImageInfo *image_info,
27912791
if (IsEventLogging() != MagickFalse)
27922792
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
27932793
image_info->filename);
2794+
if (IsStringTrue(GetImageOption(image_info,"filename:literal")) != MagickFalse)
2795+
return(MagickTrue);
27942796
*subimage='\0';
27952797
GetPathComponent(image_info->filename,SubimagePath,subimage);
27962798
if (*subimage != '\0')

0 commit comments

Comments
 (0)