Up to [cvs.NetBSD.org] / pkgsrc / graphics / GraphicsMagick
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
*: recursive bump for icu 79
*: recursive bump for pcre2 10.49
*: revbump for pcre2 symbol versioning change
*: recursive bump for pcre2 10.48
*: Recursive revbump from security/nettle-4.0
*: recursive bump for nettle 4.0 shlib major bump
*: recursive bump for icu 78.1
*: recursive bump for pcre2 Running an old binary against the new pcre doesn't work: /usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/pkg/lib/libglib-2.0.so.0 not defined
*: recursive bump for tiff growing lerc dependency
*: recursive bump for jpeg -> libjpeg-turbo switch
*: recursive bump for default Kerberos implementation switch
*: recursive bump for icu 77 and libxml2 2.14
*: recursive bump for icu 76 shlib major version bump
*: revbump for icu downgrade
*: recursive bump for icu 76.1 shlib bump
*: recursive bump for gnutls p11-kit option (existing installations need the bl3.mk included, but it's now only optionally included)
*: revebump for new brotli option for freetype2 Addresses PR 57693
GraphicsMagick: Make zstd optional, disabled by default. Rationale: zstd support is only used for tiff files. Since this is a non-standard extension, it can be assumed to be extremely rare for what's already a quite uncommon image file format.
*: recursive bump for icu 74.1
*: bump for openssl 3
recursive revbump for tiff update
revbump after textproc/icu update
*: Recursive revbup from graphics/freetype2
*: recursive bump for tiff shlib major bump
*: bump PKGREVISION for libunistring shlib major bump
*: recursive bump for perl 5.36
GraphicsMagick: updated to 1.3.37
1.3.37 (December ?, 2021)
==========================
Special Issues:
* The FTP site ftp.graphicsmagick.org is now shut down due to a lack
of bandwith, extremely abusive users (including from Google and
customers of Amazon Web Services), and a lack of support from the
user community. Another factor is that FTP support has been removed
from popular web browsers. This is very unfortunate since the site
served multiple usages, including providing a lot of historical data
(e.g. related to PNG) which may not be available elsewhere.
* The Microsoft Visual Studio build has not been updated for this
release (although it does compile and the results do work fine) and
I will not be providing any Windows installation packages
corresponding to this release. The problem is that the third-party
'delegate' libraries are out of date and they need to be updated
since some of them are known to contain severe security
vulnerabilities. Several third-party 'delegate' libraries now
require real C'99 support, which means that Visual Studio 2015 or
later would be required to build them. The 'configure' program used
to build the Visual Studio project files needs to be updated since
otherwise a 20 minute project upgrade cycle is needed when using
Visual Studio 2019, and to make minor path changes to avoid a
multitude of project-file warnings while building. The installation
requirements for Visual Studio 2015 or later are different (related
to run-time "redistributables", which are now very onerous) and so
the Inno Setup installer needs some minor (or major) changes. Many
pleas for assistance have been made (e.g. even to help with testing
to see if the software executes at all) but thus far the Microsoft
Windows user community has not been helpful with regards to the
Microsoft Visual Studio build.
* GraphicsMagick really does need some additional productive
volunteers. For several years now, the burden has entirely been on
me. I have been sheparding the project for 19 years already (and
contributed to ImageMagick and GraphicsMagick combined for 25 years
already). It is not reasonable to expect someone with a full time
job (and expecting to retire in a couple of years) to do all of the
work.
Security Fixes:
* GraphicsMagick is participating in Google's oss-fuzz project due to
the contributions and assistance of Alex Gaynor. Since February 4
2018, 590 issues have been opened by oss-fuzz and 23 issues remain
open (most of which are in third-party software such as development
JasPer). The issues list is available at
https://bugs.chromium.org/p/oss-fuzz/issues/list under search term
"graphicsmagick". Issues are available for anyone to view and
duplicate if they have been in "Verified" status for 30 days, or if
they have been in "New" status for 90 days. Please consult the
GraphicsMagick ChangeLog file, Mercurial repository commit log, and
the oss-fuzz issues list for details.
Bug fixes:
* CAPTION: Eliminate an assertion upon deallocation.
* CMYK: Fix broken reading of planar CMYK files (a regression since 1.3.27).
* ExecuteModuleProcess(): Add missing error reporting related to
the -module command option.
* GIF: Handle GIF files where the 'opaque' index matches the number of
colors by producing an extra colormap entry of transparent
black.
* JP2: Adaptations to compile cleanly with JasPer 2.0.20.
* META: Fix types used to prefer unsigned types where possible and to
use 'size_t' rather than 'int' for size values.
* MSL: A great many MSL parser fixes.
* Microsoft Windows: Detect and use Ghostscript point versions added
after 9.52, after which the version number format was changed.
* PCX: Fix problem that 16-colors are used rather than 256-colors
* PDF: Fix MediaBox dimensions ("Incorrect MediaBox in PDF export").
* PDF: Use appropriate memory deallocator for memory returned by
StringToList().
* RGB: Fix broken reading of planar RGB files (a regression since
1.3.27).
* TIFF: Fix double-charging for memory allocations (a regression since
1.3.36).
* TIFF: Make sure that loops using TIFFReadScanline(), etc, do quit
upon first reported error.
* WEBP: Enforce that embedded profiles provided by libWebP are not
zero-sized.
* WEBP: Use SetImagePixelsEx() rather than GetImagePixelsEx() in
reader.
* WriteBlob(): Use appropriate handle for bzip2.
New Features:
* None
API Updates:
* DisposeTypeToString(): New utility function to convert a DisposeType
to a string.
* StringToDisposeType(): New utility function to convert a string to a
DisposeType.
Feature improvements:
* JP2: Support building using development JasPer 3.0.0 and request
that it use our managed-memory allocators for resource control.
* Pixel Cache: Memory cache implementation of pixel cache now uses
resource limited memory allocator.
* Analyze filter module: Add OpenMP speed-ups.
* IsImagesEqual(): Allow comparing images when the 'matte' channel
flag differs.
Windows Delegate Updates/Additions:
* Remove bundled hp2xx.exe, mpeg2dec.exe, and mpeg2enc.exe.
Build Changes:
* Microsoft Windows: configure.ac fixes for gdi32 to depend on user32
as well.
* Microsoft Windows: VisualMagick/All/All.vcproj.in updated to fix
problem with not being able to load the 'All' project if the project
supports the x64 target.
* Autotools build, many more TAP tests have been added, including to
exercise all of the 'convert' commands.
* TIFF: Adaptations to compile cleanly for libtiff versions
beyond 20201219.
* Magick++: Support compiling with C++'98 through C++'17.
* Autotools build, Add support for using an external
'graphicsmagick_snapshot_copy' script to copy files for the
'snapshot' target. This provides local control over how files are
copied and where they are copied to.
Behavior Changes:
* TranslateTextEx(): If image resolution is impossibly small, then
report the default resolution of 72 DPI, or the equivalent in
centimeters if units is in pixels-per-centimeter.
revbump for boost-libs
revbump for boost-libs
Revbump for openpam cppflags change months ago, belatedly.
*: revbump after fontconfig bl3 changes (libuuid removal)
revbump after updating security/nettle
librsvg: update bl3.mk to remove libcroco in rust case recursive bump for the dependency change
*: recursive bump for libffi
*: recursive bump for gdk-pixbuf2-2.38.1
*: recursive bump for nettle 3.5.1
Recursive bump for ghostscript default change
GraphicsMagick: commit missing patch, fix buildlink.mk
Revbump after cairo 1.16.0 update.
Recursive revbump from hardbuzz-2.1.1
Add p11-kit to gnutls/bl3.mk and bump dependencies.
Recursive bump for new fribidi dependency in pango.
Recursive bumps for fontconfig and libzip dependency changes.
Bump PKGREVISION for gdbm shlib major bump
recursive bump for libxkbcommon removal from at-spi2-core
Bump PKGREVISION for security/openssl ABI bump.
Recursive PKGREVISION bump for OpenSSL API version bump.
Try to fix the fallout caused by the fix for PR pkg/47882. Part 3: Recursively bump package revisions again after the "freetype2" and "fontconfig" handling was fixed.
Bump freetype2 and fontconfig dependencies to current pkgsrc versions, to address issues with NetBSD-6(and earlier)'s fontconfig not being new enough for pango. While doing that, also bump freetype2 dependency to current pkgsrc version. Suggested by tron in PR 47882
For all packages include ghostscript.buildlink3.mk: s/ghostscript.buildlink3.mk/buildlink3.mk/ Bump PKGREVISIONs
Update ghostscript depends.
Recursive bump for png-1.6.
PKGREVISION bumps for the security/openssl 1.0.1d update.
Revbump after graphics/jpeg and textproc/icu
Changes 1.3.17:
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).
Set BUILDLINK_ABI_DEPENDS correctly (with +=, not ?=) It turns out there were a lot of these.
Revbump for a) tiff update to 4.0 (shlib major change) b) glib2 update 2.30.2 (adds libffi dependency to buildlink3.mk) Enjoy.
Update GraphicsMagick to 1.3.13.
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.
fixes last commit (variable name changes).
Need to use PKG_BUILD_OPTIONS for conditional buildlink.
Recursive bump for graphics/freetype2 buildlink addition.
Moudulalize GraphicsMagick, for let PerlMagick to lightweight. 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.
fixes buildlink with pre x11 option GraphicsMagick.
Add options.mk for GraphicsMagic and add options for building without X or a few other dependencies. This is part of PR pkg/43929 from Edgar Fuß
recursive bump from gettext-lib shlib bump.
png shlib name changed for png>=1.5.0, so bump PKGREVISIONs.
Mechanically replace references to graphics/jpeg with the suitable
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
Bump PKGREVISION for libpng shlib name change. Also add some patches to remove use of deprecated symbols and fix other problems when looking for or compiling against libpng-1.4.x.
* enable jbig support, add dependency to jbigkit. * 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).
Second try at jpeg-8 recursive PKGREVISION bump.
bump revision because of graphics/jpeg update
Simply and speed up buildlink3.mk files and processing. This changes the buildlink3.mk files to use an include guard for the recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS, BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of enter/exit marker, which can be used to reconstruct the tree and to determine first level includes. Avoiding := for large variables (BUILDLINK_ORDER) speeds up parse time as += has linear complexity. The include guard reduces system time by avoiding reading files over and over again. For complex packages this reduces both %user and %sys time to half of the former time.
Update GraphicsMagick to 1.3.
1.3 (November 9, 2008)
======================
Security fixes:
* AVI reader: Re-worked to be more robust against crash or DOS.
* AVS reader: Re-worked to be more robust against crash or DOS.
* DCM reader: Re-worked to be more robust against crash or DOS.
* EPT reader: Re-worked to be more robust against crash or DOS.
* FITS reader: Re-worked to be more robust against crash or DOS.
* MTV reader: Re-worked to be more robust against crash or DOS.
* PALM reader: Re-worked to be more robust against crash or DOS.
* RLA reader: Re-worked to be more robust against crash or DOS.
* TGA reader: Re-worked to be more robust against crash or DOS.
* Avoid possible crash in GetImageCharacteristics() when substituting
text in comment read from file.
* Cineon reader: Fixed crash with broken file from Sami Liedes.
* Palm reader: Fixed crash with broken files from Sami Liedes.
* PICT reader: Fixed crash with broken files from Sami Liedes.
* DPX reader: Validate file data better to avoid improper operation with
intentionally (or accidentally) defective files.
* XCF reader: Fixed crash with broken files from Sami Liedes.
Bug fixes:
* Libbz2 is now detected for MinGW.
* Install documentation under /usr/local/share/doc/GraphicsMagick by
default, according to GNU conventions.
* In PerlMagick, Dissolve composition was not working right.
* FITS: Ensure that written format conforms to specification.
* TIFF:
- Don't accidentially convert CMYK images to RGB.
- Eliminated a memory leak in the codec support detection code.
* JPEG: Removed over-write of image->client_data.
* PDF: Try to properly deal with reading rotated PDFs.
* PNG: Fixed crash when writing PNG images with transparency and either
optimize is requested, or the image is colormapped.
* Configure: Fixed the --enable-magick-compat configure option, which
had stopped working.
* Configure: Fixed --without-magick-plus-plus so that it works again. This
stopped working in the 1.2 release cycle.
* Configure: Fixed MagickLibVersion text string generation so that it
is now correct when a component of the release number exceeds '9'.
Now components can safely count up to '99' before there is a problem.
Performance Improvements:
* OpenMP (parallel processing) improvements for these functions:
- Affine transform (-affine -transform)
- Average images (-average)
- Add noise (+noise)
- Black threshold (-black-threshold)
- Blur (-blur)
- Border (-border)
- Channel import, export, and depth-setting (-channel, -depth)
- Clip path
- Coalesce (-coalesce)
- Colorize (-colorize)
- Colorspace transformation (-colorspace)
- Compare images ('compare' command)
- Composition ('composite' command)
- Convolution (-convolve, -edge, -emboss, -gaussian, -sharpen)
- Contrast adjust (-contrast)
- Crop (-crop)
- CycleColormap (-cycle)
- Depth setting (-depth, -operator depth)
- Despeckle (-despeckle)
- Enhance (-enhance)
- Equalize (-equalize)
- Flatten (-flatten)
- Flip (-flip)
- Flop (-flop)
- Frame (-frame)
- Gamma adjust (-gamma, -operator gamma)
- Gradient
- Implode (-implode)
- Levels adjust image (-level)
- Local adaptive threshold (-lat)
- Median filter (-median)
- Minify image (-minify)
- Modulate image (-modulate)
- Morph image (-morph)
- Mosiac (-mosaic)
- Motion blur (-motion-blur)
- Negate image (-negate)
- Noise filter (-noise)
- Normalize image (-normalize)
- Oil Paint (-paint)
- Opaque (-opaque)
- Ordered dither (-ordered-dither)
- Operators (-operator)
- Profile adjust (ICC) (-profile)
- Random threshold (-random-threshold)
- Resize image (-resize)
- Raise image (-raise)
- Roll image (-roll)
- Rotate image (-rotate)
- Shade image (-shade)
- Shear image (-shear)
- Shave (-shave)
- Solarize image (-solarize)
- Spread image (-spread)
- Statistics computation (identify -verbose)
- Swirl (-swirl)
- Threshold channel (-threshold, -operator threshold)
- Threshold image (-threshold)
- Transparent (-transparent)
- Trim image (-trim)
- UnsharpMaskImage (-unsharp)
- Wave (-wave)
- White threshold (-white-threshold)
* Improved coder management performance.
* XCF (GIMP) reader is much faster.
New Features:
* Use MAGICK_CODER_STABILITY environment variable to enable a subset
of the coders based on their stability classification.
* Use MAGICK_IO_FSYNC environment variable to cause written file to
be synchronized to disk to avoid possible data loss on power fail.
* Added 'compare' command to statistically or visually compare two
image files.
* Added new channel operators (-operator):
- Assign
- Gamma
- Depth
- Negate
- Noise-Gaussian
- Noise-Impulse
- Noise-Laplacian
- Noise-Multiplicative
- Noise-Poisson
- Noise-Uniform
- Threshold
- ThresholdBlack
- ThresholdWhite
* New composition operators (-compose):
- CopyBlack
- CopyCyan
- CopyMagenta
- CopyYellow
- Divide
* Added -motion-blur to motion blur the image.
* Mogrify and convert now support -black-threshold and -white-threshold.
* MAT: Now supports reading compressed files.
* FITS: Now supports 8, 16, 32 bit integer, float, and double images
and writes correct FITS format.
* DCRAW: Coder proxy module allows reading digital camera files as if
they were natively supported.
* New C API functions:
- AddNoiseImageChannel(), add noise to an image channel.
- BlurImageChannel(), blur an image channel.
- GaussianBlurImageChannel(), gaussian blur an image channel.
- ImportImageChannelsMasked(), import selected image channels.
- SharpenImageChannel(), sharpen an image channel.
- UnsharpMaskImageChannel(), unsharpmask an image channel.
- New cache view interfaces to correct shortcommings of original
ones. New interfaces are AcquireCacheViewPixels(),
AcquireOneCacheViewPixel(), AcquireCacheViewIndexes(),
GetCacheViewPixels(), SetCacheViewPixels(), and
SyncCacheViewPixels(). The deprecated functions are
AcquireCacheView(), GetCacheView(), SetCacheView(), and
SyncCacheView().
- GetCacheViewRegion() reports region bounded by a cache view.
- GetCacheViewArea() reports area bounded by a cache view.
- ExportViewPixelArea() exports a cache view as formatted pixels.
- ImportViewPixelArea imports formatted pixels into a cache view.
* Removed C API functions:
- ReadStream()
- WriteStream()
* Magick++ C++ API improvements
- Color class no longer considers transparent black to be an invalid
color.
- New Image methods addNoiseChannel(), blurChannel(),
gaussianBlurChannel(), motionBlur(), randomThresholdChannel(),
randomThresholdChannel(), sharpenChannel(), unsharpmaskChannel().
Feature improvements:
* -ordered-dither and -random-threshold may now be used to individually
dither any named channel.
* Mogrify and convert now support -minify to halve the image size.
* Mogrify and convert now support -magnify to double the image size.
pullup ticket #2366 - requested by obache
GraphicsMagick: security & bug fixes
revisions pulled up:
- pkgsrc/graphics/GraphicsMagick/Makefile
- pkgsrc/graphics/GraphicsMagick/PLIST
- pkgsrc/graphics/GraphicsMagick/buildlink3.mk
- pkgsrc/graphics/GraphicsMagick/distinfo
Module Name: pkgsrc
Committed By: obache
Date: Tue Apr 29 04:56:24 UTC 2008
Modified Files:
pkgsrc/graphics/GraphicsMagick: Makefile PLIST buildlink3.mk distinfo
Log Message:
Update GraphicsMagick to 1.1.12.
Significant changes associated with GraphicsMagick 1.1.12 (released April 28, 2008)
Security Fixes:
o Do not access X11 or invoke convenience or stealth delegate
programs based on the file extension. In particular, these file
extensions are rejected for consideration as a format specifier:
'autotrace', 'browse', 'dcraw', 'edit', 'gs-color',
'gs-color+alpha', 'gs-gray', 'gs-mono', 'launch', 'mpeg-encode',
'print', 'scan', 'show', 'win', 'xc', and 'x'.
Bugs Fixed:
o magick/effect.c: Should now compile for ARM CPU.
o TIFF: Don't request Kodak private tags since these cause some
versions of libtiff to misbehave.
o When performing string expansion of image attribute identifiers, skip
those which require access to image pixels if image pixels are not
present.
o CropImageToHBITMAP(), ImageToHBITMAP(): Fix leak of bitmap handle.
Update GraphicsMagick to 1.2.
GraphicsMagick 1.2 is the result of four years of additional
development and testing over and above the 1.1 release branch. In
these four years there have been a huge number of security fixes,
considerable performance enhancements, and new features have been
added. GraphicsMagick 1.2 continues to be mostly API and command
compatible with previous GraphicsMagick releases, and with ImageMagick
5.5.2 from whence it originated.
The following is the summarized (yet extensive!) list of changes in
this release. See the ChangeLog file for the full list of changes.
Security fixes:
* Fixes for CERT security alert TA04-217A described at
"http://www.us-cert.gov/cas/techalerts/TA04-217A.html".
* AVI, BMP, & DIB security fixes.
* PSD security fixes.
* P7 format security fix.
* Fix EXIF IFD stack overflow vulnerability.
* SGI security fix for RLE encoding (CVE-2006-4144)
* XCF security fix (CVE-2006-3743)
* PALM heap overflow fix (CVE-2006-5456)
* DCM security fix (CVE-2006-5456)
* Fix for shell command injection in delegate code via file names)
(CVE-2005-4601). Delegate execution is much more secure now.
* Don't use filenames as printf specifications (CVE-2006-0082).
* Fix integer overflow in DCM coder (CVE-2007-1797).
* XWD integer overflow fix (CVE-2007-1797).
* Implementation has replaced usage of strcpy, strcat, and strncat
with the more security conscious strlcat and strlcpy.
* DCM, DIB, XCF, XBM, and XWD security fix for integer overflow
vulnerability (IDefense 09.19.07).
* Do not access X11 or invoke convenience or stealth delegate programs
based on the file extension. In particular, these file extensions are
rejected for consideration as a format specifier: 'autotrace',
'browse', 'dcraw', 'edit', 'gs-color', 'gs-color+alpha', 'gs-gray',
'gs-mono', 'launch', 'mpeg-encode', 'print', 'scan', 'show', 'win',
'xc', and 'x'.
Bug fixes:
* The configure script now searches for a web browser in the order
mozilla, firefox, and finally netscape.
* When the user specifies the -units option, the current image
resolution values are now re-scaled to match the new units.
* Properly determine Ghostscript font location for Ghostscript 8.0 and later.
* GraphicsMagick now successfully builds and passes all tests under
Digital Unix 5.1, using the vendor compiler.
* Ghostscript sometimes displays an error message and fails, yet it
returns a success error code to GraphicsMagick. Verify that
Ghostscript has updated the output file before attempting to use it.
* Fixed a configure script syntax error when testing for trio.
* When requesting a list of formats, all of the modules in the module
search path are considered. Previously only the modules in the same
directory as the LOGO module were listed.
* Ensure that an image clip mask is respected by the negate algorithm.
* The BMP writer was sometimes writing incorrect BMP v4 files.
* Support reading and writing large PCX files.
* The Red Hat source RPM was failing to install the -config scripts
with execute permissions.
* Fixed a bug which could cause possible truncation while cloning the
image cache.
* Ensure that MIFF files indicate the compression which was actually used.
* Properly handle errors from libtiff so that corrupted images are not
output.
* Fix for stripped-TIFF reader. Discard extra samples beyond alpha in
scanline TIFFs.
* Endian option now controls TIFF byte-order rather than bit-order.
* TIFF writer can now write to pipes and other non-seekable output
destinations.
* JBIG writer was writing empty files for some libjbig releases.
* Improved handling of corrupt GIF files.
* Handle large SUN format images.
* Properly compute image depth for 16-bit SGI image files.
* For the gmdisplay program, ensure that only RGB data is sent to Windows.
* Many memory leak fixes.
* PDF writer is fixed so that Ghoscript 8.5 doesn't warn about the output.
* PDF writer now writes proper output with CCITT compression.
* Properly use fseeko() and ftello() if they are available.
* Fixed a infinite loop bug in the XWD reader.
* Fix minor memory leak in ProfileImage().
* Fixed -level command parsing when a percent symbol is supplied within the
argument rather than at the end.
* Fix pixel scaling problem caused by floating point
rounding error (noticed under AIX).
* Fixed a memory leak in the GIF coder in the error return path.
* Fix for SourceForge bug id 1353744 "MagickGetQuantumDepth doesn't work".
* Fix for SourceForge bug id 1315109 "segfault in InitializeMagick(NULL)".
* Fix for SourceForge bug id 1391421 "problem doing resize on 273x1 JPEG".
* Fix for SourceForge bug id 1510075 "Failed to write PDF with JPEG compression".
* Fix for SourceForge bug id 1572357 "GetOnePixel definition appears incorrect".
* Fix for SourceForge bug id 1576616 Fix includedir variable in pkg-config files".
* Fix for SourceForge bug id 1173713 "segfault in ModifyCache".
* Fix for SourceForge bug id 1431805 "clip art wpg files cause access violation
in graphics magick".
* Fix for SourceForge bug id 1743141 "Affine matrix option parsing".
* Fix for SourceForge bug id 1625477 "Memory leak reading layered PSD Image".
* Fix for SourceForge bug id 1878992 "literal square brackets in file
name cause large delay and bug id 1783209 "converting runs slowly
when subimage is specified".
* Fix for SourceForge bug id 1883527 "compression of tiff-file has no effect".
* Successfully read files in the form "file[123]".
* Fix reading 12-bit grayscale JPEG.
* Set image depth appropriately when importing image from X11 display.
* Fix map resource tracking.
* Fix reading recent variants of ImageMagick's MIFF format.
* Output bilevel TIFF meeting the TIFF Class F specification.
New Utilities:
* A 'benchmark' subcommand is now available to benchmark the
performance of any other arbitrary subcommand (e.g. 'convert').
Feature improvements:
* LZW compression is now enabled by default.
* Support industry-standard subsampling notation like "4:2:2".
* If gm is executed under a traditional alternate name (e.g.
convert), it will invoke the appropriate sub-command. This allows
use of hard links, symbolic links, or just copying 'gm' to the
desired sub-command name in order to achieve 100% ImageMagick 5.5.2
utility compatibility.
* Provide the --enable-magick-compat option when configuring to install
ImageMagick utilities compatibility links.
* Identify -verbose output includes normalized (0.0-1.0) statistics.
* Identify and convert now print "pixels per second" rates to help
evaluate performance.
* Added the identify +ping option to force reading the complete file.
* The display program now supports the +progress option to disable any
visual progress indication (and hourglass cursor) while loading images.
* Support writing grayscale TGA files.
* Provide explicit support for Rec 601 and Rec 709 grayscale spaces.
* Include some support for a log RGB space based on the 2.048 density
range as defined for the Cineon Digital Film System.
* Added utilities command-line support for industry standard subsampling
notation like 4:4:4 and 4:2:2.
* Use MAGICK_IOBUF_SIZE to tune the size of the I/O buffer.
* Use -type Bilevel, Grayscale, TrueColor, or TrueColorMatte to
influence the type of image that Ghostscript returns.
* Use '-define tiff:fill-order={msb2lsb|lsb2msb}' to control TIFF bit
fill order.
* The -version option now dumps a feature list as well as the build
options.
* The -endian option now supports the option 'native'.
* A -monitor is added to enable progress monitoring for the command line
utilities.
* Use the -output-directory option to 'mogrify' to send output files to
the specified directory.
* Use the -create-directories option in conjunction with
-output-directory and 'mogrify' to create any necessary subdirectories.
* A Pixels resource limit is added. Use '-limit Pixels value' to limit
the maximum number of pixels in an image to 'value'.
* The already supported option '-type Optimize' is now honored by
formats that need to choose a subformat based on the properties of
the image. Grueling tests of many/all pixels are not performed
unless '-type Optimize' is supplied.
* Added a a -set option to the composite, convert, display, mogrify,
import commands in order to allow setting an image attribute.
* Display utility no longer defaults to reading from standard input if
stdin is not a tty.
* May now be configured to use the umem memory allocation library
available in Solaris 9, Update 3 and later, or from the portable umem
project.
Coder additions/improvements:
* Replaced existing DPX "support" with all-new DPX support conforming
to the SMPTE 268M-2003 standard.
* Cineon reader completely rewritten.
* TIFF coder is completely re-written. Now supports reading and
writing RGB, CMYK, and grayscale, scanline-oriented TIFF images
with arbitrary (1 to 32 bits) depth. Includes support for tiled
TIFF, floating point TIFF, LogLuv TIFF, BigTIFF, arbitrary depths,
and associated alpha.
* TIFF coder now supports retrieving and saving XMP profiles.
* MATLAB support is much improved and supports writing as well.
* WPG reader now supports CTM translations.
* ART format now supports writing.
* Support 32-bit raw RGB images.
* Support 32-bit raw CMYK images.
* Support 32-bit raw gray images.
* JP2 coder reads images in YCbCr colorspace and retrieves an embedded
ICC ICM color profile if present.
API enhancements:
* Added ExportImageChannel() and ImportImageChannel() APIs to support
exporting and importing pixel regions with an arbitary range of (1
to 32) bits per quantum.
* Added image leveling methods for Magick++.
* Generalized GetImageAttribute() support for retrieving wildcarded
attributes so that an identify -format specification like
``"%[dpx:*]"`` works as expected.
* Incorporated changes changes necessary so that GraphicsMagick can
work with the Ch C/C++ interpreter from SoftIntegration at
http://www.softintegration.com/.
* Added MagickAllocFunctions() to allow the API user to replace the
underlying memory allocator functions.
* Added MagickMalloc() and deprecated AcquireMemory().
* Added MagickCloneMemory() and deprecated CloneMemory().
* Added MagickMallocArray() to safely allocate N items of size S.
* Added MagickRealloc() and deprecated ReacquireMemory().
* Added MagickFree() and deprecated LiberateMemory().
Performance improvments:
* The DispatchImage() and ConstituteImage() functions incorporate
special case code for BGR, BGRO, BGRP, RGB, RGBO, and I formats (8
bit only) in order to improve performance dramatically.
* When writing very large JPEG images, don't enable Huffman compression
since doing so requires libjpeg to buffer the entire image in memory.
* When using the 'identify' -verbose option, -verbose must be specified
twice in order to obtain the color count. This makes normal use of
-verbose much faster.
* Significantly improved read/write speed for bilevel and gray images.
* TIFF I/O is considerably faster.
* Postscript writer is 10-15X faster.
* PNM formats writer is 10-100X faster.
* Rotate by 90 or 270 degrees is 2-9X faster.
Update GraphicsMagick to 1.1.12.
Significant changes associated with GraphicsMagick 1.1.12 (released April 28, 2008)
Security Fixes:
o Do not access X11 or invoke convenience or stealth delegate
programs based on the file extension. In particular, these file
extensions are rejected for consideration as a format specifier:
'autotrace', 'browse', 'dcraw', 'edit', 'gs-color',
'gs-color+alpha', 'gs-gray', 'gs-mono', 'launch', 'mpeg-encode',
'print', 'scan', 'show', 'win', 'xc', and 'x'.
Bugs Fixed:
o magick/effect.c: Should now compile for ARM CPU.
o TIFF: Don't request Kodak private tags since these cause some
versions of libtiff to misbehave.
o When performing string expansion of image attribute identifiers, skip
those which require access to image pixels if image pixels are not
present.
o CropImageToHBITMAP(), ImageToHBITMAP(): Fix leak of bitmap handle.
Modular Xorg support.
Very belatedly bump PKGREVISION for all jasper dependencies because of the shlib name change (!) during the update to 1.900.0. Noted by Robert Elz in PR 35431.
Include using libraries' bulidlink3.mk files.
Remove comments not applicable.
Add buildlink3.mk.