Special Issues:
Due to GCC bug 53967, several key agorithms (e.g. convolution) may execute much faster (e.g. 2-3X) for x86-64 and/or when SSE is enabled for floating point math (-mfpmath=sse) if the GCC option -frename-registers is used. Default 32-bit builds do not experience the problem since they use '387 math. It is not clear in what version of GCC this problem started but it was not noticed by the developers until the GCC 4.6 timeframe. Other compilers do not suffer from this bug.
Security Fixes:
None.
Bug fixes:
Fixed bug with format substitutions if input string ends with a single '%'.
BMP: Fixed an old bug with decoding chromaticity primaries.
PNG: Fixed reading of interlaced images. Fix reading of sub-8-bit palette and grayscale images. Some PNG sub-formats were written incorrectly. Fix crash in PNG8 writer if image colors happened to be non-zero but image was not actually colormapped.
PNG: Configure script now also searches for libpng versions 16 and 17.
TIFF: Fix a crash which was noticed when writing RGBA separated (planar) format.
--enable-symbol-prefix was not prefixing all of the C symbols. Some core C library functions were not prefixed. This option applies to the Wand library API as well now.
C API: When input is from a user-provided file descriptor, the file position is restored after reading the file header bytes. Previously the file position was rewound to the beginning of the file. This allows reading embedded image data from the current offset in a file, and allows continuing to use the stream after GraphicsMagick has returned the image.
C API: It is now possible to invoke CloseBlob() multiple times.
display: Display was supposed to respond to +/-usePixmap, but was not. It was responding to +/-use_pixmap. Now it responds to both.
Windows/VisualMagick: Fix building GraphicsMagick with Intel ICC compiler driven by Visual Studio Professional 2012.
Windows: Avoid a crash and produce a useful diagnostic if Ghostscript is needed but not yet installed.
New Features:
GM utility: New 'batch' command was contributed by Kenneth Xu which supports executing any number of other GM utility sub-commands in a single invokation in a sort of "batch" script. Input may be piped from standard input, from a specified file, or from a 'GM >' command prompt. This utilities front-end allows any other program/script to drive 'gm' using a co-process model and speeds up execution by eliminating utility start-up/shut-down time.
WIN64 (64-bit Windows): Windows 64-bit is now officially supported.
convert/mogrify: Now support -auto-orient to automatically rotate the image upright for viewing based on its current orientation setting. Also support -orient to support setting the current image orientation. Please note that the orientation property of EXIF profiles is not yet updated so the EXIF profile will be wrong after using -auto-orient.
C API: AutoOrientImage(), new New function to automatically orient the image so that it is upright for normal viewing.
Wand API: MagickGetImagePage()/MagickSetImagePage(), new functions to support getting and setting the image page size and offsets.
PNG: Added PNG48 and PNG64 support. Added PNG00 support (png encoder that inherits its color-type and bit-depth from the input, if the input was a PNG datastream).
Feature improvements:
GraphicsMagick TAP tests may now be run stand-alone using Perl's 'prove' TAP test driver.
Performance Improvements:
Detection of glob specifications in file names is more efficient.
Windows Delegate Updates:
None.
Behavior Changes:
ltdl: Libltdl is no longer bundled. Libltdl must be previously installed on the system in order to build the modules configuration.
AppendImages() now converts subsequent images to the colorspace of the first image, and no longer converts the first image to RGB. Instead, it is assumed the user knows what she is doing.
SetImageColorRegion() no longer automatically converts the image to RGB. The user is responsible for assuring that the provided color is in the same colorspace as the image.
Security Fixes:
* PNG: Fix for CVE-2012-3438. The Magick_png_malloc function in
coders/png.c in GraphicsMagick 6.7.8-6 does not use the proper
variable type for the allocation size, which might allow remote
attackers to cause a denial of service (crash) via a crafted PNG
file that triggers incorrect memory allocation.
* Automake (derived): Fix for CVE-2012-3386: The "make distcheck"
rule in GNU Automake before 1.11.6 and 1.12.x before 1.12.2 grants
world-writable permissions to the extraction directory, which
introduces a race condition that allows local users to execute
arbitrary code via unspecified vectors.
Bug fixes:
* PNG: Reading sub-8-bit palette images is fixed (images looked
stretched).
* SVG: Fixed bug which allowed MVG and SVG files with long vector
paths to crash the software.
* SVG: Ignore XML headers rather than rendering them as text.
* MVG/SVG/WMF/-draw: It is now possible to draw a plain ','
character.
* WMF: Fixed a bug which caused wrong centered-text placement.
* import: Return status was inverted.
* configure: Don't force that liblzma is used just because libtiff
is used.
New Features:
* The configure script now supports a --enable-quantum-library-names
option to enable that shared library name includes quantum depth
to allow shared libraries with different quantum depths to
co-exist in same directory (only one can be used for development).
* JNX: Support is added for reading the Garmin proprietary Image
Format.
* BMP: Support an alpha channel in uncompressed 32-bit BMP.
Feature improvements:
* -lat: The adaptive threshold algorithm is replaced with a new
algorithm which scales linearly (rather than quadratically) with
area size.
* Tests: Test suite is re-written to use TAP-based tests.
* GIF: Reader tries to be better at detecting and reporting
failures.
Performance Improvements:
* -lat: Adaptive threshold is much faster with large area sizes.
Windows Delegate Updates:
* Dcraw 9.16 is now included in the build (with JPEG and JPEG2000
support).
* Libxml2 is updated to the 2.9.0 release.
* Libtiff is updated to the 4.0.3 release.
* Lcms2 is updated to the 2.4 release.
* Libpng is updated to the 1.5.13 release.
Behavior Changes:
* Loading modules is only supported for the modules build.
Previously any build using shared libraries could load modules.
* Bundled libltdl is now configured as 'installable' rather than
'convenience'.
* -enhance: Only filter based on color channels (ignore opacity).
* BrowseDelegate: Web browser (for viewing help information) now
defaults to 'xdg-open', but if it is not found, then configure
will search for firefox, google-chrome, mozilla (in that order).
libXext/buildlink3.mk, now that it is included there.
Leave the places where its API version is set or variables from it
are used directly (about 3 packages).
1.3.16 (June 24, 2012)
==========================
Security Fixes:
* Don't translate 'comment' and 'label' attributes if the request is
made while a file is being read. Only translate such attributes
if they come from the command line or API user.
Bug fixes:
* SWT: SWT reader suffered from a number of implementation errors
which caused it not to work any more. Works again.
* XBM: Fix memory leak observed when reading file in 'ping' mode.
* Support -trim on images which use a consistent (single color)
transparent background. In this case, trim is done based on
opacity rather than foreground color.
* Include <sys/types.h> in order to assure that 'size_t' and
'ssize_t' are declared. This is necessary since
MagickExtentImage() uses these types as part of its definition.
* +repage was not working because parser was insisting that it
should include an argument.
* -units was scaling existing resolution the wrong way around
(i.e. multiplying rather than dividing).
* PerlMagick: Fix compilation with Perl 5.16.
* PingBlob(): PingBlob was not working for all cases. Is now based
on BlobToImage() for assured reliability.
New Features:
None
Feature improvements:
* MAT: Animated movies inside 4D matrices are loaded now.
* PDF: File base name is used as the document title.
* PNG: Fix issues observed specifically with libpng 1.5.10.
Performance Improvements:
* Pixel iterators should be more efficient now if the image uses a
file-backed cache.
* Motion blur algorithm does scale well as cores are added so
include OpenMP support for it by default.
Windows Delegate Updates:
* JPEG: Updated to IJG 8d release.
* PNG: Updated to 1.5.11 release
* TIFF: Updated to 4.0.2 release.
* Zlib: Updated to 1.2.7 release.
* libxml2: Updated to 2.8.0 release.
Behavior Changes:
None
1.3.15 (April 28, 2012)
==========================
Security Fixes:
* Libpng in Windows build is updated to 1.5.10 release. Provides a
fix for CVE-2011-3048.
Bug fixes:
* PNG - fixed problem with bit depth when the encoder decides to
write RGBA instead of indexed PNG.
* Fixed some temporary file leaks which were caused by the temporary
file name being automatically extended to include a scene number,
and therefore fail to be deleted.
New Features:
* Added '+noise random' and '-operator noise-random' to 'convert'
and 'mogrify'. This modulates the existing image data with
uniformely random noise.
* Added -strip option in composite, convert, mogrify, and montage to
remove all profiles and text attributes from the image.
* Added -repage option to composite, convert, mogrify, and montage
subcommands to reset or adjust the current image page offsets
based on a provided geometry specification.
* New C function StripImage() to remove all profiles and text
attributes from the image.
* New C function ResetImagePage() to adjust the current image page
canvas and position based on a relative page specification.
* C functions GenerateDifferentialNoise(), AddNoiseImageChannel(),
QuantumOperatorRegionImage(), AddNoiseImage() updated to support
RandomNoise enumeration.
* New C++ Image method strip(), and unary function stripImage() to
remove all profiles and text attributes from the image.
* XCF format now respects image subimage and subrange members so
that returned image layers may be selected.
* The INFO coder (e.g. output file "info:-") now respects the
-format option so that its output may be adjusted identically to
how -format works for 'identify'.
* TclMagick now supports Random noise.
Feature improvements:
* C function ThumbnailImage() now allows the user to override the
filter used, but still defaults to using the box filter.
Performance Improvements:
* None
Behavior Changes:
* No longer add a printf-style scene formatting specification to
filenames which do not have one and no longer automatically
operate in 'adjoin' mode in such cases. If multiple numbered
files are intended to be output, then add +adjoin to the command
line and use an output filename specification similar to
"image-%d.jpg". Output files are now completely specified and
predictable but this may break some existing usages which
anticipate the automatic file numbering.
1.3.14 (February 25, 2012)
==========================
Security Fixes:
* Windows bundled libpng updated to the 1.5.9 release, which fixes
the dire CVE-2011-3026 buffer overrun bug.
Bug fixes:
* EMF format : Fixed wrong module mapping which caused EMF reading
to not work under Windows.
* TGA format: Assume that 32-bit TGA files have an alpha channel,
even if they are not marked as such.
* XCF format: Fix reading XCF which is comprised of different sized
layers.
* JPEG & CineonLog: Convert RGB-compatible colorspaces
(e.g. CineonLog) to RGB by default since that was the case prior
to release 1.3.13.
* RAW formats: Small memory leak in dcraw module was fixed.
* Resize: ResizeImage() was ignoring its resize filter argument and
was using the filter setting from the Image structure instead.
* The mirror virtual pixel method was broken.
New Features:
* Open64 Compiler Suite: Version 5.0 is fully supported.
* Wand API: Added MagickExtentImage().
* MEF RAW: Mamiya Photo RAW "MEF" format is now supported.
Feature improvements:
* DPX format: Original file endianness is preserved by default.
* PNG library: Updated libpng to 1.5.9 release.
* TIFF library: Updated libtiff to 4.0.1 release.
* Zlib library: Updated to zlib 1.2.6 release.
Performance Improvements:
* Despeckle algorithm (-despeckle) is many times faster.
Behavior Changes:
* DPX format: Original file endianness is preserved by default.
While here, remove unwanted buildlink and add lzma option.
1.3.13 (December 24, 2011)
==========================
Security Fixes:
None
Bug fixes:
* In I/O blob, don't rewind already open file handle passed to
OpenBlob() since we don't know the intended state of this file
handle, and because it prevents appending to an existing file.
* In AppendImageProfile(), don't leak profile buffer while appending
a chunk to an existing profile.
* Fix deadlock in ClonePixelCache() which was caused by using the
same semaphore pointer in the source and destination images.
* Removed bogus SyncBlob() code which sometimes caused a crash and
was not useful.
* Fixed crash or hang which occured when the user entered CONTROL-C
while threaded code was being executed.
* Fix core dump in AcquireOneCacheViewPixelInlined() when the image
is in CMYK space.
* In MontageImages (montage), fix crash observed with "-geometry
x+0+0".
* The TIFF reader was crashing for images which use the
TIFFTAG_OPIIMAGEID tag.
* AppendImages() (-append) was failing when only one image was
provided.
* The `animate`, `display`, and `identify` commands now report any
error only once, and then proceed to the next file name rather
than quitting.
* Don't change the locale settings in InitializeMagick() since this
may cause problems for international users. API users are still
responsible for assuring that locale settings don't break floating
point parsing and output (i.e. floating point decimal needs to be
'.' rather than ',').
* RPM build is fixed (PerlMagick build was broken).
* RPM build installs documentation to expected places on Red Hat
type systems.
* Fixes for usage with OpenSolaris.
* DESTDIR is supported by PerlMagick build.
* The matte channel was not being properly enabled or respected for
TXT images.
* InitializeMagick() and DestroyMagick() are now fully thread safe.
* When a shear angle was as zero, the shear request was being
ignored entirely.
* In DispatchImage(), the `K` channel was always output as black for
"CMYK" specification unless the image matte flag was True.
* MATLAB fixes.
* PNG fixes.
* PCL fixes for printing bi-level image on Konica-Minolta printers.
* EPT error handling fixes.
* JPEG reader was sometimes truncating large IPTC profiles.
* JPEG writer now handles errors properly rather than allowing
libjpeg to exit the program (or hanging if driven by Magick++).
* JPEG reader now treats an unhandled EXP marker as a warning rather
than a hard error.
* File open errors are now reliably reported.
* Improved rendering precision when using the drawing APIs.
* For the Magick++ Image backgroundColor(), borderColor(), and
matteColor() methods, preserve the opacity part of the
user-specified color.
New Features:
* Add support for drawing text using a bitmap font.
* benchmark command supports a -stepthreads option to execute the
specified command with an increasing number of threads to measure
how an algorithm benefits from threading. This mode includes a
column to show the speedup compared with one thread, and the
Karp-Flatt metric
* Added Add support for invoking "gs-cmyk" and "gs-cmyka" entries in
delegates.mgk when ColorSeparationType or ColorSeparationMatteType
is requested. These cause Ghostscript to always output CMYK PAM
format (even if the input file was not in CMYK format).
* EXIF profiles are preserved when writing JPEG files.
* The -mosaic command now respects the composition option specified
by -compose as well as the image background color specified by
-background.
* The TXT coder now supports multiple image frames.
* For image normalization (-normalize), add support for
histogram-threshold setting to specify the percentage of the
histogram to discard when computing image normalization parameters
(default is 0.1%). For example `-set histogram-threshold 0.01
-normalize`.
* Added an `INFO` coder which produces textual image description
output similar to `identify` but may be used with convert like "gm
convert myfile info:-".
* Support application of the PDF crop box via '-define
pdf:use-cropbox=true'.
* For PCL printer output, define pcl:fit-to-page in order for the
printer to scale the image to fit the page.
* Added order dither 5x5, 6x6, and 7x7 circular dither patterns to
create a halftone effect.
* PNM subformats are now reported as the specific subformat rather
than just "PNM".
* NetPBM's PAM format is now supported.
* MacPaint image format reader is added.
* Added TIFF LZMA compressor support.
* Added TIFF support for a tiff:group-three-options define to allow
power-users to set the value of the GROUP3OPTIONS tag.
* New core C API function SetImageColorRegion() to set the constant
pixel color for a specified region of the image.
* New Wand C API function MagickWriteImagesFile() to append images
to a provided file handle.
* New Wand C API function MagickSetImageSavedType() to allow
specifying the storage type used when saving the file (rather than
changing the current image characteristics).
* In Wand C API, the functions NewPixelWand(), NewDrawingWand(), and
NewMagickWand() invoke InitializeMagick() automatically in case
user forgets to do so.
* New Wand C API function MagickSetFormat() to allow setting the
file or blob format before it has been read.
* New Wand C API function MagickSetDepth() to set the depth used
when reading from an image format which requires that the depth be
specified in advance.
Feature improvements:
* Now compiles properly with libpng 1.4.X and 1.5.X.
* Lcms 2.X is supported.
Performance Improvements:
* TGA read performance improved.
* PNM read/write performance improved.
* Convolution (-convolve, -sharpen, -guassian, etc.) is faster.
* Adaptive threshold image (-lat) is faster.
* Image trimming (-trim) is faster.
Behavior Changes:
* For DPX format and packed 10 bits, datums are now represented in
the same (reversed) order for all RGB and YCbCr formats.
Previously YCbCr 4:4:4 formats were not swapping the word datums
because the only real-world files encountered did not swap the
word datums.
* The -colors, -map, and -monochrome options now take effect
immediately rather than at the end of all other processing.
* Removed non-standard multi-frame extension for SGI format.
* Windows install footprint is more consistent between DLL and
static builds.
* LZMA compressed tarball is in 'xz' format rather than deprecated
'lzma' format.
Bump PKGREVISION.
It introduce bump PKGREVISION of p5-GraphicsMagick.
While here,
* move distinfo and patches location to Makefile.common.
* let to exactly linked against installed GraphicsMagick.
alternative from mk/jpeg.buildlink3.mk
This allows selection of an alternative jpeg library (namely the x86 MMX,
SSE, SSE2 accelerated libjpeg-turbo) via JPEG_DEFAULT=libjpeg-turbo, and
follows the current standard model for alternatives (fam, motif, fuse etc).
The mechanical edits were applied via the following script:
#!/bin/sh
for d in */*; do
[ -d "$d" ] || continue
for i in "$d/"Makefile* "$d/"*.mk; do
case "$i" in *.orig|*"*"*) continue;; esac
out="$d/x"
sed -e 's;graphics/jpeg/buildlink3\.mk;mk/jpeg.buildlink3.mk;g' \
-e 's;BUILDLINK_PREFIX\.jpeg;JPEGBASE;g' \
< "$i" > "$out"
if cmp -s "$i" "$out"; then
rm -f "$out"
else
echo "Edited $i"
mv -f "$i" "$i.orig" && mv "$out" "$i"
fi
done
done
* ghostscript-font-std part had been moved from ghostscript-fonts to
urw-fonts. add dependency on urw-fonts and adjust gs-font-dir.
Bump PKGREVISION (and ABI bump).
1.3.12 (March 8, 2010)
==========================
Security Fixes:
* Updated libpng Windows sources to 1.2.43 in order to resolve
CVE-2010-0205 as it pertains to the GraphicsMagick Windows build.
Bug fixes:
* Filter mode (write to stdout) was completely broken.
* Should now compile with libpng 1.4.
* Windows PerlMagick build identified itself as the wrong version.
New Features:
* None
Feature improvements:
* None
Performance Improvements:
* None
Behavior Changes:
* DCX output format is only written on request. Previously the PCX
coder would automatically switch to DCX format if multiple frames
would be written.
1.3.11 (February 21, 2010)
==========================
Security Fixes:
* Fixed array underflow on systems using signed char which could
result in a program crash due to extended characters in filenames
or in certain file formats.
Bug fixes:
* Fixed array underflow on systems using signed char which could
result in a program crash due to extended characters in filenames
or in certain file formats.
New Features:
* Added a -thumbnail command to 'convert' and 'mogrify'. This is a
faster way to scale down the image when speed is a primary
concern.
* Added a -extent command to 'convert' and 'mogrify' which
composites the image on top of a backing canvas image of solid
color.
* Added support for -compose to the 'convert' and 'mogrify', which
were documented to support it (but did not).
Feature improvements:
* None
Performance Improvements:
* Requests for 'Over' and 'Atop' composition are converted to a
request for the (faster) 'Copy' composition when both images are
opaque.
Behavior Changes:
* None
1.3.10 (February 10, 2010)
==========================
Security Fixes:
* None
Bug fixes:
* +adjoin was not working correctly for the case when only one image
frame is present. With +adjoin and writing one frame to
"foo%d.jpg" it was outputting "foo%d.jpg" rather than "foo0.jpg".
* When drawing paths, memory allocation for the points was much
larger than it needed to be (patch by Vladimir Lukianov).
New Features:
* None
Feature improvements:
* None
Performance Improvements:
* None
Behavior Changes:
* To reiterate the change which first appeared in 1.3.9, there is no
longer an implicit +adjoin if the output file name happens to
contain a %d sequence, or there are multiple frames and the output
file format only supports storing one frame. Specify +adjoin if
scene number substition is desired in the output file names.
1.3.9 (February 4, 2010)
========================
Security Fixes:
* None
Bug fixes:
* Fix "double free" error when using gm import -frame.
* XPM does not support RGBA color syntax, so return RGB instead.
* The display '-update' option was only working in conjunction with
the '-delay' option with a delay setting of 2 or greater.
* For formats which support multiple frames, output with +adjoing to
filenames containing a scene specification (e.g. foo%02d.tiff) was
resulting in wrong output file names.
* -convolve was crashing rather than reporting an error.
* Fixed crash if the number of OpenMP threads was reduced from the
original value via '-limit threads' or omp_set_num_threads().
* -blur was not blurring the opacity channel for solid-color images.
* When installing HTML documentation, many files were included which
are not part of the formatted documentation.
* Several deleted global string constants are restored with
deprecated status in order to assure that symbols are not removed
from the ABI.
New Features:
* None
Feature improvements:
* None
Performance Improvements:
* None
Behavior Changes:
* There is no longer an implicit 'adjoin' if an output filename
contains an apparent scene specification (e.g. foo%02d.tiff) and
multiple files are not needed to save the image.. It is necessary
to use +adjoin. For example ``gm convert foo.pdf +adjoin
%02d.tiff``.
* -flatten now applies the image background color under the first
image in the list if it is not already opaque.
1.3.8 (January 21, 2010)
========================
Security Fixes:
* Fix for CVE-2009-1882 "Integer overflow in the XMakeImage
function".
* Fix lockup due to hanging in loop while parsing malformed
sub-image specification (SourceForge issue 2886560).
* Libltdl: Updated libtool to 2.2.6b in order to fix security issue.
Resolves CVE-2009-3736 as it pertains to GraphicsMagick.
Bug fixes:
* -convolve, -recolor: Validate that user-provided matrix is square
when parsing -convolve and -recolor commands in order to avoid a
core dump.
* CALS: Reading images taller than the image width resulted in a
failure.
* ConstituteImage(), DispatchImage(): 'A' and 'T' should indicate
transparency and 'O' should indicate opacity. Behavior was
inconsistent. In some cases 'O' meant transparency while in other
cases it meant opacity. Also, in a few cases, matte was not
getting enabled in the image as it should.
* DCRAW: Module name was not registered so modules based builds were
not supporting formats provided via 'dcraw'.
* GetOptimalKernelWidth1D(), GetOptimalKernelWidth2D(): In the Q32
build, convolution kernel size was estimated incorrectly for large
sigmas on 32-bit systems due to arithmetic overflow. This could
cause wrong results for -convolve, -blur, -sharpen, and other
algorithms which use these functions.
* Image Size: Fixed the ability to pass the image size via the
filename specification like "myfile.jpg[640x480]" rather than
needing to use -size.
* IPTC: Blob data needed to be padded to an even size. Size is now
correctly reported.
* IPTC: Returned IPTC string values were one character too short.
* Large Files: Large pixel cache files were not working under GNU
Linux.
* JP2: Fixed some value scaling problems.
* JP2: Fix possible crash at exit when Jasper is used by a modules
build.
* MPC: is_monochrome and is_grayscale flags were not managed
properly for the MPC coder.
* PCL: Page was not always being ejected.
* PNG: The png8 encoder would fail when trying to write a 1-color
image.
* PSD: PSD parser was confused by 0x0 pixel layers, resulting in
image data corruption of all following layers.
* -rotate, -shear: Some internally-reported errors were potentially
being lost.
* Subrange/stdin: Commands now support reading an image from stdin
in conjunction with a subrange specification (e.g. "-[1]").
* Magick++ STL ShadeImage: Implementation was completely botched.
New Features:
* CALS Type 1 files may now be written (Work contributed by John
Sergeant). CALS support is dependent on the TIFF library.
* GROUP4RAW encoder supports reading/writing RAW Group4 data.
* JP2: JPEG 2000 may now be written in arbitrary bit depths ranging
from 2 to 16 rather than just 8 or 16.
* JPEG: IJG JPEG library version 7 is now supported.
* JPEG: Added jpeg:block-smoothing and jpeg:fancy-upsampling defines
to control these JPEG library options.
* JPEG: Detect and apply colorspaces appropriately for ITU FAX JPEG.
* Resource Limits: There is now a "threads" resource limit which
allows specifying the number of OpenMP threads which may be used,
similar to the OMP_NUM_THREADS environment variable.
* TIFF: Allow CIELAB TIFF to be read.
* MagickGetImageAttribute()/MagickSetImageAttribute(): New Wand
methods to support getting and setting an image attribute.
Contributed by Mikko Koppanen.
* ClonePixelWand(): New Wand method to deep-copy an existing pixel
wand.
* ClonePixelWands(): New Wand method to deep-copy an array of
existing pixel wands.
* MagickCdlImage(): New Wand method to apply the ASC CDL to an
image.
* MagickGetImageBoundingBox(): New Wand method to return the crop
bounding box required to remove any solid-color border from the
image.
* MagickGetImageFuzz(), MagickSetImageFuzz(): New Wand methods to
get and set the color comparison fuzz factor.
* MagickHaldClutImage(): New Wand method to apply a Hald CLUT to an
image.
* MagickSetResolution(): New Wand method to set the wand resolution.
* MagickSetResolutionUnits(): New Wand method to set the wand
resolution units.
* Magick++: Allow Magick++ library to built as a DLL under MinGW and
Cygwin. This requires a modern GCC in order for C++ exceptions to
work.
Feature improvements:
* Cygwin: Cygwin 1.7 is now supported.
* JPEG compression settings are preserved (if possible) when
inserting JPEG blobs into formats which use JPEG.
* PDF: If the original file used JPEG compression, then use JPEG
compression with original settings (if possible).
* TIFF: Update Windows build to use libtiff 3.9.2.
* X11 Display: Apply a checkerboard pattern underneath transparent
images which use more than simple binary transparency.
Performance Improvements:
* Gamma: Performance is improved for Q8 and Q16 builds. Also
preserve full precision in Q32 build.
* String data is dealt with a bit more efficiently (fewer
allocations, less memory, and less CPU).
Behavior Changes:
* InitializeMagick() MUST be invoked prior to using any Magick API
function. Failure to do so will likely lead to an immediate
application crash. This is due to initialization and runtime
changes intended to improve thread safety and efficiency.
Previously it was only strongly recommended to invoke
InitializeMagick().
* ConstituteImage(), DispatchImage(): 'A' and 'T' should indicate
transparency and 'O' should indicate opacity. Behavior was
inconsistent. In some cases 'O' meant transparency while in other
cases it meant opacity. Also, in a few cases, matte was not
getting enabled in the image as it should.
* colors.mgk: Is now empty to default and is optional. Previous
content is now compiled into the library in an efficient way, but
existing values may be modified, or new values added by adding
entries to color.mgk.
* DisableSlowOpenMP is now the default. Use --enable-openmp-slow to
enable OpenMP for algorithms which sometimes run slower rather
than faster.
* magic.mgk: This configuration file is no longer used since this
data is now compiled into the library in an efficient way.
* modules.mgk: Is now empty to default and is optional. Previous
content is now compiled into the library in an efficient way, but
existing values may be modified, or new values added by adding
entries to modules.mgk.
* Third party executables not included in the Visual Studio build
are no longer bundled in the GraphicsMagick installer. This means
that hp2xx.exe, mpeg2dec.exe, and mpeg2enc.exe are no longer
distributed.
(CVE-2008-1097 was already fixed by patch-ab in pkgsrc).
1.3.7 (September 17, 2009)
==========================
Security Fixes:
* PCX: Detect improper rows, columns, or depth. Fixes CVE-2008-1097
"Memory corruption in ImageMagick's PCX coder".
* DrawDashPolygon: Avoid a crash which sometimes occured with tiny
polygons.
Bug fixes:
* JPEG: Profile chunks need to be concatentated in order to build
the whole profile. This was not working so embedded profiles
larger than 32K or maybe 64K were being corrupted. This bug was
introduced in GraphicsMagick 1.2.
* Meta: Fix memory leaks.
* Meta: Work better with with IPTC record 2 blocks and deal better
with IPTC embedded in an 8BIM profile. Fixes by John Sergeant.
* MPC: Fix crash when reading MPC and the input image is modified.
* PNG: Ensure that the opacity channel is properly initialized.
* -profile: Lowercase arguments were sometimes not working as
expected.
* Topol: Topol reader actually works now and is included in test
suite.
* TIFF: Read and write JPEG-compressed grayscale TIFF correctly.
* VisualMagick configure now works properly when output paths are
specified.
* WMF: Eliminate memory leaks.
New Features:
* MagickWand: New method MagickSetCompressionQuality() to allow
setting the compression quality.
* MagickWand: New method CloneDrawingWand() to deep-copy a drawing
wand.
* MagickWand: New method DrawGetException() to retrieve information
regarding the last drawing wand exception (if any).
* MagickWand: New method DrawClearException() to clear a drawing wand
exception.
* Magick++: New Image method cdl() to apply the ASC CDL.
* Magick++: New Image method colorMatrix() to apply a color matrix
to the image channels.
* Magick++: New Image method haldClut)() to apply a color lookup
table (Hald CLUT) to the image.
* MSL/Conjure: Added a new 'profile' command which applies, adds, or
removes one or more IPTC, ICC or generic profiles from a file.
Work contributed by John Sergeant.
* Added a 'time' subcommand to provide Unix-style 'time' output when
a 'time' capability is missing, or the reporting format is
inconsistent. For example 'gm time convert ...'.
Feature improvements:
* ColorMatrixImage(): Add opaque opacity channel when needed.
* PDF & PS: Use '-type palette' prior to input file name to cause
Ghostscript to return a dithered colormapped image.
* PNG: Now compiles with libpng-1.4.0beta74 and later.
* TIFF: Libtiff in Windows build is upgraded to 3.9.1. This allows
GraphicsMagick to read and write 16 and 24 bit float TIFF files.
* Windows code to find Ghostscript is rewritten from scratch.
Performance Improvements:
* Drawing of points, lines, and polygons (and complex shapes based
on these) is now accelerated using OpenMP with excellent speed-up.
* ICC color transforms now see linear speedup from OpenMP.
* Rotate: For rotations of 90 or 270 degrees, tile sizes are
selected more appropriately.
Behavior Changes:
* No longer clear the exception structure at the start of
ReadImage() and other similar functions since this sometimes masks
errors. The API user is expected to make sure that the exception
structure is clean prior to invoking a function.
* SVG: Writer is now disabled since it usually does not work properly.
This release fixes many bugs, adds many improvements, and adds new
major features. Quite a few volunteers contributed to this release.
The following are the major changes since the 1.3.5 release:
Security Fixes:
* None.
Bug fixes:
* Composition was failing when the change image overlaps off the
left side of the canvas.
* EPT, PDF, PS: PDF bounding box is sometimes incorrect or not
globally applicable so don't specify bounding box when reading PDF
files.
* OpenMP: Fix (benign) multi-thread cross-contentions (detected by
valgrind's Helgrind).
* TIFF: Fix problem with reading one bit per sample RGB images.
* TIFF: Writer was using rows-per-strip of 8 when writing
JPEG-compressed TIFF. This does not work for vertical
subsampling, and some TIFF readers insist on 16. The
rows-per-strip is now required to be a multiple of 16.
* TIFF: In some cases, the TIFF reader and writer were accessing
planar TIFF in row-order rather than plane-order, which resulted
in sever buffering problems in libtiff, and failure when
compression was used.
* -write now works usefully as documented.
* Temporary file name generator was not random enough, resulting in
some file name collisions for GraphicsMagick processes started at
the same time.
* PerlMagick: Fixed Ping on a BLOB.
* GetImageDepth was leaking memory.
* Convert/mogrify -mask option was leaking memory.
* Mogrify -output-directory option was leaking memory.
* DPX: Fixed memory leak encountered when subsampling to 4:2:2.
* DPX: Values read received insuficient scaling, which round-tripped
correctly, but rounded-down excessively if any image processing
was applied.
New Features:
* Added HRS reader for slow scan TV (contributed by Fojtik Jaroslav).
* Pthreads (POSIX threads) API may now be used under the WIN32 API.
* New access confirmation facility (MagickConfirmAccess) to allow
the API user to monitor and/or block access to files and URLs.
This allows the API user to implement a security policy based on
actual accesses.
* New color matrix function (ColorMatrixImage) to apply a color
matrix similar to Adobe Flash Flash.filters.colorMatrixFilter(),
and Windows GDI+ ColorMatrix class, (order up to 5x5) to the image
pixels. This is accessible via the -recolor command option.
* Added an IDENTITY coder to return a Hald identity CLUT image of
specified order (e.g. "identity:8").
* Added a Hald CLUT capability as described at
http://www.quelsolaar.com/technology/clut.html. This allows a
color transformation to be easily created and replicated on any
number of images. The algorithm is accessed by the -hald-clut
option of 'convert' and 'mogrify'. Original algorithm by Eskil
Steenberg and adapted for GraphicsMagick by Cl?ment Follet, with
additional work by Bob Friesenhahn.
* Added support for the ASC CDL transform. Available as -asc-cdl
via the 'convert' and 'mogrify' subcommands. Original
implementation by Cl?ment Follet but considerably re-worked by Bob
Friesenhahn. Implementation passes the +/- 1 count accuracy
requirement required by the ASC CDL SOP tests.
* Added support for reading CALS Type 1 format (contributed by John
Sergeant). CALS is a standard raster format used by the US
Department of Defense for storing blueprint images.
* Added a random number generation system based on George
Marsaglia's multiply-with-carry generator. Somewhat slower than
rand() but produces better random numbers with a period >2^60.
This is a much better random number generator than the C library
rand() and the algorithm is integrated in a way which maximizes
multi-thread performance.
* The 'compare' command now supports a -maximum-error option to
specify the maximum image error so that it may be used to support
boolean logic in automated test scripts.
* For OpenMP-builds, the '-list resource' output now indicates the
number of threads which will be used.
Feature improvements:
* Image resize now avoids adding "halos" around objects when
resizing an image which contains transparency (patch contributed by
Pavel Merdin).
* DICOM: The DICOM reader is completely re-written and is much more
functional now. A few features (e.g. RLE compression) are still
missing. This work is contributed by John Sergeant.
* EXIF: Unprintable characters in EXIF attribute strings are now
returned using three-digit octal notation. Unknown tags are
identified via their four-character hex value.
* PCL: PCL writer is rewritten to fix many bugs, add support for
compression, add support for 8 bit PseudoClass images, and
dramatically improve usability (work contributed by John Sergeant).
* TIFF: Allow the user to force the returned image to be TrueColor
type for min-is-white and min-is-black TIFF files.
* TIFF: User can now specify the predictor using syntax like
'-define tiff:predictor=2'.
* TIFF: User can now specify the rows-per-strip value when using
JPEG compression.
* TXT: The TXT reader is now capable of reading image files written
by the TXT writer, as well continuing to render ASCII text into an
image (work contributed by Fojtik Jaroslav).
* Utilities @file.txt syntax for including a list of files to use as
an argument now really works as expected. This may be used to
inject any other text into the command line as well. As a result,
the 'mogrify' utility may be invoked on thousands of files at once
while obtaining the list of files to process from a text file.
* The 'mogrify' utility now caches argument images so that they are
loaded only once when mogrify is used to process multiple image
files.
Performance Improvements:
* -median and -noise now see reliable linear speedup as threads are
added.
Behavior Changes:
* PerlMagick is configured but no longer built by default.
* Use '-interlace Line' to produce an interlaced GIF, PNG, or
progressive JPEG.