fix magick gif optimisation

defines were misspelt
This commit is contained in:
John Cupitt 2019-09-07 15:45:27 +01:00
parent dd9eba9e26
commit 7987cf63c3

View File

@ -477,7 +477,7 @@ magick_set_number_scenes( ImageInfo *image_info, int scene, int number_scenes )
int int
magick_optimize_image_layers( Image **images, ExceptionInfo *exception ) magick_optimize_image_layers( Image **images, ExceptionInfo *exception )
{ {
#ifdef HAS_OPTIMIZEPLUSIMAGELAYERS #ifdef HAVE_OPTIMIZEPLUSIMAGELAYERS
Image *tmp; Image *tmp;
tmp = OptimizePlusImageLayers(*images, exception ); tmp = OptimizePlusImageLayers(*images, exception );
@ -490,25 +490,25 @@ magick_optimize_image_layers( Image **images, ExceptionInfo *exception )
*images = tmp; *images = tmp;
return MagickTrue; return MagickTrue;
#else #else /*!HAVE_OPTIMIZEPLUSIMAGELAYERS*/
g_warning( "%s", _( "layers optimization is not supported by your version " g_warning( "%s", _( "layer optimization is not supported by "
"of libMagick" ) ); "your version of libMagick" ) );
return MagickTrue; return MagickTrue;
#endif #endif /*HAVE_OPTIMIZEPLUSIMAGELAYERS*/
} }
int int
magick_optimize_image_transparency( const Image *images, magick_optimize_image_transparency( const Image *images,
ExceptionInfo *exception ) ExceptionInfo *exception )
{ {
#ifdef HAS_OPTIMIZEIMAGETRANSPARENCY #ifdef HAVE_OPTIMIZEIMAGETRANSPARENCY
OptimizeImageTransparency(images, exception); OptimizeImageTransparency(images, exception);
return ( exception->severity == UndefinedException ); return ( exception->severity == UndefinedException );
#else #else /*!HAVE_OPTIMIZEIMAGETRANSPARENCY*/
g_warning( "%s", _( "transparency optimization is not supported by your " g_warning( "%s", _( "transparency optimization is not supported by "
"version of libMagick" ) ); "your version of libMagick" ) );
return MagickTrue; return MagickTrue;
#endif #endif /*HAVE_OPTIMIZEIMAGETRANSPARENCY*/
} }
/* Does a few bytes look like a file IM can handle? /* Does a few bytes look like a file IM can handle?