From: cristy Date: Mon, 6 Feb 2012 14:45:10 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6243 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50c2b69e5a68a7025bba7051022e568c89efef73;p=imagemagick --- diff --git a/MagickCore/magick-config.h b/MagickCore/magick-config.h index 6c325993c..3db76f669 100644 --- a/MagickCore/magick-config.h +++ b/MagickCore/magick-config.h @@ -1520,7 +1520,9 @@ /* #undef WITH_DMALLOC */ /* Define if you have wmflite library */ -/* #undef WMFLITE_DELEGATE */ +#ifndef MAGICKCORE_WMFLITE_DELEGATE +#define MAGICKCORE_WMFLITE_DELEGATE 1 +#endif /* Define if you have wmf library */ /* #undef WMF_DELEGATE */ diff --git a/coders/tiff.c b/coders/tiff.c index 612b1bdc9..795a9754f 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1004,6 +1004,9 @@ static Image *ReadTIFFImage(const ImageInfo *image_info, if (image->debug != MagickFalse) (void) LogMagickEvent(CoderEvent,GetMagickModule(),"Image depth: %.20g", (double) image->depth); + image->endian=LSBEndian; + if (endian == FILLORDER_LSB2MSB) + image->endian=MSBEndian; if ((photometric == PHOTOMETRIC_MINISBLACK) || (photometric == PHOTOMETRIC_MINISWHITE)) image->colorspace=GRAYColorspace; @@ -1112,10 +1115,6 @@ static Image *ReadTIFFImage(const ImageInfo *image_info, TIFFClose(tiff); ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); } - quantum_info->endian=LSBEndian; - if (endian == FILLORDER_LSB2MSB) - quantum_info->endian=MSBEndian; - image->endian=quantum_info->endian; if (sample_format == SAMPLEFORMAT_UINT) status=SetQuantumFormat(image,quantum_info,UnsignedQuantumFormat); if (sample_format == SAMPLEFORMAT_INT) @@ -1226,6 +1225,7 @@ static Image *ReadTIFFImage(const ImageInfo *image_info, method=ReadGenericMethod; if (TIFFIsTiled(tiff) != MagickFalse) method=ReadTileMethod; + quantum_info->endian=LSBEndian; quantum_type=RGBQuantum; pixels=GetQuantumPixels(quantum_info); switch (method) @@ -2593,8 +2593,6 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info, (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); assert(exception != (ExceptionInfo *) NULL); assert(exception->signature == MagickSignature); - assert(exception != (ExceptionInfo *) NULL); - assert(exception->signature == MagickSignature); status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception); if (status == MagickFalse) return(status); @@ -3142,9 +3140,6 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info, if (GetTIFFInfo(image_info,tiff,&tiff_info) == MagickFalse) ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed"); quantum_info->endian=LSBEndian; - if (endian == FILLORDER_LSB2MSB) - quantum_info->endian=MSBEndian; - image->endian=quantum_info->endian; pixels=GetQuantumPixels(quantum_info); tiff_info.scanline=GetQuantumPixels(quantum_info); switch (photometric) diff --git a/config/configure.xml b/config/configure.xml index 930cfd811..d38997a91 100644 --- a/config/configure.xml +++ b/config/configure.xml @@ -29,16 +29,16 @@ - + - + - + diff --git a/configure b/configure index 96b5b2580..1221c9e94 100755 --- a/configure +++ b/configure @@ -1919,7 +1919,7 @@ Optional Packages: --without-webp disable WEBP support --with-windows-font-dir=DIR directory containing MS-Windows fonts - --with-wmf enable WMF support + --without-wmf disable WMF support --without-xml disable XML support Some influential environment variables: @@ -31687,7 +31687,7 @@ fi if test "${with_wmf+set}" = set; then : withval=$with_wmf; with_wmf=$withval else - with_wmf='no' + with_wmf='yes' fi diff --git a/configure.ac b/configure.ac index 93493deb1..76ea66a11 100755 --- a/configure.ac +++ b/configure.ac @@ -2762,10 +2762,10 @@ dnl =========================================================================== # Check for WMF delegate library. # AC_ARG_WITH([wmf], - [AC_HELP_STRING([--with-wmf], - [enable WMF support])], + [AC_HELP_STRING([--without-wmf], + [disable WMF support])], [with_wmf=$withval], - [with_wmf='no']) + [with_wmf='yes']) if test "$with_wmf" != 'yes'; then DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "