From: cristy Date: Tue, 6 Apr 2010 13:10:46 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~9689 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e68c0c2a1567d077e4c59f1a5479bdc75988a1b;p=imagemagick --- diff --git a/coders/cals.c b/coders/cals.c index 25e48c538..91c72196a 100644 --- a/coders/cals.c +++ b/coders/cals.c @@ -228,7 +228,7 @@ static Image *ReadCALSImage(const ImageInfo *image_info, if (pel_path == 90) orientation=5; else - if (pel_path == 90) + if (pel_path == 180) orientation=3; else if (pel_path == 270) diff --git a/coders/wmf.c b/coders/wmf.c index 96bdf3c71..7a36a1927 100644 --- a/coders/wmf.c +++ b/coders/wmf.c @@ -65,7 +65,7 @@ #if defined(MAGICKCORE_WMF_DELEGATE) #include "libwmf/api.h" -#include "libwmf/gd.h" +#include "libwmf/eps.h" /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -138,8 +138,8 @@ static Image *ReadWMFImage(const ImageInfo *image_info,ExceptionInfo *exception) wmfD_Rect bounding_box; - wmf_gd_t - *gd_info; + wmf_eps_t + *eps_info; wmf_error_t status; @@ -158,7 +158,7 @@ static Image *ReadWMFImage(const ImageInfo *image_info,ExceptionInfo *exception) flags=0; flags|=WMF_OPT_IGNORE_NONFATAL; flags|=WMF_OPT_FUNCTION; - options.function=wmf_gd_function; + options.function=wmf_eps_function; status=wmf_api_create(&wmf_info,flags,&options); if (status != wmf_E_None) { @@ -182,7 +182,7 @@ static Image *ReadWMFImage(const ImageInfo *image_info,ExceptionInfo *exception) wmf_api_destroy(wmf_info); ThrowReaderException(DelegateError,"FailedToScanFile"); } - gd_info=WMF_GD_GetData(wmf_info); + eps_info=WMF_EPS_GetData(wmf_info); file=(FILE *) NULL; unique_file=AcquireUniqueFileResource(filename); if (unique_file != -1) @@ -192,11 +192,8 @@ static Image *ReadWMFImage(const ImageInfo *image_info,ExceptionInfo *exception) wmf_api_destroy(wmf_info); ThrowReaderException(FileOpenError,"UnableToCreateTemporaryFile"); } - gd_info->flags|=WMF_GD_OUTPUT_FILE; - gd_info->file=file; - gd_info->bbox=bounding_box; - wmf_display_size(wmf_info,&gd_info->width,&gd_info->height, - ceil(image->x_resolution-0.5),ceil(image->y_resolution-0.5)); + eps_info->out=wmf_stream_create(wmf_info,file); + eps_info->bbox=bounding_box; status=wmf_play(wmf_info,0,&bounding_box); if (status != wmf_E_None) { @@ -208,10 +205,10 @@ static Image *ReadWMFImage(const ImageInfo *image_info,ExceptionInfo *exception) (void) CloseBlob(image); image=DestroyImage(image); /* - Read GD image. + Read EPS image. */ read_info=CloneImageInfo(image_info); - (void) FormatMagickString(read_info->filename,MaxTextExtent,"png:%.1024s", + (void) FormatMagickString(read_info->filename,MaxTextExtent,"eps:%.1024s", filename); image=ReadImage(read_info,exception); read_info=DestroyImageInfo(read_info);