Skip to content

Commit

Permalink
fix magick gif optimisation
Browse files Browse the repository at this point in the history
defines were misspelt
  • Loading branch information
jcupitt committed Sep 7, 2019
1 parent dd9eba9 commit 7987cf6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions libvips/foreign/magick.c
Expand Up @@ -477,7 +477,7 @@ magick_set_number_scenes( ImageInfo *image_info, int scene, int number_scenes )
int
magick_optimize_image_layers( Image **images, ExceptionInfo *exception )
{
#ifdef HAS_OPTIMIZEPLUSIMAGELAYERS
#ifdef HAVE_OPTIMIZEPLUSIMAGELAYERS
Image *tmp;

tmp = OptimizePlusImageLayers(*images, exception );
Expand All @@ -490,25 +490,25 @@ magick_optimize_image_layers( Image **images, ExceptionInfo *exception )
*images = tmp;

return MagickTrue;
#else
g_warning( "%s", _( "layers optimization is not supported by your version "
"of libMagick" ) );
#else /*!HAVE_OPTIMIZEPLUSIMAGELAYERS*/
g_warning( "%s", _( "layer optimization is not supported by "
"your version of libMagick" ) );
return MagickTrue;
#endif
#endif /*HAVE_OPTIMIZEPLUSIMAGELAYERS*/
}

int
magick_optimize_image_transparency( const Image *images,
ExceptionInfo *exception )
{
#ifdef HAS_OPTIMIZEIMAGETRANSPARENCY
#ifdef HAVE_OPTIMIZEIMAGETRANSPARENCY
OptimizeImageTransparency(images, exception);
return ( exception->severity == UndefinedException );
#else
g_warning( "%s", _( "transparency optimization is not supported by your "
"version of libMagick" ) );
#else /*!HAVE_OPTIMIZEIMAGETRANSPARENCY*/
g_warning( "%s", _( "transparency optimization is not supported by "
"your version of libMagick" ) );
return MagickTrue;
#endif
#endif /*HAVE_OPTIMIZEIMAGETRANSPARENCY*/
}

/* Does a few bytes look like a file IM can handle?
Expand Down

0 comments on commit 7987cf6

Please sign in to comment.