Imager release history.  Older releases can be found in Changes.old

Imager 0.87 - 03/01/12

 - document the return value of the filter() method.

 - document i_gsamp_bits() and i_psamp_bits().

 - properly increment the Imager::Matrix2d $VERSION.

 - actually include the Imager::Test tests in the dist

 - correctly read and write 256x256 pixel ICO files

 - make the error message from read() or read_multi() when they can't
   identify the file type match reality.

 - read() now uses $FORMATGUESS if it can't determine the file type
   based on the file header, to match read_multi().

 - re-work and add tests for def_guess_type().  def_guess_type() no
   longer returns any random file extension as the file type.

 - add gray4, gray16 and gray as presets for make_colors.

 - add make_palette() method that produces a palette from one or more

 - fix the Imager dependency for the separately distributed font

 - fix i_render_color() to properly draw in "normal" mode - ie. when
   writing to a 1 or 3 channel image the second or fourth channel of
   the source color was being ignored, it is now significant.

Imager 0.86 - 31 Oct 2011

 - improve error reporting for W32 tests

Imager 0.85_02 - 24 Oct 2011

Bug fixes:

 - eliminate unused i_gif_opts type (clean-up)

 - fix combine=0 fill color anti-aliasing on the double/sample path

 - make default text color non-transparent

 - apply the last of the Debian unforwarded spelling fixes

 - the log() method used its message parameter as a C level format

 - provide our own STRLEN typemap entry for older perls.

 - add extra ppport.h configuration to support older perls.

 - depend on Scalar::Util, since we use it and older perls don't have

 - add overloaded eq to Imager::Matrix2d, since older perls don't seem
   to synthesize it from overloaded "".

  - use T1_StrError() for error messages on modern libt1

 - actually load the font rather than just adding it to the catalog on

 - Imager::Font->new now produces better error messages for the T1

 - the font has_chars() method now returns perl's true and false
   values in list context rather than integers, which should be more

 - the btm data structure used by the flood_fill code is now
   initialized more efficiently.

 - updated the Thanks list in README

 - check there's at least one coefficient for the convolution filter

 - make the APIRef synopsis ordering consistent, older versions of
   perl could order it differently.

 - we rely on's d_vsnprintf as to whether we use
   vsnprintf/snprintf, which is defined in the Win32 even
   though it only has _ prefixed versions of these.  Define our own
   prefixed names on Win32.

 - fix library detection with MSVC

 - search a few more library directories, so EU::MM doesn't discard
   them.  Hopefully fixes:

Imager 0.85_01 - 10 Oct 2011

 - add simple tests for the Imager::Test test_image generators

 - io_glue I/O buffering re-work:

   - reorganize io_glue to do it's own buffering by default

   - the unbuffered functions are available as i_io_raw_read() (or
     raw_read() from perl) etc but are not recommended for typical

   - use the new i_io_peekn() when checking for file magic to avoid
     seek, allowing Imager to detect the file type and read the file
     from an unseekable stream (for formats that don't use random

   - added several new I/O layer API functions.

   - fix the TGA performance problem, most noticably on Win32

   - TIFF now uses wrapper functions of the correct types to avoid casts

   - the callback IO object did its own buffering, controlled by the
     maxbuffer parameter supplied to the read() and write() methods.
     This buffering has been removed, to avoid redundancy with the
     common io_glue buffering.  This also avoids a bug in that code
     which could rarely pass a zero length to the read callback and
     then panic about the result.

   - the callback IO object now tests the result of calling the close
     callback, which should return true for success.

   - the PNM reader did its own buffering.  This buffering has been
     removed to avoid redundancy with the common io_glue buffering.

   - previously the read handlers for fd and callback I/O layers would
     call the underlying interface (POSIX read or your supplied callback)
     until it filled the buffer.  It now only makes one call.

   - added public constructors for I/O layer objects (see Imager::IO)

   - all core file handlers now use the i_io_foo() wrappers to gain
     access to buffered I/O rather than calling the I/O layer
     callbacks directly.

   - all core file handlers now check for error on close.

   - Backward compatibility: if you hava custom file handlers, you can
     use i_io_write() etc since they're available as macros in older
     versions of Imager.

   - eliminate the final remnants of io_glue_commit_types().

   - bump IMAGER_API_VERSION, since the above may break assumptions.

 - removed the long unused i_gen_reader() and i_gen_writer() utility

Imager 0.85 - 29 Aug 2011

The main changes in the release versus 0.84 are:

 - on 64-bit systems, 64-bit types are consistently used for image
   dimensions and co-ordinated, and for memory block sizes.

 - handle IFD loops in TIFF files correctly.  Previously this would
   lead to an infinite loop.

Bug fixes:

 - fix the link in the getheight() entry in the method index

Imager 0.84_02 - 22 Aug 2011

Development release, this will become 0.85 if CPAN testers is

Bug fixes:

 - the image file limits set by set_file_limits() weren't being
   checked when reading TIFF files.

 - Provide more information about file format module load errors on a
   failed image file read() or write().

 - use TIFFReadDirectory() instead of TIFFSetDirectory() to iterate
   through TIFF images, since it checks for IFD loops.

 - don't leak memory when out of range palette indexes are supplied to

 - require a later version of CPAN::Meta to ensure JSON::PP and
   CPAN::Meta::YAML are available.

 - hoist the per-line calculations for the flines implementations, and
   modernize the tests a bit.

 - detect snprintf()/vsnprintf() (cheat by using and use
   them when available.

 - if t1lib failed to reinitialize it would be left as marked

 - update the bundled (and still modified) Devel::CheckLib

Imager 0.84_01 - 8 Aug 2011

Development release as a sanity check for the types re-work.

Massive types re-work:

 - the type used internally for pixel co-ordinates and image sizes is
   now 64-bit on 64-bit platforms (at least sane ones).

 - size_t is now used consistently for memory block sizes.

 - since this changes the binary interface, the Imager API version has
   been incremented.  Any module that uses the API will need to be
   rebuilt.  In most cases that will be enough, but calls to any APIs
   that take a pointer to image sizes may need source changes.

 - you should be able to create very large images on 64-bit systems,
   if you have enough memory.  Successfully created a 32768 x 49192 x
   3 channel image, filled with a tiled image and scaled it.  The
   unscaled image was also successfully saved to a JPEG.

 - check the image size before attempting to write BMP, GIF, JPEG,
   PNG, SGI, TGA, TIFF images.

 - correctly handle reading TGA images over 32767 pixels wide or tall.

Incidental changes:

 - the gif_left and gif_top tags are now clamped to non-negative
   values when writing a GIF image.

 - removed dead callback read/write code

The default maximum memory size when reading files is now 1G.

Imager 0.84 - 20 Jun 2011

 - Imager no longer inherits from Exporter (unless you're running an
   old, old perl.

 - Imager can now write progressive JPEGs (it could always read them).

Bug fixes:

 - re-work, document and test Imager's logging facility.

 - fix META.yml testing and the generated META.yml

 - test and add error reporting to to_*() family methods

 - add to_rgb_double() method.

 - Imager no longer exports anything by default

 - convert colors to grayscale if the supplied (or generated) palette
   contains only grays when performing error diffusion color

 - writing a paletted image to GIF wouldn't always use the colors
   supplied (or generated, eg. via make_colors => "mono"), which was
   confusing at best.

 - replace (imager|tony) in the doc, since I don't
   plan to continue receiving mail at that address.

Imager 0.83 - 21 May 2011

Bug fixes:

 - diag() the error message on failure for some TIFF tests that are
   failing on a Solaris smoker.

Imager 0.82_01 - 17 May 2011

Dev release, in case the compose tests are too sensitive.

Bug fixes:

 - Imager::Font::T1 incorrectly checked for absolute filename under
   Win32.  Thanks to kmx for the report and fix.

 - compose() with the target, source or mask position off the top or
   left of the target image didn't clip the source image correctly.

 - compose() now returns a useful error message on a non-positive

 - now at 100% test coverage. (As opposed to, umm, much,
   much less.)

Imager 0.82 - 14 Mar 2011

Bug fixes:

 - eliminate calls to i_has_format() from the test suite, since it's
   no longer a useful way to check for file format support.  Eliminate
   i_has_format() from the functions exposed via XS.

 - eliminate calls to note(), which isn't in the (very old) version of
   Test::More we have as a pre-requisite.  note() is modern enough
   that I don't feel a need to require a Test::More upgrade for it.

 - skip the threads tests on Test::More 2.00_*

 - add an (unshipped) test to check Imager's internal POD links

 - improve the library detection summary

 - increase the version of Imager::Font::Type1 so that upgrades don't
   downgrade the version in this file.

 - if we see an -rpath (or -R) option in $Config{lddlflags} supply
   that option for the directories that would normally go in
   LD_RUN_PATH.  Typically an explicit -rpath overrides LD_RUN_PATH.

Imager 0.81 - 14 Feb 2011

 - added coverage tests for masked images (maskimg.c @100% test coverage)

 - add hsv() method to Imager::Color
   Thanks to Leolo (Philip Gwyn)

 - split libt1 Type 1 font support into a sub-module (partial)

 - add a preload() class method for use in forking servers, and to
   work around limitations in PAR.

Bug fixes:

 - paletted writes to a masked image are now masked correctly.
   Revealed by new coverage tests.

 - update the filter plugin documentation.

 - add the matrix() method to Imager::Matrix2d to allow creation of a
   matrix with specified co-efficients.  You can now multiple an
   Imager::Matrix2d object by a 9 element array ref or a number.

 - really fix loading TTF fonts with FT2 when FT1 isn't available.
   Thanks to Leolo (Philip Gwyn)

 - make sure each test script that needs testout/ creates it.

 - handle a slightly different warning from libtiff 4.x

 - the sat transform2() op returned an incorrect saturation.

Imager 0.80 - 17 Jan 2011

 - added coverage tests for Imager::Fountain and Imager::Color::Float

 - Imager is now maintained in git

Bug fixes:

 - images with an translucent alpha channel were not scaled correctly
   by the default (qtype=normal) scaling method.

 - Imager::Color::Float now translates "#FFFFFF" to white instead of
   just a little darker.

 - make the default color map build algorithm "mediancut".  This
   changes the default color map builder for writing GIFs back to what
   it was in 0.77, reverting a performance regression.

 - handle failure to create a masked image correctly

Imager 0.79 - 10 Dec 2010

 - add Imager::Test to the POD coverage tests and document the missing

 - the convert() method now optimizes the case where all output
   channels are either 0, sourced from a single input channel or 1.
   This significantly speeds up presets like "addalpha", "green".

 - add sample, as suggested by Dan Oppenheim.

 - add the combine() method to combine channels from multiple source
   images into a new image

Bug fixes:

 - treat the co-efficients for convert() as doubles instead of floats.

 - If a higher (earlier) priority font handler failed to load, that
   would crash preventing loading of later font handlers.

 - parse defines from the options returned by pkg-config --cflags

 - a regen of the MANIFEST revealed that GIF and FT2 tests weren't
   included in the tarball.  They are now included.

Imager 0.78 - 4 Oct 2010

Bug fixes:

 - don't access deprecated members of the png_structp.

 - document that using color objects is faster than supplying colors
   by name, etc.

 - Imager::Probe now accepts array references for incpath and libpath.

Imager 0.77_02 - 27 Sep 2010

 - moved Win32, FreeType 2 font support into sub-modules. (partial)
   Uses Imager::Probe now.

 - tested successfully with jpeg-8b

Bug fixes:

 - from _01: look for missing file support test files in the right

 - flood_fill() wouldn't fill the right side of a single scan-line
   fill area.
   Thanks to Nicolas Roggli for reporting this.

 - flood_fill wouldn't fill to the left edge of the image if the
   starting line didn't reach the left edge.
   Thanks to Nicolas Roggli for reporting this.

Imager 0.77_01 - 13 Sep 2010

 - add each library-directory/pkgconfig/ to the pkg-config search path
   in Imager::Probe.
   Thanks to Justin Davis.

 - moved GIF, TIFF, JPEG file handling code into sub-modules in
   preparation for separate distribution. (partial)

 - optimize filled box drawing (color, not fill)

Bug fixes:

 - Imager::Probe was calling ExtUtils::Liblist to initialize
   LD_RUN_PATH supplying an undefined value rather than the found
   directory.  Thanks to Justin Davis.

 - only prepend ./ to font filenames when passing them to T1Lib and
   then only when it would use its search mechanisms.

 - fix the cache check for the X rgb.txt loader.  This is typically
   used for color translation on Unix-like systems, and the fix
   improves performance of supplying colors by name by about 80 times.
   Test code that managed 3400 10x10 pixel boxes/second sped up to
   25700 boxes/second.

 - clarify that Imager doesn't write EXIF metadata to images.

 - Imager::Probe can now search subdirectories under its include path.
   Used by the PNG Makefile.PL to find headers and libraries when they
   aren't in the base directory, as in cygwin.

Imager 0.77 - 11 Aug 2010

I don't want Imager::File::PNG indexed as part of Imager, but forgot
to update the META.yml before updating the version.

 - don't index Imager::File::PNG as part of Imager

 - add resources to META.yml

Imager 0.76 - not released

Bug fixes:

 - the align_string() method would ignore a string of "0" due to a
   mis-use of C< ||= >.
   Thanks to Maurice Height for reporting this.

Imager 0.75_03 - 09 Aug 2010

Bug fixes:

 - read_types() and write_types() would include png when it wasn't
   available due to a problem with the %formats tie

 - handle dependent libraries correctly (eg -lpng requiring -lz) in
   the code run phase of library probing.

Imager 0.75_02 - 07 Aug 2010

Bug fixes:

 - add file missing from MANIFEST, which was causing TIFF failures.

Imager 0.75_01 - 06 Aug 2010

Test release for the new PNG probe.

 - added the ability to read multiple-image PNM files.
   Note that unlike the pbm/pgm/ppm specification this accepts mixed
   format files and allows white space padding between files.
   Thanks to Philip Gwyn (Leolo) for this patch.

 - moved the PNG file handling code into a sub-module in preparation
   for separate distribution. (partial)
   Also helps avoid complications from -I/-L compile/link options from
   other libraries.


 - Imager->new(data => $data) didn't try to process image file data in

 - t/t50basicoo.t no longer depends on the other tests to generate its 
   input files.
   Also, it wasn't testing pnm (pnm vs ppm mix-up)

 - update the documentation of hardinvert to match the change in 0.62.

 - added hardinvertall filter which also inverts the alpha channel
   (sorry for the mess)

 - when probing for TIFF, set LD_RUN_PATH just as the Makefile does so
   the probe can find the library for the test run.

Imager 0.75 - 20 Jun 2010

 - use PERL_NO_GET_CONTEXT to slightly improve performance on threaded
   perls (not measured)


 - an opacity fill based on a fountain fill would segfault when
   filling an 8-bit/sample image.

 - merge thickline branch polygon fix

Imager 0.74 - 7 May 2010

Bug fixes:

 - read_multi() didn't handle a missing file format library correctly,
   aborting on failing to call i_readgif_multi_wiol() or

 - fix spelling errors patched by Debian

 - add an (unshipped) author test to spellcheck Imager's POD.

 - update the TIFF file format documentation

 - lib/Imager/IO.pod was written almost 4 years ago but never shipped.

Imager 0.73 - 15 Mar 2010

 - implement outline circles, both anti-aliased and not

 - a combine => "none" fill to a 1 or 3 channel image would produce
   the incorrect colour.

Imager 0.72 - 09 Dec 2009

Bump version for release, since 0.71_03 is stable with CPAN testers.

Imager 0.71_03 - 5 Dec 2009

 - further adjust the threads test so it only performs the tests on
   perls where it's expected to work, and only if the threads module
   can be loaded.

Imager 0.71_02 - 1 Dec 2009

 - adjust the way we load the threads module for the threads test so
   it works with non-threaded perls

Imager 0.71_01 - 30 Nov 2009

Bug fixes:

 - use scanline oriented operations to flip images instead of pixel

 - use double/sample operations to flip large sample images instead of
   8-bit sample operations.

 - fix POD nits

 - prevent double-frees when someone creates Imager objects and then
   creates a thread.  Note: this just handles some simple cases,
   Imager doesn't support perl threads, and isn't likely to.

Imager 0.71 - 16 Nov 2009

 - add the opacity fill type - an adaptor that modifies the opacity of
   another fill.

Bug fixes:

 - the conv filter now enforces that the sum of the coefficients is
   non-zero.  Also, rather than skipping pixels off the edge off the
   edge of the image, the closest edge pixel is used.  Previously
   dividing by the zero sum of coefficients could cause invalid
   results or runtime exceptions.
   Thanks to David Cantrell's Alpha-NetBSD CPAN test box for revealing
   this bug.

Imager 0.70 - 21 Sep 2009

Bug fixes:

 - release image row and comments memory on all error returns in gif

 - handle zero length extensions, previously this would cause a null
   pointer dereference
   Thanks to Krzysztof Wojtaƛ for the test data and fix for this.

 - an integer division meant that preview scaling to below 1 pixel
   wide or high (which isn't too useful anyway) was calculating using
   NaNs on most platforms, and causing an exception on others.
   Thanks to David Cantrell for producing a backtrace of the crash on
   his Alpha-NetBSD CPAN test box which made it possible to track this

Imager 0.69 - 08 Sep 2009

Bug fixes:

 - broken test fix - was attempting to call a function skip_all, when
   that should be a parameter to plan().

 - briefly document apidocs.perl, the tool used to build
   Imager::APIRef and make some minor enhancements

 - various minor documentation enhancements and fixes.

Imager 0.68 - 07 Sep 2009

 - Imager->new(file => $filename) and other similar incantations will
   load the given file.

Bug fixes:

 - avoid using CHECK as a label in Imager::Test

 - re-work most image file test files that require a library into
   separate library present/not present files to remove stupidly long

 - don't treat rubthrough() outside the bounds of the target image as
   an error.

Imager 0.67_01 - 02 Sep 2009

Bug fixes:

 - correct documentation of default of raw image interleave read

 - add raw_ prefix to raw read parameters, though the original names
   still work.

 - fail the read if an invalid raw_interleave parameter is supplied

 - warn if no interleave or raw_interleave parameter is supplied,
   since the documented default was wrong, and incompatible with the
   write format

 - for reading raw images, if raw_storechannels > raw_datachannels,
   set the extra channels in the image to 0

 - when probing for executables like freetype-config, search for .bat
   and .cmd on MSWin32, as well as .exe.

 - re-work the external libraries section of README:
   - list Debian and Redhat package names for each library
   - reformatting
   - update URLs

 - use the new EU::MM META_MERGE facility instead of generating
   META.yml from scratch

 - use Devel::CheckLib (bundled, modified) to check which release of
   libtiff is installed and reject 3.9.0

Imager 0.67 - 12 Dec 2008

Bug fixes:

 - fix a packaging error

Imager 0.66 - 12 Dec 2008

 - 24-bit color .ICO/.CUR files can now be read.

Bug fixes:

 - an optimization skipping 0 src alpha values could cause the
   rubthrough() to read past the end of a buffer.

 - corrected a reference leak where writing GIFs would leak memory.
   This could also happen calling to_paletted().
   Also documented the underlying long existing feature where the
   colors parameter is filled with the generated color table and added
   tests for it.

 - write out the image size in bytes field of a BMP correctly.

 - add limited tests for Imager::ExtUtils

 - make Imager::ExtUtils->includes use an absolute path, since
   a relative path could cause failures using Inline::C.

 - re-arrange the POD for Imager::Font::BBox:
   - mark total_width(), pos_width(), end_offset() obsolete, since
     they're mostly for backwards compatibility
   - group width methods and height methods

Imager 0.65 - 20 May 2008

Bug fixes:

 - In some cases when an error occurs reading those parts of a JPEG
   file after the image the scan-line buffer could be freed a second
   time.  In cases where the the error occured while reading the image
   data it's possible that the buffer could have leaked.
   Thanks to Gabriel Vasseur for reporting this and help in tracking
   it down.

 - the gif_screen_height tag was overriding the screen width and being
   ignored for the screen height when present.

Imager 0.64 - 23 April 2008

This is a bug fix release.  This includes a fix for a possible
security issue.

Bug fixes:

 - Possible security issue: The floating point sample path for image
   based fills had a buffer overflow.  This would overwrite the end of
   a malloc()ed buffer with double precision floats.

 - check that the result of fileno($fh) is defined rather than simply
   true when read() or write() is supplied with an fh parameter.

 - i_scale_axis() wasn't checking the result of i_img_new_ch()
   resulting in a SIGSEGV when attempting to scale an image to a size
   too large to fit in memory.  This is a NULL pointer access issue,
   not a buffer overflow.
   Added a check for the failure.
   scale_calculate() (and hence scale()) will now fail if any of the
   scale size parameters are a reference.

 - Regression: filling a greyscale image with a hatch used the wrong
   color channels from the supplied fg/bg colors.

 - fixed a related problem for image fills.

Imager 0.63 - 7 April 2008

This release primarily contains changes to improve ease of use -
rather than you having to convert images to the appropriate number of
channels, Imager handles it internally.  How to handle drawing colors
and the default combine mode is a thornier problem left for some other

 - the font libraries are now only initialized when needed.

 - moved the imtoc.perl code into Imager::Preprocess

 - paste() and rubthrough() now adapt the source image data to the
   destination, so you can now safely paste/rubthrough from greyscale
   images to color images or back, or from alpha channel images to
   noalpha channels or back.

 - rubthrough() now falls back to pasting when the source doesn't have
   an alpha channel.  This effectively treats the source as having a
   max alpha channel, the right thing to do.

 - re-worked most of the area filling code to use a common set of
   functions when filling.
   Corrected normal combine mode.
   Rewrote most of the combine modes to match the way the SVG draft
   defines them with respect to a translucent source and destination.
   Added tests for translucent source and destination.
   Added tests to check 8-bit/sample and double/sample combines work

 - writing a 2 or 4 channel image to a JPEG file will now write that
   image as if composited against a background, black by default,
   overridable with the i_background tag/parameter.

 - writing a 2 or 4 channel image to a PGM/PPM file will now write
   that image as if composited against a background, black by default,
   overridable with the i_background tag/parameter.

 - writing a 2 or 4 channel image to a BMP file will now write that
   image as if composited against a background, black by default,
   overridable with the i_background tag/parameter.

Bug fixes:

 - Imager::Matrix2d->translate() now only requires one of the x or y

 - mixing qtype scaling now sets all channels of a pixel to zero if
   the pixel has zero coverage (zero alpha).  This should produce more
   compressible output files.

 - removed the pointless #! line from lib/Imager/Font/
   Noticed when I saw:
   I'm not changing the #! lines of the sample code, since it's sample
   code, not intended for installation.

 - some TGA images weren't being detected correctly as TGA images

 - handling of the left-over bit for 16-bit/pixel TGA images has been
   changed to match the behaviour of the GIMP.  Previously the bit
   being set was treated as an opaque pixel, but one user reported a
   problem with loading such an image.  I haven't been able to find any
   tools beyond the GIMP that handle alpha-channel 16-bit TGAs, so
   I'll match it's behaviour.  See issue 114913 in the GIMP's

Imager 0.62 - 10 December 2007

 - Makefile.PL now expands ~/path supplied to --incpath or --libpath
   to /path under your home directory.

 - the old dynaload code used Mach API functions to load dynamic
   libraries on Mac OS X.  These APIs have been deprecated in OS X
   10.5 and were causing some build problems.
   So henceforth Imager uses the dlopen() family of functions, and you 
   will need version 10.3 or later of OS X.

 - added the det() function to the transform2() engine.
   added the sample
   Courtesy Richard Fairhurst.

Bug fixes:

 - samples/ sourced the base value for gif_top from
   Thanks to Eleneldil G. Arilou for pointing this out.

 - t/t82inline.t no longer loads B at runtime, to work around a bug
   in some 5.005_0[45] installations.

 - work around Module::Depends::Intrusive bug #21229

 - the hardinvert filter no-longer inverts the alpha channel.

 - the hardinvert filter now supports large samples

Imager 0.61_02 - 28 November 2007

 - major TIFF support re-work

 - added a C level image interface for accessing samples from 1-32
   bits, exposed this at the perl level in getsamples()

 - the conv filter now works at floating point precision for high bit

 - added is_bilevel method to test whether an image should be written as
   a bilevel image if the image format supports it.

 - added -log-stderr as an Imager import list option

 - added some important types to Imager::APIRef

 - added test_image_double() to Imager::Test

Bug fixes:

 - Imager::Fountain couldn't read GIMP gradient files with 10 or more

 - the scale() method with qtype mixing now handles images with an
   alpha channel correctly.

 - fixed a broken link from the "animated GIF" entry in the concept index.
   Thanks to Slaven Rezic.

 - on some perl's the infix expression parser test would fail due to
   actions in the grammar returning false.  Made sure all actions return
   a true value.
   Thanks to Richard Fairhurst for spending a lot of time in tracking
   down this problem.

Imager 0.61 - 5 November 2007

 - added samples/, which adjusts the screen size/position tags
   when scaling an animated gif

Bug fixes:

 - correct handling of sz in matrix_transform() - this should allow
   perspective type transformations to work now.

 - prevent a cast to integer warning on x64 builds in datatypes.c
   also fixed some other type warnings

 - some sub-directory tests depended on files produced by the parent
   directory tests

 - Imager::Font::Wrap doesn't correctly set savepos
   thanks to Nikita Dedik and Eleneldil G. Arilou for reporting this.

 - test 171 in t/t01introvert.t was failing on perls configured to
   use long double.

 - the code for the transform2() uminus operator was missing a break.
   Added tests for better code coverage of the ops.

 - the SGI RLE compression code could overflow its compression buffer

 - the 32-bit output function used by the SGI code only handled values
   under 0x10000.  This was most noticable when writing large RLE images.

 - validate chan_count for chans == NULL for each of the i_gsamp()

 - attempt to work around the test failure at

 - improve the error messages produced when attempting to read or write
   an unknown image file format.

 - improve the transform2() documentation

 - correctly generate the author key in META.yml

 - correctly blend a rotated (or matrix_transformed()) image when
   performing interpolation in the presence of an alpha channel.
   Also corrected the centring of the rotated image on the output

Imager 0.60 - 30 August 2007

 - Finished/rewrote Arnar's old SGI RGB file format support, so Imager
   now has full SGI RGB image format, including RLE and 16-bit/sample

 - logging functions are now available in the API

 - applied Gabriel Vasseur's patch
   added documentation, further tests, and support for greyscale images
   Obviously problems are my fault :)

 - the mask for ICO/CUR images is now applied as an alpha channel to
   the returned image.  For the old behaviour, supply ico_masked => 0
   to read() or read_multi().  This should be less confusing when
   using Imager as a general image processor.

Bug fixes:

 - in some cases it's possible for giflib/libungif to return color 
   indexes outside the range of colors defined by the image's palette.
   We now expand the palette to match the indexes used.
   Thanks to Gabriel Vasseur for reporting this.

 - fixed various memory leaks that could occur when failing to read png,
   jpeg, bmp or tga files.

 - to avoid confusion, channels not present in the image are returned as
   zero by getscanline().  This has no effect on the C level i_glin()
   and i_glinf() API functions which continue to not set the unused

 - the convert() method now returns an image of the same sample size as
   the source image.

 - remove repeated text in Imager::Files

 - be even more explicit that scale() and friends don't modify the source
   image, but return a new image.

 - improve the error message from errstr() when you try to load a font
   for which the driver hasn't been built in Imager.

 - transparency is now enabled by default when writing GIF images

 - Imager would not load on Windows 98

Imager 0.59 - 14 June 2007

Bug fixes:

 - fixes a regression introduced by the fixes for RT 11972

 - cropping outside the image would return an Imager object with
   no low-level image object, instead of returning false.
   Fixed by: Philip Gwyn (Leolo)

Imager 0.58 - 16 May 2007

No significant changes from 0.57_01.

Imager 0.57_01 - 11 May 2007

 - added to_rgb16 to produce a 16-bit/sample version of an image

 - improve freetype 1.x text output efficiency

Bug fixes:

 - search another place for rgb.txt, and check all the places 
   Imager::Color checks when deciding whether to skip testing it

 - use a convolution kernel size based on the stddev rather than a
   fixed size when performing a gaussian blur

 - document the difference() method's mindist parameter, and debug it.

 - put the Imager release number in the Inline::C generated code to
   regenerate Inline code when a new release of Imager is installed.

 - fix rendering on alpha channel images for the FreeType 1.x driver.

 - fix rendering on alpha channel images for the T1lib driver.

 - reworked library probing, we can now set more than one probe
   function for a library.  Disabled the default (non-freetype-config)
   library probe and added an extra probe function that searches for
   both ft2build.h and whatever it includes, and adds -I as needed.
   Hopefully this will fix build problems like

Imager 0.57 - 30 Apr 2007

This is a maintenence release fixing a security issue in Imager.

 - CRITICAL: a specially crafted compressed BMP file can cause a buffer
   overflow in malloced memory.  There will be further discussion of
   this issue in the ticket below.
   CVE-2007-2459  CVE-2007-2413
   The descriptions at varied in quality, please see the
   ticket at for a more accurate description of the issue.

Imager 0.56 - 1 Apr 2007

 - added support for reading 16-bit/sample PGM/PPM images

 - added support for writing 16-bit/sample PGM/PPM images

 - improved performance of reading PBM/PGM/PPM images

 - added support for writing PBM images if the image is paletted and
   contains only black and white

 - added a new make_colors value - "mono"

 - switched from the svn log Changes to a manual Changes to reduce

 - new sample code - samples/

Bug fixes:

 - CRITICAL: the "Imager" typemap entry (not used by Imager itself)
   was returning an image object with an extra reference, this
   resulted in a memory leak.

 - fix rendering on alpha channel images for the FreeType 2.x driver

 - reading bmp files now consitently handles short reads.  You can now
   supply a parameter to treat a short read as successful and set

 - previously, reading ASCII PBM files required spaces between samples,
   even though the format doesn't require that

 - improved documentation of the unsharpmask filter (I hope)

 - force flushing of the output from i_tt_dump_names() and test output
   in t/t35ttfont.t to prevent output from being mixed up.

 - rewrite a conditional expression as an if() to hopefully work around
   a bug in the pre-4.0 GCC Apple shipped with OS X 10.4.

 - avoid Data::Dumper in regops.perl to support older releases of perl

Imager 0.55 - 16 Dec 2006

This is primarily a bug fix release.

Note: Test::More is now a pre-requisite for Imager and is no longer bundled.

There is one new feature:

 - the Win32 font driver now supports UTF8 (RT 22166)

Several bugs were fixed:

 - the string() method would not output the string "0"

 - fills.c was failing to compile on Solaris 10 (compiler unknown)

 - the gif_disposal and gif_user_input tags weren't being read from
   the file correctly

 - gif.c was failing to build under MSVC

 - in some cases strings passed to the string() method were treated as
   terminated by NUL (chr 0)

 - on "MSWin32" perl builds we now link to -lzlib instead of -lz since
   that's the default build name for zlib on Win32.

 - search $Config{incpath} for headers too, which we should have been
   doing all along.

Win32 font driver fixes:

 - the global descent value from bounding box was the wrong sign

 - if the first or last glyph overflowed the left or right side of the
   advance width they would be clipped

Imager 0.54 - 14 Sep 2006

This is primarily a feature release:

 - a new qtype value 'mixing' has been added to the scale()
   method. This is faster than 'normal', slower than 'preview'. This
   is based on the method used by pnmscale, and seems to produce less
   blurry results than normal.

 - the rubthrough() method can now render onto images with an alpha

 - the read_multi() method now falls back to calling doing a single
   image read via the read() method and write_multi() will now fall
   back to calling write() if a single image is supplied. This means
   you can simply call the read_multi() or write_multi() functions
   without having to check if the type is formatted by that method.

 - the GIF loop extension can now be written. If you don't have
   libungif/giflib 4.1.4 (or some distribution's bugfixed equivalent) you
   should upgrade.

 - getscanline() and setscanline() can now read/write palette index
   based data from/to the image for paletted images, by setting type to

 - we no longer hassle you to disable GIF support

 - minor documentation fixes

Imager 0.53 - 26 Jul 2006

This is a bugfix release.

Some test code was left in a code path not covered by the test
suite. A test was added to cover this code path and the test code was

Imager 0.52 - 25 Jul 2006

This is primarily a feature release, but contains a fair few bug
fixes, new features:

 - ability to read and write MS Windows ICO and CUR files

 - you can now add file format plugins to support new file formats

 - add POD coverage tests

 - setcolors() and addcolors() now accept color names and so on
   instead of requiring Imager::Color objects.

 - flood_fill() can now fill to a specified border color instead of
   just to the area the same color as the seed.

Bug fixes:

 - bounding_box for the T1 driver wasn't converting UTF8 to ascii when
   calculating the advance width.

 - bounding_box for the T1 driver wasn't including leading and
   trailing spaces in the bounding box as the other drivers did, it also
   produced strange results for empty strings or strings containing only

 - when reading CMYK jpeg images they were being transferred to the
   image object as is, producing a four channel image. It only looked ok
   due to an old still unfixed Photoshop bug. We now convert from the
   inverted CMYK that photoshop (and Corel for example) produce into RGB.

 - reading a CYMK TIFF would result in a 4 channel image, reading any
   image with more than 4 channels (eg. RGB with 2 alpha channels) would
   result in an error.

 - added /usr/local/include to the default include search path, since
   we were already searching /usr/local/lib for libraries.

And various minor fixes and documentation updates.

Imager 0.51 - 23 Apr 2006

 - fix a validation bug when processing JPEG EXIF data that can cause
   a crash

 - fix mis-processing of the src_maxx and src_maxy parameters of the
   paste() method

 - fix a problem in Imager's "smart" handling of the color parameter
   to various methods.

Imager 0.50 - 29 Mar 2006

 - CRITICAL: fixes a segmentation fault from attempting to write a 2
   or 4 channel image to jpeg or a 2 channel image to tga where the
   output is an in-memeory buffer.

 - fixes an incorrect pointer parameter in the PNG code

 - skip Inline::C tests when building in a directory with spaces