From f55d3a622d234e940fb99325b92c6d3df578fa9b Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 16 Mar 2018 20:18:21 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1025 --- coders/ept.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/coders/ept.c b/coders/ept.c index 89f429cb1..80399002f 100644 --- a/coders/ept.c +++ b/coders/ept.c @@ -414,11 +414,18 @@ static MagickBooleanType WriteEPTImage(const ImageInfo *image_info,Image *image, if (write_image == (Image *) NULL) return(MagickFalse); write_info=CloneImageInfo(image_info); + (void) CopyMagickString(write_info->filename,"EPS:",MagickPathExtent); (void) CopyMagickString(write_info->magick,"EPS",MagickPathExtent); if (LocaleCompare(image_info->magick,"EPT2") == 0) - (void) CopyMagickString(write_info->magick,"EPS2",MagickPathExtent); + { + (void) CopyMagickString(write_info->filename,"EPS2:",MagickPathExtent); + (void) CopyMagickString(write_info->magick,"EPS2",MagickPathExtent); + } if (LocaleCompare(image_info->magick,"EPT3") == 0) - (void) CopyMagickString(write_info->magick,"EPS3",MagickPathExtent); + { + (void) CopyMagickString(write_info->filename,"EPS3:",MagickPathExtent); + (void) CopyMagickString(write_info->magick,"EPS3",MagickPathExtent); + } (void) memset(&ept_info,0,sizeof(ept_info)); ept_info.magick=0xc6d3d0c5ul; ept_info.postscript=(unsigned char *) ImageToBlob(write_info,write_image, -- 2.40.0