From 2e4dedeebc53d73f98704dc7281385d896e18f39 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 18 Jan 2012 14:57:22 +0000 Subject: [PATCH] gm tweaks --- configure.in | 3 ++- libvips/foreign/magick2vips.c | 9 ++------- libvips/foreign/magickload.c | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/configure.in b/configure.in index 5534835a..24483734 100644 --- a/configure.in +++ b/configure.in @@ -352,7 +352,7 @@ AC_ARG_WITH([magick], AS_HELP_STRING([--without-magick], [build without libMagic (default: test)])) AC_ARG_WITH([magickpackage], AS_HELP_STRING([--with-magickpackage], - [magickpackage to use (default: MagickWand, ImageMagick)])) + [magickpackage to use (default: MagickWand, ImageMagick; try GraphicsMagick to build against gm instead)])) # recent versions of ImageMagick have split parts of the library off to # MagickWand, so by default we test for that first @@ -739,6 +739,7 @@ accelerate loops with orc: $with_orc ICC profile support with lcms: $with_lcms (version $with_lcms_ver) file import with OpenEXR: $with_OpenEXR file import with OpenSlide: $with_openslide + (requires openslide-3.2.0 or later) file import with matio: $with_matio file import with cfitsio: $with_cfitsio text rendering with pangoft2: $with_pangoft2 diff --git a/libvips/foreign/magick2vips.c b/libvips/foreign/magick2vips.c index 90d4530a..00c899ba 100644 --- a/libvips/foreign/magick2vips.c +++ b/libvips/foreign/magick2vips.c @@ -231,16 +231,11 @@ parse_header( Read *read ) #ifdef DEBUG printf( "parse_header: filename = %s\n", read->filename ); - printf( "GetImageChannelDepth(DefaultChannels) = %ld\n", - GetImageChannelDepth( image, DefaultChannels, - &image->exception ) ); - printf( "GetImageChannelDepth(AllChannels) = %ld\n", + printf( "GetImageChannelDepth(AllChannels) = %d\n", GetImageChannelDepth( image, AllChannels, &image->exception ) ); printf( "GetImageDepth() = %ld\n", GetImageDepth( image, &image->exception ) ); - printf( "image->depth = %lu\n", image->depth ); - printf( "GetImageQuantumDepth(MagickFalse) = %ld\n", - GetImageQuantumDepth( image, MagickFalse ) ); + printf( "image->depth = %u\n", image->depth ); printf( "GetImageType() = %d\n", GetImageType( image, &image->exception ) ); printf( "IsGrayImage() = %d\n", diff --git a/libvips/foreign/magickload.c b/libvips/foreign/magickload.c index 3fd431e1..5eb8ec05 100644 --- a/libvips/foreign/magickload.c +++ b/libvips/foreign/magickload.c @@ -33,8 +33,8 @@ */ /* -#define DEBUG */ +#define DEBUG #ifdef HAVE_CONFIG_H #include