* Don't write empty tile if tile geometry matches the image width (reference
http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=16064).
* Support -regard-warnings in the mogrify utility.
+ * Output the correct units for the identify utility (reference
+ http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=16075).
2010-04-15 6.6.1-4 Cristy <quetzlzacatenango@image...>
* Do not set the resample virtual pixel method when undefined.
echo '-L/usr/local/lib '
;;
--libs)
- echo "-L${libdir} -lMagick++ -lMagickWand -lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -ldjvulibre -lfftw3 -lfontconfig -lwmf -lwmflite -lXext -lXt -lSM -lICE -lX11 -lbz2 -pthread -lrsvg-2 -lgdk_pixbuf-2.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2 -lz -lm -lgomp -lpthread -lltdl"
+ echo "-L${libdir} -lMagick++ -lMagickWand -lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -ldjvulibre -lfftw3 -lfontconfig -lwmf -lwmflite -lXext -lXt -lSM -lICE -lX11 -lbz2 -pthread -lrsvg-2 -lgdk_pixbuf-2.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2 -lz -lm -lgomp -lpthread "
;;
*)
echo "${usage}" 1>&2
'INC' => $INC_magick,
# C compiler
- #'CC' => 'gcc -std=gnu99 -std=gnu99',
+ #'CC' => 'g++',
# C pre-processor flags (e.g. -I & -D options)
# 'CPPFLAGS' => "$Config{'cppflags'} -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -pthread -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/libxml2",
'CCFLAGS' => $CCFLAGS_magick,
# Linker
- #'LD' => $Config{'ld'} == $Config{'cc'} ? 'gcc -std=gnu99 -std=gnu99' : $Config{'ld'},
+ #'LD' => $Config{'ld'} == $Config{'cc'} ? 'g++' : $Config{'ld'},
# Linker flags for building an executable
'LDFLAGS' => $LDFLAGS_magick,
# 'OPTIMIZE' => '',
# Use same compiler as ImageMagick
- 'PERLMAINCC' => ' -fopenmp',
+ 'PERLMAINCC' => 'g++ -fopenmp',
# Set Perl installation prefix to ImageMagick installation prefix
# 'PREFIX' => '/usr/local',
if test -x PerlMagick -a -f Makefile.aperl ; then
# Static build test incantation
- ${MAKE} -f Makefile.aperl CC='gcc -std=gnu99 -std=gnu99' test
+ ${MAKE} -f Makefile.aperl CC='g++' test
elif test -f Makefile -a -f Magick.o; then
# Shared build test incantation
- ${MAKE} CC='gcc -std=gnu99 -std=gnu99' test
+ ${MAKE} CC='g++' test
else
echo 'PerlMagick has not been built!'
exit 1
%
*/
-static const char *CompositeOperatorToPSDBlendMode(CompositeOperator operator)
+static const char *CompositeOperatorToPSDBlendMode(CompositeOperator op)
{
const char
*blend_mode;
- switch (operator)
+ switch (op)
{
case OverCompositeOp: blend_mode = "norm"; break;
case MultiplyCompositeOp: blend_mode = "mul "; break;
ImageInfo
*read_info;
+ MagickBooleanType
+ status;
+
unsigned long
flags;
*eps_info;
wmf_error_t
- status;
+ wmf_status;
/*
Read WMF image.
flags|=WMF_OPT_IGNORE_NONFATAL;
flags|=WMF_OPT_FUNCTION;
options.function=wmf_eps_function;
- status=wmf_api_create(&wmf_info,flags,&options);
- if (status != wmf_E_None)
+ wmf_status=wmf_api_create(&wmf_info,flags,&options);
+ if (wmf_status != wmf_E_None)
{
if (wmf_info != (wmfAPI *) NULL)
wmf_api_destroy(wmf_info);
ThrowReaderException(DelegateError,"UnableToInitializeWMFLibrary");
}
- status=wmf_bbuf_input(wmf_info,WMFReadBlob,WMFSeekBlob,WMFTellBlob,
+ wmf_status=wmf_bbuf_input(wmf_info,WMFReadBlob,WMFSeekBlob,WMFTellBlob,
(void *) image);
- if (status != wmf_E_None)
+ if (wmf_status != wmf_E_None)
{
wmf_api_destroy(wmf_info);
ThrowFileException(exception,FileOpenError,"UnableToOpenFile",
image=DestroyImageList(image);
return((Image *) NULL);
}
- status=wmf_scan(wmf_info,0,&bounding_box);
- if (status != wmf_E_None)
+ wmf_status=wmf_scan(wmf_info,0,&bounding_box);
+ if (wmf_status != wmf_E_None)
{
wmf_api_destroy(wmf_info);
ThrowReaderException(DelegateError,"FailedToScanFile");
}
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)
+ wmf_status=wmf_play(wmf_info,0,&bounding_box);
+ if (wmf_status != wmf_E_None)
{
wmf_api_destroy(wmf_info);
ThrowReaderException(DelegateError,"FailedToRenderFile");
<configure name="NAME" value="ImageMagick"/>
<configure name="LIB_VERSION" value="0x661"/>
<configure name="LIB_VERSION_NUMBER" value="6,6,1,5"/>
- <configure name="RELEASE_DATE" value="2010-04-17"/>
- <configure name="CONFIGURE" value="./configure "/>
+ <configure name="RELEASE_DATE" value="2010-04-23"/>
+ <configure name="CONFIGURE" value="./configure '--disable-shared' 'CC=g++'"/>
<configure name="PREFIX" value="/usr/local"/>
<configure name="EXEC-PREFIX" value="/usr/local"/>
<configure name="VERSION" value="6.6.1"/>
- <configure name="CC" value="gcc -std=gnu99 -std=gnu99"/>
+ <configure name="CC" value="g++"/>
<configure name="CFLAGS" value="-fopenmp -g -O2 -Wall -W -pthread"/>
<configure name="CPPFLAGS" value="-I/usr/local/include/ImageMagick"/>
<configure name="PCFLAGS" value="-fopenmp"/>
<configure name="DEFS" value="-DHAVE_CONFIG_H"/>
<configure name="LDFLAGS" value="-L/usr/local/lib "/>
- <configure name="LIBS" value="-lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -ldjvulibre -lfftw3 -lfontconfig -lwmf -lwmflite -lXext -lXt -lSM -lICE -lX11 -lbz2 -pthread -lrsvg-2 -lgdk_pixbuf-2.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2 -lz -lm -lgomp -lpthread -lltdl"/>
+ <configure name="LIBS" value="-lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -ldjvulibre -lfftw3 -lfontconfig -lwmf -lwmflite -lXext -lXt -lSM -lICE -lX11 -lbz2 -pthread -lrsvg-2 -lgdk_pixbuf-2.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2 -lz -lm -lgomp -lpthread "/>
<configure name="CXX" value="g++"/>
<configure name="CXXFLAGS" value="-g -O2 -Wall -W -pthread"/>
- <configure name="DISTCHECK_CONFIG_FLAGS" value="--disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath="/>
+ <configure name="DISTCHECK_CONFIG_FLAGS" value="'CC=g++' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-perl=no"/>
<configure name="HOST" value="x86_64-unknown-linux-gnu"/>
<configure name="DELEGATES" value="bzlib djvu fftw fontconfig freetype jpeg jng jp2 lcms mpeg png rsvg tiff x11 xml wmf zlib"/>
<configure name="COPYRIGHT" value="Copyright (C) 1999-2010 ImageMagick Studio LLC"/>
OBJDUMP=objdump
# Whether or not to build shared libraries.
-build_libtool_libs=yes
+build_libtool_libs=no
# Whether or not to build static libraries.
build_old_libs=yes
pic_mode=default
# Whether or not to optimize for fast installation.
-fast_install=yes
+fast_install=needless
# The host system.
host_alias=
LN_S="ln -s"
# What is the maximum length of a command?
-max_cmd_len=1572864
+max_cmd_len=1966080
# Object file suffix (normally "o").
objext=o
old_postuninstall_cmds=""
# A C compiler.
-LTCC="gcc -std=gnu99 -std=gnu99"
+LTCC="g++"
# LTCC compiler flags.
LTCFLAGS="-fopenmp -g -O2 -Wall -W -pthread"
dlopen_support=yes
# Whether dlopen of programs is supported.
-dlopen_self=yes
+dlopen_self=no
# Whether dlopen of statically linked programs is supported.
-dlopen_self_static=yes
+dlopen_self_static=unknown
# Commands to strip libraries.
old_striplib="strip --strip-debug"
old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib"
# A language specific compiler.
-CC="gcc -std=gnu99 -std=gnu99"
+CC="g++"
# Is the compiler the GNU compiler?
with_gcc=yes
# Compiler flag to turn off builtin functions.
-no_builtin_flag=" -fno-builtin"
+no_builtin_flag=" -fno-builtin -fno-rtti -fno-exceptions"
# How to pass a linker flag through the compiler.
wl="-Wl,"
compiler_c_o="yes"
# Whether or not to add -lc for building shared libraries.
-build_libtool_need_lc=no
+build_libtool_need_lc=yes
# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=no
echo '-L/usr/local/lib '
;;
--libs)
- echo "-L${libdir} -lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -ldjvulibre -lfftw3 -lfontconfig -lwmf -lwmflite -lXext -lXt -lSM -lICE -lX11 -lbz2 -pthread -lrsvg-2 -lgdk_pixbuf-2.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2 -lz -lm -lgomp -lpthread -lltdl"
+ echo "-L${libdir} -lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -ldjvulibre -lfftw3 -lfontconfig -lwmf -lwmflite -lXext -lXt -lSM -lICE -lX11 -lbz2 -pthread -lrsvg-2 -lgdk_pixbuf-2.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2 -lz -lm -lgomp -lpthread "
;;
*)
echo "${usage}" 1>&2
const ChannelType channel,const double black_value,const double white_value)
{
double
- min,max;
+ min,
+ max;
MagickStatusType
status;
(void) GetImageChannelRange(image,channel,&min,&max,&image->exception);
min+=black_value;
max-=white_value;
- if ( fabs(min-max) >= MagickEpsilon )
- status = LevelImageChannel(image,channel,min,max,1.0);
- return(status);
+ if (fabs(min-max) >= MagickEpsilon)
+ status&=LevelImageChannel(image,channel,min,max,1.0);
+ return(status != 0 ? MagickTrue : MagickFalse);
}
/*
Auto-level each channel separately.
(void) GetImageChannelRange(image,RedChannel,&min,&max,&image->exception);
min+=black_value;
max-=white_value;
- if ( fabs(min-max) >= MagickEpsilon )
+ if (fabs(min-max) >= MagickEpsilon)
status&=LevelImageChannel(image,RedChannel,min,max,1.0);
}
if ((channel & GreenChannel) != 0)
&image->exception);
min+=black_value;
max-=white_value;
- if ( fabs(min-max) >= MagickEpsilon )
+ if (fabs(min-max) >= MagickEpsilon)
status&=LevelImageChannel(image,GreenChannel,min,max,1.0);
}
if ((channel & BlueChannel) != 0)
&image->exception);
min+=black_value;
max-=white_value;
- if ( fabs(min-max) >= MagickEpsilon )
+ if (fabs(min-max) >= MagickEpsilon)
status&=LevelImageChannel(image,BlueChannel,min,max,1.0);
}
if (((channel & OpacityChannel) != 0) &&
&image->exception);
min+=black_value;
max-=white_value;
- if ( fabs(min-max) >= MagickEpsilon )
+ if (fabs(min-max) >= MagickEpsilon)
status&=LevelImageChannel(image,OpacityChannel,min,max,1.0);
}
if (((channel & IndexChannel) != 0) &&
&image->exception);
min+=black_value;
max-=white_value;
- if ( fabs(min-max) >= MagickEpsilon )
+ if (fabs(min-max) >= MagickEpsilon)
status&=LevelImageChannel(image,IndexChannel,min,max,1.0);
}
- return(status);
+ return(status != 0 ? MagickTrue : MagickFalse);
}
\f
/*
MagickStatusType
flags;
+ ResolutionType
+ units;
+
/*
Sync image options.
*/
option);
option=GetImageOption(image_info,"units");
if (option != (const char *) NULL)
- image->units=(ResolutionType) ParseMagickOption(MagickResolutionOptions,
+ units=(ResolutionType) ParseMagickOption(MagickResolutionOptions,
MagickFalse,option);
- if (image_info->units != UndefinedResolution)
+ else
+ units = image_info->units;
+ if (units != UndefinedResolution)
{
- if (image->units != image_info->units)
+ if (image->units != units)
switch (image->units)
{
case PixelsPerInchResolution:
{
- if (image_info->units == PixelsPerCentimeterResolution)
+ if (units == PixelsPerCentimeterResolution)
{
image->x_resolution/=2.54;
image->y_resolution/=2.54;
}
case PixelsPerCentimeterResolution:
{
- if (image_info->units == PixelsPerInchResolution)
+ if (units == PixelsPerInchResolution)
{
image->x_resolution*=2.54;
image->y_resolution*=2.54;
default:
break;
}
- image->units=image_info->units;
+ image->units=units;
}
option=GetImageOption(image_info,"white-point");
if (option != (const char *) NULL)
#endif
/* Define to 1 if you have a working `mmap' system call. */
-#ifndef MAGICKCORE_HAVE_MMAP_FILEIO
-#define MAGICKCORE_HAVE_MMAP_FILEIO 1
-#endif
+/* #undef HAVE_MMAP_FILEIO */
/* Define to 1 if you have the `munmap' function. */
#ifndef MAGICKCORE_HAVE_MUNMAP
#endif
/* Define to 1 if the system has the type `_Bool'. */
-#ifndef MAGICKCORE_HAVE__BOOL
-#define MAGICKCORE_HAVE__BOOL 1
-#endif
+/* #undef HAVE__BOOL */
/* Define to 1 if you have the `_exit' function. */
#ifndef MAGICKCORE_HAVE__EXIT
/* #undef LQR_DELEGATE */
/* Define if using libltdl to support dynamically loadable modules */
-#ifndef MAGICKCORE_LTDL_DELEGATE
-#define MAGICKCORE_LTDL_DELEGATE 1
-#endif
+/* #undef LTDL_DELEGATE */
/* Define if the OS needs help to load dependent libraries for dlopen(). */
/* #undef LTDL_DLOPEN_DEPLIBS */
#endif
/* Number of bits in a file offset, on hosts where this is settable. */
-#ifndef MAGICKCORE__FILE_OFFSET_BITS
-#define MAGICKCORE__FILE_OFFSET_BITS 64
-#endif
+/* #undef _FILE_OFFSET_BITS */
/* enable run-time bounds-checking */
/* #undef _FORTIFY_SOURCE */
register long
i;
- KernelInfo *
- new;
+ KernelInfo
+ *kernel_info;
assert(kernel != (KernelInfo *) NULL);
-
- new=(KernelInfo *) AcquireMagickMemory(sizeof(*kernel));
- if (new == (KernelInfo *) NULL)
- return(new);
- *new = *kernel; /* copy values in structure */
-
- new->values=(double *) AcquireQuantumMemory(kernel->width,
- kernel->height*sizeof(double));
- if (new->values == (double *) NULL)
- return(DestroyKernelInfo(new));
-
+ kernel_info=(KernelInfo *) AcquireMagickMemory(sizeof(*kernel));
+ if (kernel_info == (KernelInfo *) NULL)
+ return(kernel_info);
+ *kernel_info=(*kernel); /* copy values in structure */
+ kernel_info->values=(double *) AcquireQuantumMemory(kernel->width,
+ kernel->height*sizeof(double));
+ if (kernel_info->values == (double *) NULL)
+ return(DestroyKernelInfo(kernel_info));
for (i=0; i < (long) (kernel->width*kernel->height); i++)
- new->values[i] = kernel->values[i];
-
- return(new);
+ kernel_info->values[i]=kernel->values[i];
+ return(kernel_info);
}
\f
/*
*/
artifact = GetImageArtifact(image,"convolve:scale");
if ( artifact != (char *)NULL ) {
- MagickStatusType
+ GeometryFlags
flags;
GeometryInfo
args;
curr_kernel = CloneKernelInfo(kernel);
args.rho = 1.0;
- flags = ParseGeometry(artifact, &args);
+ flags = (GeometryFlags) ParseGeometry(artifact, &args);
ScaleKernelInfo(curr_kernel, args.rho, flags);
}
/* FALL-THRU to do the first, and typically the only iteration */
if ((UndefinedFilter < option) && (option < SentinelFilter))
{
option=cylindrical != MagickFalse ? BesselFilter : SincFilter;
- if (option != LanczosFilter)
- window_type=(FilterTypes) option;
- else
- window_type=option;
+ window_type=(FilterTypes) option;
}
}
}
#define MagickLibAddendum "-5"
#define MagickLibInterface 3
#define MagickLibMinInterface 3
-#define MagickReleaseDate "2010-04-17"
+#define MagickReleaseDate "2010-04-23"
#define MagickChangeDate "20100417"
#define MagickAuthoritativeURL "http://www.imagemagick.org"
#define MagickHomeURL "file:///usr/local/share/doc/ImageMagick-6.6.1/index.html"
echo '-L/usr/local/lib '
;;
--libs)
- echo "-L${libdir} -lMagickWand -lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -ldjvulibre -lfftw3 -lfontconfig -lwmf -lwmflite -lXext -lXt -lSM -lICE -lX11 -lbz2 -pthread -lrsvg-2 -lgdk_pixbuf-2.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2 -lz -lm -lgomp -lpthread -lltdl"
+ echo "-L${libdir} -lMagickWand -lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -ldjvulibre -lfftw3 -lfontconfig -lwmf -lwmflite -lXext -lXt -lSM -lICE -lX11 -lbz2 -pthread -lrsvg-2 -lgdk_pixbuf-2.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2 -lz -lm -lgomp -lpthread "
;;
*)
echo "${usage}" 1>&2