[rt #74540] handle the TIFF SampleFormat tag
[imager.git] / Changes
1 Imager release history.  Older releases can be found in Changes.old
2
3  - TIFF: handle SampleFormat = 2 by translating the signed integer
4    values to unsigned by flipping their sign bits.
5
6    Handle SampleFormat = 3 where possible.
7
8    SampleFormat is ignored for paletted images.
9
10    Mixed SampleFormat are be handled incorrectly, since libtiff
11    returns only the first SampleFormat value, and an image with both
12    an alpha channel and SampleFormat = 2 for color channels probably
13    has a different SampleFormat for the alpha channel.
14
15    https://rt.cpan.org/Ticket/Display.html?id=74540
16
17 Imager 0.96 - 19 May 2013
18 ===========
19
20  - rearrange Imager's test files.
21    https://rt.cpan.org/Ticket/Display.html?id=84596
22
23  - Imager::Probe::_gcc_lib_paths now forces C locale.
24    A sufficiently recent gcc prints localized keys for the search
25    paths, which avoids that localization.
26    https://rt.cpan.org/Ticket/Display.html?id=84963
27
28  - fix a pod error detected by Pod::Simple 3.27 and laterm and skip
29    pod tests unless AUTOMATED_TESTING or IMAGER_AUTHOR_TESTING is set
30    and true.
31    https://rt.cpan.org/Ticket/Display.html?id=85262
32    reported by Andreas König
33
34  - add a test for unclosed POD in C source, and fix the errors it
35    found.
36    https://rt.cpan.org/Ticket/Display.html?id=74875
37
38  - fix some spelling errors detected by the newer aspell in Debian
39    Wheezy.
40
41  - remove a trailing ' from lib/Imager/Font/Test.pm's POD
42    thanks to gregor herrmann <gregoa@debian.org>
43    https://rt.cpan.org/Ticket/Display.html?id=85413
44
45  - add a test for standard =head1 commands and fix the errors found
46
47 Imager 0.95 - 19 Apr 2013
48 ===========
49
50  - handle the SVf_UTF8 flag correctly on magic strings passed to
51    Imager::IO's write() and raw_write() methods.
52    This may misbehave in perl 5.6.x since the UTF8 flag may not be
53    visible in the main SV after SvGETMAGIC().
54    https://rt.cpan.org/Ticket/Display.html?id=83438
55
56  - document that bounding_box() ignores the transformation matrix
57    supplied to tranform() for fonts.
58    https://rt.cpan.org/Ticket/Display.html?id=84106
59
60 Imager 0.94_02 - 5 Apr 2013
61 ==============
62
63  - enable debug logging for the standard font tests
64
65  - skip the overloaded UTF-8 text output checks on 5.6.x and earlier,
66    due to a bug in that version of perl.
67
68  - don't test for read() failing on a write-only handle in 5.8.x and
69    earlier, this was fixed in change 862083f7e4 in perl.
70
71  - report the version of Inline found during testing (an attempt to
72    diagnose some intermittent failures.)
73
74 Imager 0.94_01 - 2 Mar 2013
75 ==============
76
77  - NOTE: possibly backward incompatible:
78    support reading from/writing to perl filehandes that aren't raw
79    files.
80
81    This allows Imager's I/O to honour handles with layers such as
82    gzip, scalar file handles or tied file handles.
83
84    This is backward incompatible in that previous Imager would simply
85    use fileno() to retrieve the fd for the file and call write(2) etc
86    on it directly.
87    https://rt.cpan.org/Ticket/Display.html?id=78843
88
89  - moved most of README to lib/Imager/Install.pod which should make it
90    more accessible to the "web" generation, also significantly updated
91    and re-worked it.
92
93  - updated README's for the separately distributed modules to refer to
94    Imager::Install, and that they need -dev versions of packages
95    https://rt.cpan.org/Ticket/Display.html?id=81265
96
97  - the JPEG test code now reports the compile-time library version
98
99  - avoid a possible compiler optimization issue on CentOS 5.9 i386 by
100    rearranging (and mildly optimizing) some code.
101    https://rt.cpan.org/Ticket/Display.html?id=83212
102
103  - fix a POD error in Imager::Fill (detected on new Pod-Simple)
104    https://rt.cpan.org/Ticket/Display.html?id=83434
105
106  - fix a broken link to Graphics::Magick
107    https://rt.cpan.org/Ticket/Display.html?id=82743
108
109  - drawing text to a channel with FT2 would draw with random coverage
110    due to an uninitialized alpha channel.
111
112  - marked the function pointer underlying the mm_log() API with the
113    correct gcc magic and fixed the resulting warnings.
114
115  - fixed some other compiler warnings
116
117  - Imager::Font::W32 now properly reports text drawing errors
118    https://rt.cpan.org/Ticket/Display.html?id=70098
119
120  - handle the SVf_UTF8 flag correctly on magic (eg. overloaded)
121    strings passed as text to draw(), bounding_box(), has_chars(),
122    glyph_names() (where supported) in each of the font drivers.
123    This may misbehave in perl 5.6.x since the UTF8 flag may not be
124    visible in the main SV after SvGETMAGIC().
125    https://rt.cpan.org/Ticket/Display.html?id=83438 (partial)
126
127 Imager 0.94 - 15 Dec 2012
128 =========================
129
130 Variations on some of these changes were included in development
131 releases.
132
133  - improved thread safety
134    - the internal error stack and log file handle are now in a per-thread
135      context object
136    - JPEG now captures IPTC information in a thread-safe way
137    - avoid globals where possible for warning capture in libtiff
138    - use a mutex to avoid re-entering thread-unsafe giflib
139    - use a mutex to avoid re-entering thread-unsafe tifflib
140    - use a mutex to avoid re-entering thread-unsafe T1Lib
141    - use a library handle per thread for freetype 2.
142    - use an engine handle per thread for freetype 1.x.
143    - originally these changes broke ABI compatibility, this has been
144      restored.
145
146  - clarify the return value of getpixel();
147    https://rt.cpan.org/Ticket/Display.html?id=81198
148
149  - fixed a race condition in parallel testing for T1
150
151  - fixed a bug in handling yoff for untransformed image-based fills
152
153  - documentation improvements for Imager::Fill
154
155  - FT2: report the library version while testing.
156
157 Imager 0.93 - 15 Oct 2012
158 ===========
159
160 Bug fixes:
161
162  - previously a transparency enabled GIF write (the default) would
163    always use a GIF89a header even if none of the images were
164    transparent.
165
166  - previously the probe step for freetype-config would fail on cygwin
167
168  - catch an invalid matrix parameter to convert() instead of crashing
169    https://rt.cpan.org/Ticket/Display.html?id=79922
170
171  - remove the 16-bit/sample limitation from the documentation for
172    setsamples(), it hasn't applied for many releases.
173    https://rt.cpan.org/Ticket/Display.html?id=79989
174
175  - don't copy setsamples() data parameter, it may be a large scalar
176    https://rt.cpan.org/Ticket/Display.html?id=79990
177
178  - clean up .dSYM directories generated performing probes on OS X
179    Mountain Lion.
180
181  - pass the --verbose command-line option through to Imager::Probe in
182    sub-module's Makefile.PLs
183    https://rt.cpan.org/Ticket/Display.html?id=75878
184
185 Enhancements:
186
187  - support for giflib 5.0. (5.0.1 and later)
188    https://rt.cpan.org/Ticket/Display.html?id=79029
189    The giflib API Imager uses doesn't have a mechanism to set the
190    header version in 5.0.0.
191
192  - update the GIF library probe code to check for the new giflib 5.0.1
193    EGifSetGifVersion() function, and to check for the giflib 4.2.0
194    uninitialized gif89 bug.
195    https://rt.cpan.org/Ticket/Display.html?id=79679
196    http://sourceforge.net/tracker/?func=detail&aid=3574283&group_id=102202&atid=631304
197
198  - avoid static variables when capturing IPTC data from JPEG files
199
200  - match Imager::Font;:T1's error message translations to those from
201    later versions of T1Lib.
202
203  - for libtiff versions that support extended warning handlers (3.8.0
204    or later), use them to avoid some global variables.
205
206  - note Image::ExifTool for better metadata support.
207    https://rt.cpan.org/Ticket/Display.html?id=79251
208
209 Imager 0.92 - 14 Aug 2012
210 ===========
211
212  - giflib 4.2 eliminates the GIF_LIB_VERSION macro, handle that
213    correctly for both probing and runtime.
214    https://rt.cpan.org/Ticket/Display.html?id=77672
215
216  - allow building JPEG/imexif.c on C89 compilers.
217
218  - allow building GIF/imgif.c on C89 compilers.
219
220 Imager 0.91 - 4 Jun 2012
221 ===========
222
223 Bug fixes:
224
225  - The size of rotated images is no longer rounded up so aggressively.
226    Added rounding to the linear interpolation done for rotate() and
227    matrix_transform() for 1 and 3 channel 8-bit images.
228    Adjusted the two tranlate matrices used to build the final rotation
229    matrix to use the distance between the outlier pixels rather than
230    the pixel dimensions (ie. dimension-1).
231    With all of this the output of rotate(degrees => 270) on an 8-bit
232    image exactly matches the output of rotate(right => 270).
233    https://rt.cpan.org/Ticket/Display.html?id=77063
234
235 Other changes:
236
237  - eliminate the old IIM_new(), IIM_DESTROY() names from Imager's
238    internals, those names only matter for the XS interface.
239
240  - improve error reporting when PERL_INITIALIZE_IMAGER_CALLBACKS finds
241    the API level compiled into a loadable module such as
242    Imager::File::GIF doesn't match that of Imager.  Previously it
243    could be difficult to determine exactly which module was failing to
244    load.
245    https://rt.cpan.org/Ticket/Display.html?id=77173
246
247  - added Imager->check_file_limits() as an interface to the
248    i_int_check_image_file_limits() API.
249
250  - Imager->set_file_limits(reset => 1) now resets the limits to the
251    defaults rather than setting them all to unlimited.
252
253  - wrote a brief security note as Imager::Security
254    https://rt.cpan.org/Ticket/Display.html?id=68910
255
256 Imager 0.90 - 30 Apr 2012
257 ===========
258
259 Bug fixes:
260
261  - Imager::Test::is_imaged() attempted to process an "epsilon"
262    parameter but the prototype didn't allow for the extra parameter.
263    Corrected the prototype.
264
265  - when downconverting samples (eg. from floating point to 8 bit)
266    Imager now rounds the sample value rather than attempting to
267    allocate input values over output values equally.  The old
268    behaviour had the probably surprising effect of converting a
269    floating point 2.1/255.0 into an 8-bit 3 rather than the expected
270    2.
271    This may result in slightly different 8 or 16-bit output images.
272
273  - BI_BITFIELD BMP images were handled incorrectly, both in
274    incorrectly calculating the space required for the masks and in
275    processing the image data itself.
276    https://rt.cpan.org/Ticket/Display.html?id=76736
277
278  - some odd width BMP BI_RLE4 images use run lengths that run one off
279    the edge of the image.  Imager now allows this, discarding the
280    extra column.
281
282  - odd length RLE4 runs in BMP images were decoded incorrectly.
283
284  - pkg-config could sometimes return a library that was in a directory
285    EU::MM / $Config{libpth} doesn't know about, but the compiler did.
286    If no -L is included in the pkg-config library information check if
287    EU::MM can find the library, and if not, search our configured
288    directories and insert that into the library flags.
289    https://rt.cpan.org/Ticket/Display.html?id=75869
290
291  - Imager::Probe can now probe for libraries with dependent libraries,
292    common for static linking, eg. libpng requires libz.
293    https://rt.cpan.org/Ticket/Display.html?id=74043
294
295  - libpng 1.5 specific probes were looking for libpng 1.4 filenames.
296
297  - added alternative probe configurations that try to link libz, to
298    handle a statically linked libpng.
299    https://rt.cpan.org/Ticket/Display.html?id=74043
300
301  - if a probe includes testcode, Imager::Probe now checks that code as
302    part of the process of checking each configuration rather than as a
303    post test of the found configuration.  This allows alternate
304    configurations to be checked if a matching but non-working
305    configuration is found.
306    https://rt.cpan.org/Ticket/Display.html?id=74043
307
308 Other changes:
309
310  - when reading or writing images via callbacks, the default callbacks
311    now push an error message indicating that a required callback was
312    called but not supplied.
313    https://rt.cpan.org/Ticket/Display.html?id=76782
314
315  - clarify which callbacks are required for reading and writing TIFF
316    images.
317
318  - improve logging for creation of callback I/O layers.
319
320  - a little more documentation for Imager::Probe.
321
322  - the i_get_file_background() and i_get_file_backgroundf() APIs now
323    return int to indicate whether the i_background tag was found.
324
325  - PNG rework
326    - improve error reporting
327    - add png_interlace, png_bits tags
328    - read paletted images as paletted images, including transparency
329    - read 1 bit greyscale images as a type suitable for other file
330      handlers to write as bilevel
331    - read 16 bit/sample PNG as 16-bit/sample Imager images
332    - write "bilevel" paletted images as 1 bit grayscale images
333    - write paletted images as paletted images
334    - write 16-bit (or higher)/sample images as 16-bit/sample PNG
335      images
336    - improved metadata support
337    https://rt.cpan.org/Ticket/Display.html?id=29268
338
339 Imager 0.89 - 18 Mar 2012
340 ===========
341
342 Bug fixes:
343
344  - getpixel(..., type => "float") and the API i_gpixf() have been
345    broken on paletted images since they were implemented.
346    https://rt.cpan.org/Ticket/Display.html?id=75258
347
348 Other changes:
349
350  - links in the METHOD INDEX now point at the method documentation
351    rather than the heading you can find them under.
352    https://rt.cpan.org/Ticket/Display.html?id=71495
353
354  - Imager (and the bundled dynamic modules) no longer fallback to
355    using DynaLoader if loading via XSLoader fails.
356    For the bundled modules this could hide useful error messages.
357    https://rt.cpan.org/Ticket/Display.html?id=75560
358
359  - IM_DEBUG_MALLOC mymalloc() no longer sn?printfs() a string to a
360    buffer in the array of allocations, but just stores the filename
361    pointer and line number.
362    https://rt.cpan.org/Ticket/Display.html?id=70388
363
364 Imager 0.88 - 22 Feb 2012
365 ===========
366
367  - describe how to build libgif etc on OS X in such a way as to be
368    compatible with a fat binary perl (such as the system perl), in
369    README.
370    https://rt.cpan.org/Ticket/Display.html?id=73371
371
372  - update the change notes for 0.77_01 to indicate that libungif
373    support was removed.
374
375  - add some other imaging modules to SEE ALSO
376    https://rt.cpan.org/Ticket/Display.html?id=73906
377
378  - note that the generator of the apparently non-DFSG-free postscript
379    in MMOne.pfb is a Debian package.
380
381  - setsamples() is now a true complement to getsamples() - it can
382    write 8-bit or floating point samples from a scalar or array
383    reference.  This adds i_psamp() and i_psampf() to the C level API.
384
385  - the XS interfaces to i_gsamp(), i_gsampf() and i_gsamp_bits() have
386    changed to make better use of the typemap, but these aren't part of
387    the perl level API anyway.  There were no changes to the C level
388    interfaces to these functions.
389
390  - getpixel() and setpixel() now accept a mix of scalar and array
391    references for the x and y parameters, and unequal array lengths is
392    no longer an error.
393    https://rt.cpan.org/Ticket/Display.html?id=73697
394
395 Bug fixes:
396
397  - correctly calculate the size of a rotated image
398    https://rt.cpan.org/Ticket/Display.html?id=69261
399
400  - fix incorrect rounding of color values for matrix_transform() and
401    rotate().
402    https://rt.cpan.org/Ticket/Display.html?id=69261
403
404  - Win32 text output is now done in normal combine mode, the alpha
405    component of the color is now significant.
406    https://rt.cpan.org/Ticket/Display.html?id=70014
407
408  - remove long unused gif case from read()
409    https://rt.cpan.org/Ticket/Display.html?id=69244 (partial)
410
411  - the getsamples() target parameter was being treated as a hashref
412    when it's meant to be an array reference.
413    https://rt.cpan.org/Ticket/Display.html?id=74882
414
415  - getpixel() and setpixel() now returns an empty list when invalid
416    parameters are supplied.
417    Invalid values for type now result in an error for getpixel().
418    https://rt.cpan.org/Ticket/Display.html?id=73697
419
420 Imager 0.87 - 03 Jan 2012
421 ===========
422
423  - document the return value of the filter() method.
424    https://rt.cpan.org/Ticket/Display.html?id=72369
425
426  - document i_gsamp_bits() and i_psamp_bits().
427    https://rt.cpan.org/Ticket/Display.html?id=68815
428
429  - properly increment the Imager::Matrix2d $VERSION.
430
431  - actually include the Imager::Test tests in the dist
432
433  - correctly read and write 256x256 pixel ICO files
434    https://rt.cpan.org/Ticket/Display.html?id=69599
435
436  - make the error message from read() or read_multi() when they can't
437    identify the file type match reality.
438    https://rt.cpan.org/Ticket/Display.html?id=72475
439
440  - read() now uses $FORMATGUESS if it can't determine the file type
441    based on the file header, to match read_multi().
442
443  - re-work and add tests for def_guess_type().  def_guess_type() no
444    longer returns any random file extension as the file type.
445
446  - add gray4, gray16 and gray as presets for make_colors.
447    https://rt.cpan.org/Ticket/Display.html?id=67911
448
449  - add make_palette() method that produces a palette from one or more
450    images.
451
452  - fix the Imager dependency for the separately distributed font
453    drivers.
454    https://rt.cpan.org/Ticket/Display.html?id=72643
455
456  - fix i_render_color() to properly draw in "normal" mode - ie. when
457    writing to a 1 or 3 channel image the second or fourth channel of
458    the source color was being ignored, it is now significant.
459    https://rt.cpan.org/Ticket/Display.html?id=71564
460
461 Imager 0.86 - 31 Oct 2011
462 ===========
463
464  - improve error reporting for W32 tests
465
466 Imager 0.85_02 - 24 Oct 2011
467 ==============
468
469 Bug fixes:
470
471  - eliminate unused i_gif_opts type (clean-up)
472    https://rt.cpan.org/Ticket/Display.html?id=69245
473
474  - fix combine=0 fill color anti-aliasing on the double/sample path
475    https://rt.cpan.org/Ticket/Display.html?id=71309
476
477  - make default text color non-transparent
478    https://rt.cpan.org/Ticket/Display.html?id=71469
479
480  - apply the last of the Debian unforwarded spelling fixes
481    https://rt.cpan.org/Ticket/Display.html?id=70656
482
483  - the log() method used its message parameter as a C level format
484    string.
485    https://rt.cpan.org/Ticket/Display.html?id=71653
486
487  - provide our own STRLEN typemap entry for older perls.
488    https://rt.cpan.org/Ticket/Display.html?id=71641
489
490  - add extra ppport.h configuration to support older perls.
491
492  - depend on Scalar::Util, since we use it and older perls don't have
493    it.
494
495  - add overloaded eq to Imager::Matrix2d, since older perls don't seem
496    to synthesize it from overloaded "".
497
498   - use T1_StrError() for error messages on modern libt1
499     https://rt.cpan.org/Ticket/Display.html?id=69879
500
501  - actually load the font rather than just adding it to the catalog on
502    creation.
503
504  - Imager::Font->new now produces better error messages for the T1
505    engine.
506
507  - the font has_chars() method now returns perl's true and false
508    values in list context rather than integers, which should be more
509    efficient.
510    https://rt.cpan.org/Ticket/Display.html?id=69158
511
512  - the btm data structure used by the flood_fill code is now
513    initialized more efficiently.
514    https://rt.cpan.org/Ticket/Display.html?id=68994
515
516  - updated the Thanks list in README
517    https://rt.cpan.org/Ticket/Display.html?id=71607
518
519  - check there's at least one coefficient for the convolution filter
520    https://rt.cpan.org/Ticket/Display.html?id=68993
521
522  - make the APIRef synopsis ordering consistent, older versions of
523    perl could order it differently.
524    https://rt.cpan.org/Ticket/Display.html?id=71675
525
526  - we rely on Config.pm's d_vsnprintf as to whether we use
527    vsnprintf/snprintf, which is defined in the Win32 Config.pm even
528    though it only has _ prefixed versions of these.  Define our own
529    prefixed names on Win32.
530    https://rt.cpan.org/Ticket/Display.html?id=71642
531
532  - fix library detection with MSVC
533
534  - search a few more library directories, so EU::MM doesn't discard
535    them.  Hopefully fixes:
536    https://rt.cpan.org/Ticket/Display.html?id=71643
537
538 Imager 0.85_01 - 10 Oct 2011
539 ==============
540
541  - add simple tests for the Imager::Test test_image generators
542
543  - io_glue I/O buffering re-work:
544
545    - reorganize io_glue to do it's own buffering by default
546
547    - the unbuffered functions are available as i_io_raw_read() (or
548      raw_read() from perl) etc but are not recommended for typical
549      use.
550
551    - use the new i_io_peekn() when checking for file magic to avoid
552      seek, allowing Imager to detect the file type and read the file
553      from an unseekable stream (for formats that don't use random
554      access)
555
556    - added several new I/O layer API functions.
557
558    - fix the TGA performance problem, most noticably on Win32
559      https://rt.cpan.org/Ticket/Display.html?id=70037
560
561    - TIFF now uses wrapper functions of the correct types to avoid casts
562      https://rt.cpan.org/Ticket/Display.html?id=69912
563
564    - the callback IO object did its own buffering, controlled by the
565      maxbuffer parameter supplied to the read() and write() methods.
566      This buffering has been removed, to avoid redundancy with the
567      common io_glue buffering.  This also avoids a bug in that code
568      which could rarely pass a zero length to the read callback and
569      then panic about the result.
570
571    - the callback IO object now tests the result of calling the close
572      callback, which should return true for success.
573
574    - the PNM reader did its own buffering.  This buffering has been
575      removed to avoid redundancy with the common io_glue buffering.
576
577    - previously the read handlers for fd and callback I/O layers would
578      call the underlying interface (POSIX read or your supplied callback)
579      until it filled the buffer.  It now only makes one call.
580
581    - added public constructors for I/O layer objects (see Imager::IO)
582
583    - all core file handlers now use the i_io_foo() wrappers to gain
584      access to buffered I/O rather than calling the I/O layer
585      callbacks directly.
586
587    - all core file handlers now check for error on close.
588
589    - Backward compatibility: if you hava custom file handlers, you can
590      use i_io_write() etc since they're available as macros in older
591      versions of Imager.
592
593    - eliminate the final remnants of io_glue_commit_types().
594
595    - bump IMAGER_API_VERSION, since the above may break assumptions.
596
597  - removed the long unused i_gen_reader() and i_gen_writer() utility
598    functions.
599
600 Imager 0.85 - 29 Aug 2011
601 ===========
602
603 The main changes in the release versus 0.84 are:
604
605  - on 64-bit systems, 64-bit types are consistently used for image
606    dimensions and co-ordinated, and for memory block sizes.
607
608  - handle IFD loops in TIFF files correctly.  Previously this would
609    lead to an infinite loop.
610
611 Bug fixes:
612
613  - fix the link in the getheight() entry in the method index
614
615 Imager 0.84_02 - 22 Aug 2011
616 ==============
617
618 Development release, this will become 0.85 if CPAN testers is
619 favourable.
620
621 Bug fixes:
622
623  - the image file limits set by set_file_limits() weren't being
624    checked when reading TIFF files.
625    https://rt.cpan.org/Ticket/Display.html?id=69915
626
627  - Provide more information about file format module load errors on a
628    failed image file read() or write().
629    https://rt.cpan.org/Ticket/Display.html?id=69194
630
631  - use TIFFReadDirectory() instead of TIFFSetDirectory() to iterate
632    through TIFF images, since it checks for IFD loops.
633    https://rt.cpan.org/Ticket/Display.html?id=69914
634
635  - don't leak memory when out of range palette indexes are supplied to
636    setscanline().
637    https://rt.cpan.org/Ticket/Display.html?id=69242
638
639  - require a later version of CPAN::Meta to ensure JSON::PP and
640    CPAN::Meta::YAML are available.
641    https://rt.cpan.org/Ticket/Display.html?id=69008
642
643  - hoist the per-line calculations for the flines implementations, and
644    modernize the tests a bit.
645    https://rt.cpan.org/Ticket/Display.html?id=70126
646
647  - detect snprintf()/vsnprintf() (cheat by using Config.pm) and use
648    them when available.
649    https://rt.cpan.org/Ticket/Display.html?id=69147
650
651  - if t1lib failed to reinitialize it would be left as marked
652    initialized.
653    https://rt.cpan.org/Ticket/Display.html?id=69877
654
655  - update the bundled (and still modified) Devel::CheckLib
656    https://rt.cpan.org/Ticket/Display.html?id=69170
657
658 Imager 0.84_01 - 8 Aug 2011
659 ==============
660
661 Development release as a sanity check for the types re-work.
662
663 Massive types re-work:
664
665  - the type used internally for pixel co-ordinates and image sizes is
666    now 64-bit on 64-bit platforms (at least sane ones).
667
668  - size_t is now used consistently for memory block sizes.
669
670  - since this changes the binary interface, the Imager API version has
671    been incremented.  Any module that uses the API will need to be
672    rebuilt.  In most cases that will be enough, but calls to any APIs
673    that take a pointer to image sizes may need source changes.
674
675  - you should be able to create very large images on 64-bit systems,
676    if you have enough memory.  Successfully created a 32768 x 49192 x
677    3 channel image, filled with a tiled image and scaled it.  The
678    unscaled image was also successfully saved to a JPEG.
679
680  - check the image size before attempting to write BMP, GIF, JPEG,
681    PNG, SGI, TGA, TIFF images.
682
683  - correctly handle reading TGA images over 32767 pixels wide or tall.
684
685 Incidental changes:
686
687  - the gif_left and gif_top tags are now clamped to non-negative
688    values when writing a GIF image.
689
690  - removed dead callback read/write code
691
692 The default maximum memory size when reading files is now 1G.
693
694 Imager 0.84 - 20 Jun 2011
695 ===========
696
697  - Imager no longer inherits from Exporter (unless you're running an
698    old, old perl.
699
700  - Imager can now write progressive JPEGs (it could always read them).
701    https://rt.cpan.org/Ticket/Display.html?id=68691
702
703 Bug fixes:
704
705  - re-work, document and test Imager's logging facility.
706    https://rt.cpan.org/Ticket/Display.html?id=65227
707
708  - fix META.yml testing and the generated META.yml
709    https://rt.cpan.org/Ticket/Display.html?id=65235
710
711  - test and add error reporting to to_*() family methods
712
713  - add to_rgb_double() method.
714    https://rt.cpan.org/Ticket/Display.html?id=65101
715
716  - Imager no longer exports anything by default
717    https://rt.cpan.org/Ticket/Display.html?id=65228
718
719  - convert colors to grayscale if the supplied (or generated) palette
720    contains only grays when performing error diffusion color
721    translation.
722    https://rt.cpan.org/Ticket/Display.html?id=68508
723
724  - writing a paletted image to GIF wouldn't always use the colors
725    supplied (or generated, eg. via make_colors => "mono"), which was
726    confusing at best.
727    https://rt.cpan.org/Ticket/Display.html?id=67912
728
729  - replace (imager|tony)@imager.perl.org in the doc, since I don't
730    plan to continue receiving mail at that address.
731    https://rt.cpan.org/Ticket/Display.html?id=68591
732
733 Imager 0.83 - 21 May 2011
734 ===========
735
736 Bug fixes:
737
738  - diag() the error message on failure for some TIFF tests that are
739    failing on a Solaris smoker.
740    http://www.cpantesters.org/cpan/report/6396db1e-8090-11e0-9682-112b785ebe45
741
742 Imager 0.82_01 - 17 May 2011
743 ==============
744
745 Dev release, in case the compose tests are too sensitive.
746
747 Bug fixes:
748
749  - Imager::Font::T1 incorrectly checked for absolute filename under
750    Win32.  Thanks to kmx for the report and fix.
751    https://rt.cpan.org/Ticket/Display.html?id=67963
752
753  - compose() with the target, source or mask position off the top or
754    left of the target image didn't clip the source image correctly.
755    https://rt.cpan.org/Ticket/Display.html?id=67220
756
757  - compose() now returns a useful error message on a non-positive
758    opacity.
759
760  - compose.im now at 100% test coverage. (As opposed to, umm, much,
761    much less.)
762
763 Imager 0.82 - 14 Mar 2011
764 ===========
765
766 Bug fixes:
767
768  - eliminate calls to i_has_format() from the test suite, since it's
769    no longer a useful way to check for file format support.  Eliminate
770    i_has_format() from the functions exposed via XS.
771    https://rt.cpan.org/Ticket/Display.html?id=65863
772
773  - eliminate calls to note(), which isn't in the (very old) version of
774    Test::More we have as a pre-requisite.  note() is modern enough
775    that I don't feel a need to require a Test::More upgrade for it.
776    https://rt.cpan.org/Ticket/Display.html?id=65864
777
778  - skip the threads tests on Test::More 2.00_*
779    https://rt.cpan.org/Ticket/Display.html?id=65812
780
781  - add an (unshipped) test to check Imager's internal POD links
782    https://rt.cpan.org/Ticket/Display.html?id=65749
783
784  - improve the library detection summary
785    https://rt.cpan.org/Ticket/Display.html?id=9675
786
787  - increase the version of Imager::Font::Type1 so that upgrades don't
788    downgrade the version in this file.
789    https://rt.cpan.org/Ticket/Display.html?id=66250
790
791  - if we see an -rpath (or -R) option in $Config{lddlflags} supply
792    that option for the directories that would normally go in
793    LD_RUN_PATH.  Typically an explicit -rpath overrides LD_RUN_PATH.
794    https://rt.cpan.org/Ticket/Display.html?id=65955
795
796 Imager 0.81 - 14 Feb 2011
797 ===========
798
799  - added coverage tests for masked images (maskimg.c @100% test coverage)
800
801  - add hsv() method to Imager::Color
802    Thanks to Leolo (Philip Gwyn)
803    https://rt.cpan.org/Ticket/Display.html?id=65385
804
805  - split libt1 Type 1 font support into a sub-module
806    https://rt.cpan.org/Ticket/Display.html?id=49616 (partial)
807
808  - add a preload() class method for use in forking servers, and to
809    work around limitations in PAR.
810    https://rt.cpan.org/Ticket/Display.html?id=65665
811
812 Bug fixes:
813
814  - paletted writes to a masked image are now masked correctly.
815    Revealed by new coverage tests.
816
817  - update the filter plugin documentation.
818    https://rt.cpan.org/Ticket/Display.html?id=56513
819
820  - add the matrix() method to Imager::Matrix2d to allow creation of a
821    matrix with specified co-efficients.  You can now multiple an
822    Imager::Matrix2d object by a 9 element array ref or a number.
823    https://rt.cpan.org/Ticket/Display.html?id=29938
824
825  - really fix loading TTF fonts with FT2 when FT1 isn't available.
826    Thanks to Leolo (Philip Gwyn)
827    https://rt.cpan.org/Ticket/Display.html?id=65386
828    https://rt.cpan.org/Ticket/Display.html?id=62855
829
830  - make sure each test script that needs testout/ creates it.
831    https://rt.cpan.org/Ticket/Display.html?id=65088
832
833  - handle a slightly different warning from libtiff 4.x
834    https://rt.cpan.org/Ticket/Display.html?id=65268
835
836  - the sat transform2() op returned an incorrect saturation.
837    https://rt.cpan.org/Ticket/Display.html?id=65391
838
839 Imager 0.80 - 17 Jan 2011
840 ===========
841
842  - added coverage tests for Imager::Fountain and Imager::Color::Float
843
844  - Imager is now maintained in git
845    http://git.imager.perl.org/imager.git
846    git://git.imager.perl.org/imager.git
847
848 Bug fixes:
849
850  - images with an translucent alpha channel were not scaled correctly
851    by the default (qtype=normal) scaling method.
852    https://rt.cpan.org/Public/Bug/Display.html?id=63922
853
854  - Imager::Color::Float now translates "#FFFFFF" to white instead of
855    just a little darker.
856
857  - make the default color map build algorithm "mediancut".  This
858    changes the default color map builder for writing GIFs back to what
859    it was in 0.77, reverting a performance regression.
860    https://rt.cpan.org/Ticket/Display.html?id=64785
861
862  - handle failure to create a masked image correctly
863
864 Imager 0.79 - 10 Dec 2010
865 ===========
866
867  - add Imager::Test to the POD coverage tests and document the missing
868    functions.
869
870  - the convert() method now optimizes the case where all output
871    channels are either 0, sourced from a single input channel or 1.
872    This significantly speeds up presets like "addalpha", "green".
873    https://rt.cpan.org/Ticket/Display.html?id=51254
874
875  - add wiggle.pl sample, as suggested by Dan Oppenheim.
876
877  - add the combine() method to combine channels from multiple source
878    images into a new image
879    https://rt.cpan.org/Ticket/Display.html?id=11872
880
881 Bug fixes:
882
883  - treat the co-efficients for convert() as doubles instead of floats.
884
885  - If a higher (earlier) priority font handler failed to load, that
886    would crash preventing loading of later font handlers.
887    https://rt.cpan.org/Ticket/Display.html?id=62855
888
889  - parse defines from the options returned by pkg-config --cflags
890    https://rt.cpan.org/Ticket/Display.html?id=63223
891
892  - a regen of the MANIFEST revealed that GIF and FT2 tests weren't
893    included in the tarball.  They are now included.
894
895 Imager 0.78 - 4 Oct 2010
896 ===========
897
898 Bug fixes:
899
900  - don't access deprecated members of the png_structp.
901    https://rt.cpan.org/Ticket/Display.html?id=60242
902
903  - document that using color objects is faster than supplying colors
904    by name, etc.
905    https://rt.cpan.org/Ticket/Display.html?id=61047
906
907  - Imager::Probe now accepts array references for incpath and libpath.
908    https://rt.cpan.org/Ticket/Display.html?id=60244
909
910 Imager 0.77_02 - 27 Sep 2010
911 ==============
912
913  - moved Win32, FreeType 2 font support into sub-modules.
914    https://rt.cpan.org/Ticket/Display.html?id=49616 (partial)
915    Uses Imager::Probe now.
916    https://rt.cpan.org/Public/Bug/Display.html?id=61328
917
918  - tested successfully with jpeg-8b
919    https://rt.cpan.org/Ticket/Display.html?id=60221
920
921 Bug fixes:
922
923  - from _01: look for missing file support test files in the right
924    places.
925
926  - flood_fill() wouldn't fill the right side of a single scan-line
927    fill area.
928    Thanks to Nicolas Roggli for reporting this.
929
930  - flood_fill wouldn't fill to the left edge of the image if the
931    starting line didn't reach the left edge.
932    Thanks to Nicolas Roggli for reporting this.
933
934 Imager 0.77_01 - 13 Sep 2010
935 ==============
936
937  - add each library-directory/pkgconfig/ to the pkg-config search path
938    in Imager::Probe.
939    Thanks to Justin Davis.
940    https://rt.cpan.org/Ticket/Display.html?id=60491
941
942  - moved GIF, TIFF, JPEG file handling code into sub-modules in
943    preparation for separate distribution.
944    https://rt.cpan.org/Ticket/Display.html?id=49616 (partial)
945
946    Note: this removed support for libungif from Imager.
947
948  - optimize filled box drawing (color, not fill)
949
950 Bug fixes:
951
952  - Imager::Probe was calling ExtUtils::Liblist to initialize
953    LD_RUN_PATH supplying an undefined value rather than the found
954    directory.  Thanks to Justin Davis.
955    https://rt.cpan.org/Ticket/Display.html?id=60491
956
957  - only prepend ./ to font filenames when passing them to T1Lib and
958    then only when it would use its search mechanisms.
959    https://rt.cpan.org/Ticket/Display.html?id=60509
960
961  - fix the cache check for the X rgb.txt loader.  This is typically
962    used for color translation on Unix-like systems, and the fix
963    improves performance of supplying colors by name by about 80 times.
964    Test code that managed 3400 10x10 pixel boxes/second sped up to
965    25700 boxes/second.
966
967  - clarify that Imager doesn't write EXIF metadata to images.
968    https://rt.cpan.org/Ticket/Display.html?id=60637
969
970  - Imager::Probe can now search subdirectories under its include path.
971    Used by the PNG Makefile.PL to find headers and libraries when they
972    aren't in the base directory, as in cygwin.
973    https://rt.cpan.org/Ticket/Display.html?id=60635
974
975 Imager 0.77 - 11 Aug 2010
976 ===========
977
978 I don't want Imager::File::PNG indexed as part of Imager, but forgot
979 to update the META.yml before updating the version.
980
981  - don't index Imager::File::PNG as part of Imager
982
983  - add resources to META.yml
984
985 Imager 0.76 - not released
986 ===========
987
988 Bug fixes:
989
990  - the align_string() method would ignore a string of "0" due to a
991    mis-use of C< ||= >.
992    Thanks to Maurice Height for reporting this.
993    https://rt.cpan.org/Ticket/Display.html?id=60199
994
995 Imager 0.75_03 - 09 Aug 2010
996 ==============
997
998 Bug fixes:
999
1000  - read_types() and write_types() would include png when it wasn't
1001    available due to a problem with the %formats tie
1002
1003  - handle dependent libraries correctly (eg -lpng requiring -lz) in
1004    the code run phase of library probing.
1005
1006 Imager 0.75_02 - 07 Aug 2010
1007 ==============
1008
1009 Bug fixes:
1010
1011  - add file missing from MANIFEST, which was causing TIFF failures.
1012
1013 Imager 0.75_01 - 06 Aug 2010
1014 ==============
1015
1016 Test release for the new PNG probe.
1017
1018  - added the ability to read multiple-image PNM files.
1019    Note that unlike the pbm/pgm/ppm specification this accepts mixed
1020    format files and allows white space padding between files.
1021    Thanks to Philip Gwyn (Leolo) for this patch.
1022
1023  - moved the PNG file handling code into a sub-module in preparation
1024    for separate distribution.
1025    https://rt.cpan.org/Ticket/Display.html?id=49616 (partial)
1026    Also helps avoid complications from -I/-L compile/link options from
1027    other libraries.
1028
1029 Bugs:
1030
1031  - Imager->new(data => $data) didn't try to process image file data in
1032    $data
1033    https://rt.cpan.org/Ticket/Display.html?id=58761
1034
1035  - t/t50basicoo.t no longer depends on the other tests to generate its 
1036    input files.
1037    https://rt.cpan.org/Ticket/Display.html?id=9798
1038    Also, it wasn't testing pnm (pnm vs ppm mix-up)
1039
1040  - update the documentation of hardinvert to match the change in 0.62.
1041    https://rt.cpan.org/Ticket/Display.html?id=59785
1042
1043  - added hardinvertall filter which also inverts the alpha channel
1044    (sorry for the mess)
1045
1046  - when probing for TIFF, set LD_RUN_PATH just as the Makefile does so
1047    the probe can find the library for the test run.
1048    https://rt.cpan.org/Ticket/Display.html?id=57518
1049
1050 Imager 0.75 - 20 Jun 2010
1051 ===========
1052
1053  - use PERL_NO_GET_CONTEXT to slightly improve performance on threaded
1054    perls (not measured)
1055
1056 Bugs:
1057
1058  - an opacity fill based on a fountain fill would segfault when
1059    filling an 8-bit/sample image.
1060
1061  - merge thickline branch polygon fix
1062    https://rt.cpan.org/Ticket/Display.html?id=43518
1063
1064 Imager 0.74 - 7 May 2010
1065 ===========
1066
1067 Bug fixes:
1068
1069  - read_multi() didn't handle a missing file format library correctly,
1070    aborting on failing to call i_readgif_multi_wiol() or
1071    i_readtiff_multi_wiol().
1072
1073  - fix spelling errors patched by Debian
1074    http://svn.debian.org/viewsvn/pkg-perl/trunk/libimager-perl/debian/patches/spelling.patch?revision=54839&view=markup
1075
1076  - add an (unshipped) author test to spellcheck Imager's POD.
1077
1078  - update the TIFF file format documentation
1079    https://rt.cpan.org/Ticket/Display.html?id=56510
1080
1081  - lib/Imager/IO.pod was written almost 4 years ago but never shipped.
1082
1083 Imager 0.73 - 15 Mar 2010
1084 ===========
1085
1086  - implement outline circles, both anti-aliased and not
1087    https://rt.cpan.org/Ticket/Display.html?id=19755
1088
1089  - a combine => "none" fill to a 1 or 3 channel image would produce
1090    the incorrect colour.
1091
1092 Imager 0.72 - 09 Dec 2009
1093 ===========
1094
1095 Bump version for release, since 0.71_03 is stable with CPAN testers.
1096
1097 Imager 0.71_03 - 5 Dec 2009
1098 ==============
1099
1100  - further adjust the threads test so it only performs the tests on
1101    perls where it's expected to work, and only if the threads module
1102    can be loaded.
1103
1104 Imager 0.71_02 - 1 Dec 2009
1105 ==============
1106
1107  - adjust the way we load the threads module for the threads test so
1108    it works with non-threaded perls
1109
1110 Imager 0.71_01 - 30 Nov 2009
1111 ===========
1112
1113 Bug fixes:
1114
1115  - use scanline oriented operations to flip images instead of pixel
1116    operations
1117    https://rt.cpan.org/Ticket/Display.html?id=39278
1118
1119  - use double/sample operations to flip large sample images instead of
1120    8-bit sample operations.
1121    https://rt.cpan.org/Ticket/Display.html?id=39280
1122
1123  - fix POD nits
1124    https://rt.cpan.org/Ticket/Display.html?id=51874
1125
1126  - prevent double-frees when someone creates Imager objects and then
1127    creates a thread.  Note: this just handles some simple cases,
1128    Imager doesn't support perl threads, and isn't likely to.
1129    https://rt.cpan.org/Ticket/Display.html?id=52268
1130
1131 Imager 0.71 - 16 Nov 2009
1132 ===========
1133
1134  - add the opacity fill type - an adaptor that modifies the opacity of
1135    another fill.
1136
1137 Bug fixes:
1138
1139  - the conv filter now enforces that the sum of the coefficients is
1140    non-zero.  Also, rather than skipping pixels off the edge off the
1141    edge of the image, the closest edge pixel is used.  Previously
1142    dividing by the zero sum of coefficients could cause invalid
1143    results or runtime exceptions.
1144    Thanks to David Cantrell's Alpha-NetBSD CPAN test box for revealing
1145    this bug.
1146
1147 Imager 0.70 - 21 Sep 2009
1148 ===========
1149
1150 Bug fixes:
1151
1152  - release image row and comments memory on all error returns in gif
1153    reader
1154
1155  - handle zero length extensions, previously this would cause a null
1156    pointer dereference
1157    Thanks to Krzysztof Wojtaś for the test data and fix for this.
1158
1159  - an integer division meant that preview scaling to below 1 pixel
1160    wide or high (which isn't too useful anyway) was calculating using
1161    NaNs on most platforms, and causing an exception on others.
1162    Thanks to David Cantrell for producing a backtrace of the crash on
1163    his Alpha-NetBSD CPAN test box which made it possible to track this
1164    down.
1165
1166 Imager 0.69 - 08 Sep 2009
1167 ===========
1168
1169 Bug fixes:
1170
1171  - broken test fix - was attempting to call a function skip_all, when
1172    that should be a parameter to plan().
1173
1174  - briefly document apidocs.perl, the tool used to build
1175    Imager::APIRef and make some minor enhancements
1176
1177  - various minor documentation enhancements and fixes.
1178
1179 Imager 0.68 - 07 Sep 2009
1180 ===========
1181
1182  - Imager->new(file => $filename) and other similar incantations will
1183    load the given file.
1184    https://rt.cpan.org/Ticket/Display.html?id=48261
1185
1186 Bug fixes:
1187
1188  - avoid using CHECK as a label in Imager::Test
1189    http://nntp.x.perl.org/group/perl.cpan.testers/5220921
1190
1191  - re-work most image file test files that require a library into
1192    separate library present/not present files to remove stupidly long
1193    conditionals
1194
1195  - don't treat rubthrough() outside the bounds of the target image as
1196    an error.
1197    http://nntp.x.perl.org/group/perl.cpan.testers/5185716
1198
1199 Imager 0.67_01 - 02 Sep 2009
1200 ==============
1201
1202 Bug fixes:
1203
1204  - correct documentation of default of raw image interleave read
1205    parameter
1206    https://rt.cpan.org/Ticket/Display.html?id=42074
1207
1208  - add raw_ prefix to raw read parameters, though the original names
1209    still work.
1210
1211  - fail the read if an invalid raw_interleave parameter is supplied
1212
1213  - warn if no interleave or raw_interleave parameter is supplied,
1214    since the documented default was wrong, and incompatible with the
1215    write format
1216
1217  - for reading raw images, if raw_storechannels > raw_datachannels,
1218    set the extra channels in the image to 0
1219
1220  - when probing for executables like freetype-config, search for .bat
1221    and .cmd on MSWin32, as well as .exe.
1222    https://rt.cpan.org/Ticket/Display.html?id=49275
1223
1224  - re-work the external libraries section of README:
1225    - list Debian and Redhat package names for each library
1226    - reformatting
1227    - update URLs
1228
1229  - use the new EU::MM META_MERGE facility instead of generating
1230    META.yml from scratch
1231    https://rt.cpan.org/Ticket/Display.html?id=47888
1232
1233  - use Devel::CheckLib (bundled, modified) to check which release of
1234    libtiff is installed and reject 3.9.0
1235    http://bugzilla.maptools.org/show_bug.cgi?id=2088
1236    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543079
1237
1238 Imager 0.67 - 12 Dec 2008
1239 ===========
1240
1241 Bug fixes:
1242
1243  - fix a packaging error
1244
1245 Imager 0.66 - 12 Dec 2008
1246 ===========
1247
1248  - 24-bit color .ICO/.CUR files can now be read.
1249
1250 Bug fixes:
1251
1252  - an optimization skipping 0 src alpha values could cause the
1253    rubthrough() to read past the end of a buffer.
1254    http://www.nntp.perl.org/group/perl.cpan.testers/2008/05/msg1509184.html
1255
1256  - corrected a reference leak where writing GIFs would leak memory.
1257    This could also happen calling to_paletted().
1258    Also documented the underlying long existing feature where the
1259    colors parameter is filled with the generated color table and added
1260    tests for it.
1261    http://rt.cpan.org/Ticket/Display.html?id=41028
1262
1263  - write out the image size in bytes field of a BMP correctly.
1264    http://rt.cpan.org/Ticket/Display.html?id=41406
1265
1266  - add limited tests for Imager::ExtUtils
1267
1268  - make Imager::ExtUtils->includes use an absolute path, since
1269    a relative path could cause failures using Inline::C.
1270    http://rt.cpan.org/Ticket/Display.html?id=37353
1271
1272  - re-arrange the POD for Imager::Font::BBox:
1273    - mark total_width(), pos_width(), end_offset() obsolete, since
1274      they're mostly for backwards compatibility
1275    - group width methods and height methods
1276    https://rt.cpan.org/Ticket/Display.html?id=39999
1277
1278 Imager 0.65 - 20 May 2008
1279 ===========
1280
1281 Bug fixes:
1282
1283  - In some cases when an error occurs reading those parts of a JPEG
1284    file after the image the scan-line buffer could be freed a second
1285    time.  In cases where the the error occured while reading the image
1286    data it's possible that the buffer could have leaked.
1287    Thanks to Gabriel Vasseur for reporting this and help in tracking
1288    it down.
1289
1290  - the gif_screen_height tag was overriding the screen width and being
1291    ignored for the screen height when present.
1292    https://rt.cpan.org/Public/Bug/Display.html?id=35568
1293
1294 Imager 0.64 - 23 April 2008
1295 ===========
1296
1297 This is a bug fix release.  This includes a fix for a possible
1298 security issue.
1299
1300 Bug fixes:
1301
1302  - Possible security issue: The floating point sample path for image
1303    based fills had a buffer overflow.  This would overwrite the end of
1304    a malloc()ed buffer with double precision floats.
1305    http://rt.cpan.org/Ticket/Display.html?id=35324
1306    CVE-2008-1928
1307
1308  - check that the result of fileno($fh) is defined rather than simply
1309    true when read() or write() is supplied with an fh parameter.
1310    http://rt.cpan.org/Ticket/Display.html?id=35139
1311
1312  - i_scale_axis() wasn't checking the result of i_img_new_ch()
1313    resulting in a SIGSEGV when attempting to scale an image to a size
1314    too large to fit in memory.  This is a NULL pointer access issue,
1315    not a buffer overflow.
1316    Added a check for the failure.
1317    scale_calculate() (and hence scale()) will now fail if any of the
1318    scale size parameters are a reference.
1319    http://rt.cpan.org/Ticket/Display.html?id=35172
1320
1321  - Regression: filling a greyscale image with a hatch used the wrong
1322    color channels from the supplied fg/bg colors.
1323    https://rt.cpan.org/Ticket/Display.html?id=35278
1324
1325  - fixed a related problem for image fills.
1326
1327 Imager 0.63 - 7 April 2008
1328 ===========
1329
1330 This release primarily contains changes to improve ease of use -
1331 rather than you having to convert images to the appropriate number of
1332 channels, Imager handles it internally.  How to handle drawing colors
1333 and the default combine mode is a thornier problem left for some other
1334 release.
1335
1336  - the font libraries are now only initialized when needed.
1337    http://rt.cpan.org/Ticket/Display.html?id=28825
1338
1339  - moved the imtoc.perl code into Imager::Preprocess
1340
1341  - paste() and rubthrough() now adapt the source image data to the
1342    destination, so you can now safely paste/rubthrough from greyscale
1343    images to color images or back, or from alpha channel images to
1344    noalpha channels or back.
1345    https://rt.cpan.org/Ticket/Display.html?id=30908
1346
1347  - rubthrough() now falls back to pasting when the source doesn't have
1348    an alpha channel.  This effectively treats the source as having a
1349    max alpha channel, the right thing to do.
1350    http://rt.cpan.org/Ticket/Display.html?id=29944
1351
1352  - re-worked most of the area filling code to use a common set of
1353    functions when filling.
1354    Corrected normal combine mode.
1355    Rewrote most of the combine modes to match the way the SVG draft
1356    defines them with respect to a translucent source and destination.
1357    Added tests for translucent source and destination.
1358    Added tests to check 8-bit/sample and double/sample combines work
1359    similarly.
1360    https://rt.cpan.org/Ticket/Display.html?id=29879
1361
1362  - writing a 2 or 4 channel image to a JPEG file will now write that
1363    image as if composited against a background, black by default,
1364    overridable with the i_background tag/parameter.
1365    https://rt.cpan.org/Ticket/Display.html?id=29876
1366
1367  - writing a 2 or 4 channel image to a PGM/PPM file will now write
1368    that image as if composited against a background, black by default,
1369    overridable with the i_background tag/parameter.
1370    http://rt.cpan.org/Ticket/Display.html?id=30074
1371
1372  - writing a 2 or 4 channel image to a BMP file will now write that
1373    image as if composited against a background, black by default,
1374    overridable with the i_background tag/parameter.
1375    http://rt.cpan.org/Ticket/Display.html?id=30075
1376
1377 Bug fixes:
1378
1379  - Imager::Matrix2d->translate() now only requires one of the x or y
1380    parameters.
1381    http://rt.cpan.org/Ticket/Display.html?id=29937
1382
1383  - mixing qtype scaling now sets all channels of a pixel to zero if
1384    the pixel has zero coverage (zero alpha).  This should produce more
1385    compressible output files.
1386    http://rt.cpan.org/Ticket/Display.html?id=32324
1387
1388  - removed the pointless #! line from lib/Imager/Font/Wrap.pm
1389    Noticed when I saw:
1390    https://bugzilla.redhat.com/show_bug.cgi?id=166254
1391    I'm not changing the #! lines of the sample code, since it's sample
1392    code, not intended for installation.
1393    http://rt.cpan.org/Ticket/Display.html?id=33408
1394
1395  - some TGA images weren't being detected correctly as TGA images
1396    https://rt.cpan.org/Ticket/Display.html?id=32925
1397
1398  - handling of the left-over bit for 16-bit/pixel TGA images has been
1399    changed to match the behaviour of the GIMP.  Previously the bit
1400    being set was treated as an opaque pixel, but one user reported a
1401    problem with loading such an image.  I haven't been able to find any
1402    tools beyond the GIMP that handle alpha-channel 16-bit TGAs, so
1403    I'll match it's behaviour.  See issue 114913 in the GIMP's
1404    bugzilla.
1405    http://rt.cpan.org/Ticket/Display.html?id=32926
1406
1407 Imager 0.62 - 10 December 2007
1408 ===========
1409
1410  - Makefile.PL now expands ~/path supplied to --incpath or --libpath
1411    to /path under your home directory.
1412    http://rt.cpan.org/Ticket/Display.html?id=29484
1413
1414  - the old dynaload code used Mach API functions to load dynamic
1415    libraries on Mac OS X.  These APIs have been deprecated in OS X
1416    10.5 and were causing some build problems.
1417    So henceforth Imager uses the dlopen() family of functions, and you 
1418    will need version 10.3 or later of OS X.
1419
1420  - added the det() function to the transform2() engine.
1421    added the sample quad_to_square.pl
1422    Courtesy Richard Fairhurst.
1423    http://rt.cpan.org/Ticket/Display.html?id=31244
1424
1425 Bug fixes:
1426
1427  - samples/gifscale.pl sourced the base value for gif_top from
1428    gif_left.
1429    Thanks to Eleneldil G. Arilou for pointing this out.
1430
1431  - t/t82inline.t no longer loads B at runtime, to work around a bug
1432    in some 5.005_0[45] installations.
1433    http://rt.cpan.org/Ticket/Display.html?id=30508
1434
1435  - work around Module::Depends::Intrusive bug #21229
1436    http://rt.cpan.org/Ticket/Display.html?id=30520
1437
1438  - the hardinvert filter no-longer inverts the alpha channel.
1439    http://rt.cpan.org/Ticket/Display.html?id=30002
1440
1441  - the hardinvert filter now supports large samples
1442
1443 Imager 0.61_02 - 28 November 2007
1444 ==============
1445
1446  - major TIFF support re-work
1447    http://rt.cpan.org/Ticket/Display.html?id=20329
1448
1449  - added a C level image interface for accessing samples from 1-32
1450    bits, exposed this at the perl level in getsamples()
1451
1452  - the conv filter now works at floating point precision for high bit
1453    images
1454
1455  - added is_bilevel method to test whether an image should be written as
1456    a bilevel image if the image format supports it.
1457
1458  - added -log-stderr as an Imager import list option
1459
1460  - added some important types to Imager::APIRef
1461
1462  - added test_image_double() to Imager::Test
1463
1464 Bug fixes:
1465
1466  - Imager::Fountain couldn't read GIMP gradient files with 10 or more
1467    segments
1468
1469  - the scale() method with qtype mixing now handles images with an
1470    alpha channel correctly.
1471
1472  - fixed a broken link from the "animated GIF" entry in the concept index.
1473    Thanks to Slaven Rezic.
1474    http://rt.cpan.org/Ticket/Display.html?id=30889
1475
1476  - on some perl's the infix expression parser test would fail due to
1477    actions in the grammar returning false.  Made sure all actions return
1478    a true value.
1479    Thanks to Richard Fairhurst for spending a lot of time in tracking
1480    down this problem.
1481    http://rt.cpan.org/Public/Bug/Display.html?id=29562
1482
1483 Imager 0.61 - 5 November 2007
1484 ===========
1485
1486  - added samples/gifscale.pl, which adjusts the screen size/position tags
1487    when scaling an animated gif
1488    http://rt.cpan.org/Ticket/Display.html?id=27591
1489
1490 Bug fixes:
1491
1492  - correct handling of sz in matrix_transform() - this should allow
1493    perspective type transformations to work now.
1494    http://rt.cpan.org/Ticket/Display.html?id=29936
1495
1496  - prevent a cast to integer warning on x64 builds in datatypes.c
1497    also fixed some other type warnings
1498    https://rt.cpan.org/Ticket/Display.html?id=30204
1499
1500  - some sub-directory tests depended on files produced by the parent
1501    directory tests
1502    http://rt.cpan.org/Ticket/Display.html?id=30203
1503
1504  - Imager::Font::Wrap doesn't correctly set savepos
1505    thanks to Nikita Dedik and Eleneldil G. Arilou for reporting this.
1506    http://rt.cpan.org/Ticket/Display.html?id=29771
1507
1508  - test 171 in t/t01introvert.t was failing on perls configured to
1509    use long double.
1510    http://rt.cpan.org/Ticket/Display.html?id=29413
1511
1512  - the code for the transform2() uminus operator was missing a break.
1513    Added tests for better code coverage of the ops.
1514    http://rt.cpan.org/Ticket/Display.html?id=29296
1515
1516  - the SGI RLE compression code could overflow its compression buffer
1517    http://rt.cpan.org/Ticket/Display.html?id=30334
1518
1519  - the 32-bit output function used by the SGI code only handled values
1520    under 0x10000.  This was most noticable when writing large RLE images.
1521    http://rt.cpan.org/Ticket/Display.html?id=30335
1522
1523  - validate chan_count for chans == NULL for each of the i_gsamp()
1524    implementations.
1525    http://rt.cpan.org/Ticket/Display.html?id=28985
1526
1527  - attempt to work around the test failure at 
1528    http://www.nntp.perl.org/group/perl.cpan.testers/2007/09/msg650810.html
1529    http://rt.cpan.org/Ticket/Display.html?id=29562
1530
1531  - improve the error messages produced when attempting to read or write
1532    an unknown image file format.
1533    http://rt.cpan.org/Ticket/Display.html?id=30103
1534
1535  - improve the transform2() documentation
1536    http://rt.cpan.org/Ticket/Display.html?id=29267
1537
1538  - correctly generate the author key in META.yml
1539    http://rt.cpan.org/Ticket/Display.html?id=30377
1540
1541  - correctly blend a rotated (or matrix_transformed()) image when
1542    performing interpolation in the presence of an alpha channel.
1543    Also corrected the centring of the rotated image on the output
1544    image.
1545
1546 Imager 0.60 - 30 August 2007
1547 ===========
1548
1549  - Finished/rewrote Arnar's old SGI RGB file format support, so Imager
1550    now has full SGI RGB image format, including RLE and 16-bit/sample
1551    images.
1552    https://rt.cpan.org/Ticket/Display.html?id=8666
1553
1554  - logging functions are now available in the API
1555
1556  - applied Gabriel Vasseur's patch
1557    added documentation, further tests, and support for greyscale images
1558    Obviously problems are my fault :)
1559    https://rt.cpan.org/Ticket/Display.html?id=28142
1560
1561  - the mask for ICO/CUR images is now applied as an alpha channel to
1562    the returned image.  For the old behaviour, supply ico_masked => 0
1563    to read() or read_multi().  This should be less confusing when
1564    using Imager as a general image processor.
1565    https://rt.cpan.org/Ticket/Display.html?id=29001
1566
1567 Bug fixes:
1568
1569  - in some cases it's possible for giflib/libungif to return color 
1570    indexes outside the range of colors defined by the image's palette.
1571    We now expand the palette to match the indexes used.
1572    Thanks to Gabriel Vasseur for reporting this.
1573
1574  - fixed various memory leaks that could occur when failing to read png,
1575    jpeg, bmp or tga files.
1576
1577  - to avoid confusion, channels not present in the image are returned as
1578    zero by getscanline().  This has no effect on the C level i_glin()
1579    and i_glinf() API functions which continue to not set the unused
1580    channels.
1581
1582  - the convert() method now returns an image of the same sample size as
1583    the source image.
1584    https://rt.cpan.org/Ticket/Display.html?id=28492
1585
1586  - remove repeated text in Imager::Files
1587    http://rt.cpan.org/Ticket/Display.html?id=27589
1588
1589  - be even more explicit that scale() and friends don't modify the source
1590    image, but return a new image.
1591    http://rt.cpan.org/Ticket/Display.html?id=28570
1592
1593  - improve the error message from errstr() when you try to load a font
1594    for which the driver hasn't been built in Imager.
1595    http://rt.cpan.org/Ticket/Display.html?id=27571
1596
1597  - transparency is now enabled by default when writing GIF images
1598    http://rt.cpan.org/Ticket/Display.html?id=27615
1599
1600  - Imager would not load on Windows 98
1601    http://rt.cpan.org/Ticket/Display.html?id=27653
1602
1603 Imager 0.59 - 14 June 2007
1604 ===========
1605
1606 Bug fixes:
1607
1608  - fixes a regression introduced by the fixes for RT 11972
1609    http://rt.cpan.org/Ticket/Display.html?id=27546
1610
1611  - cropping outside the image would return an Imager object with
1612    no low-level image object, instead of returning false.
1613    Fixed by: Philip Gwyn (Leolo)
1614    http://rt.cpan.org/Ticket/Display.html?id=27509
1615
1616 Imager 0.58 - 16 May 2007
1617 ===========
1618
1619 No significant changes from 0.57_01.
1620
1621 Imager 0.57_01 - 11 May 2007
1622 ==============
1623
1624  - added to_rgb16 to produce a 16-bit/sample version of an image
1625
1626  - improve freetype 1.x text output efficiency
1627
1628 Bug fixes:
1629
1630  - search another place for rgb.txt, and check all the places 
1631    Imager::Color checks when deciding whether to skip testing it
1632    http://rt.cpan.org/Ticket/Display.html?id=26064
1633
1634  - use a convolution kernel size based on the stddev rather than a
1635    fixed size when performing a gaussian blur
1636    http://rt.cpan.org/Ticket/Display.html?id=25645
1637
1638  - document the difference() method's mindist parameter, and debug it.
1639
1640  - put the Imager release number in the Inline::C generated code to
1641    regenerate Inline code when a new release of Imager is installed.
1642    http://rt.cpan.org/Ticket/Display.html?id=26278
1643
1644  - fix rendering on alpha channel images for the FreeType 1.x driver.
1645    http://rt.cpan.org/Ticket/Display.html?id=11972
1646
1647  - fix rendering on alpha channel images for the T1lib driver.
1648    http://rt.cpan.org/Ticket/Display.html?id=11972
1649
1650  - reworked library probing, we can now set more than one probe
1651    function for a library.  Disabled the default (non-freetype-config)
1652    library probe and added an extra probe function that searches for
1653    both ft2build.h and whatever it includes, and adds -I as needed.
1654    Hopefully this will fix build problems like
1655    http://www.nntp.perl.org/group/perl.cpan.testers/2007/05/msg472281.html
1656    http://rt.cpan.org/Ticket/Display.html?id=26086
1657
1658 Imager 0.57 - 30 Apr 2007
1659 ===========
1660
1661 This is a maintenence release fixing a security issue in Imager.
1662
1663  - CRITICAL: a specially crafted compressed BMP file can cause a buffer
1664    overflow in malloced memory.  There will be further discussion of
1665    this issue in the ticket below.
1666    http://rt.cpan.org/Ticket/Display.html?id=26811
1667    CVE-2007-2459  CVE-2007-2413
1668    The descriptions at cve.mitre.org varied in quality, please see the
1669    ticket at rt.cpan.org for a more accurate description of the issue.
1670
1671 Imager 0.56 - 1 Apr 2007
1672 ===========
1673
1674  - added support for reading 16-bit/sample PGM/PPM images
1675
1676  - added support for writing 16-bit/sample PGM/PPM images
1677
1678  - improved performance of reading PBM/PGM/PPM images
1679
1680  - added support for writing PBM images if the image is paletted and
1681    contains only black and white
1682
1683  - added a new make_colors value - "mono"
1684
1685  - switched from the svn log Changes to a manual Changes to reduce
1686    noise
1687
1688  - new sample code - samples/flasher.pl
1689
1690 Bug fixes:
1691
1692  - CRITICAL: the "Imager" typemap entry (not used by Imager itself)
1693    was returning an image object with an extra reference, this
1694    resulted in a memory leak.
1695    http://rt.cpan.org/Ticket/Display.html?id=24992
1696
1697  - fix rendering on alpha channel images for the FreeType 2.x driver
1698    http://rt.cpan.org/Ticket/Display.html?id=11972
1699
1700  - reading bmp files now consitently handles short reads.  You can now
1701    supply a parameter to treat a short read as successful and set
1702    i_incomplete
1703    http://rt.cpan.org/Ticket/Display.html?id=8426
1704
1705  - previously, reading ASCII PBM files required spaces between samples,
1706    even though the format doesn't require that
1707
1708  - improved documentation of the unsharpmask filter (I hope)
1709    http://rt.cpan.org/Ticket/Display.html?id=25531
1710
1711  - force flushing of the output from i_tt_dump_names() and test output
1712    in t/t35ttfont.t to prevent output from being mixed up.
1713    https://rt.cpan.org/Ticket/Display.html?id=24859
1714
1715  - rewrite a conditional expression as an if() to hopefully work around
1716    a bug in the pre-4.0 GCC Apple shipped with OS X 10.4.
1717    https://rt.cpan.org/Ticket/Display.html?id=25561
1718
1719  - avoid Data::Dumper in regops.perl to support older releases of perl
1720    https://rt.cpan.org/Ticket/Display.html?id=24391
1721
1722 Imager 0.55 - 16 Dec 2006
1723 ===========
1724
1725 This is primarily a bug fix release.
1726
1727 Note: Test::More is now a pre-requisite for Imager and is no longer bundled.
1728
1729 There is one new feature:
1730
1731  - the Win32 font driver now supports UTF8 (RT 22166)
1732    http://www.cpanforum.com/threads/3276
1733    http://rt.cpan.org/Ticket/Display.html?id=22166
1734
1735 Several bugs were fixed:
1736
1737  - the string() method would not output the string "0"
1738    http://rt.cpan.org/Public/Bug/Display.html?id=21770
1739
1740  - fills.c was failing to compile on Solaris 10 (compiler unknown)
1741    http://rt.cpan.org/Public/Bug/Display.html?id=21944
1742
1743  - the gif_disposal and gif_user_input tags weren't being read from
1744    the file correctly
1745    http://rt.cpan.org/Public/Bug/Display.html?id=22192
1746
1747  - gif.c was failing to build under MSVC
1748    http://rt.cpan.org/Ticket/Display.html?id=23922
1749
1750  - in some cases strings passed to the string() method were treated as
1751    terminated by NUL (chr 0)
1752    http://rt.cpan.org/Public/Bug/Display.html?id=21770
1753
1754  - on "MSWin32" perl builds we now link to -lzlib instead of -lz since
1755    that's the default build name for zlib on Win32.
1756    http://rt.cpan.org/Ticket/Display.html?id=23064
1757
1758  - search $Config{incpath} for headers too, which we should have been
1759    doing all along.
1760
1761 Win32 font driver fixes:
1762
1763  - the global descent value from bounding box was the wrong sign
1764    http://www.cpanforum.com/threads/3276
1765
1766  - if the first or last glyph overflowed the left or right side of the
1767    advance width they would be clipped
1768
1769
1770 Imager 0.54 - 14 Sep 2006
1771 ===========
1772
1773 This is primarily a feature release:
1774
1775  - a new qtype value 'mixing' has been added to the scale()
1776    method. This is faster than 'normal', slower than 'preview'. This
1777    is based on the method used by pnmscale, and seems to produce less
1778    blurry results than normal.
1779    http://rt.cpan.org/Public/Bug/Display.html?id=20677
1780
1781  - the rubthrough() method can now render onto images with an alpha
1782    channel.
1783    http://rt.cpan.org/Ticket/Display.html?id=20678
1784
1785  - the read_multi() method now falls back to calling doing a single
1786    image read via the read() method and write_multi() will now fall
1787    back to calling write() if a single image is supplied. This means
1788    you can simply call the read_multi() or write_multi() functions
1789    without having to check if the type is formatted by that method.
1790    http://rt.cpan.org/Ticket/Display.html?id=19457
1791    http://rt.cpan.org/Ticket/Display.html?id=19458
1792
1793  - the GIF loop extension can now be written. If you don't have
1794    libungif/giflib 4.1.4 (or some distribution's bugfixed equivalent) you
1795    should upgrade.
1796    http://rt.cpan.org/Ticket/Display.html?id=21185
1797
1798  - getscanline() and setscanline() can now read/write palette index
1799    based data from/to the image for paletted images, by setting type to
1800    'index'.
1801    http://rt.cpan.org/Ticket/Display.html?id=20338
1802
1803  - we no longer hassle you to disable GIF support
1804    http://rt.cpan.org/Ticket/Display.html?id=20687
1805
1806  - minor documentation fixes
1807
1808
1809 Imager 0.53 - 26 Jul 2006
1810 ===========
1811
1812 This is a bugfix release.
1813
1814 Some test code was left in a code path not covered by the test
1815 suite. A test was added to cover this code path and the test code was
1816 removed.
1817 http://rt.cpan.org/Public/Bug/Display.html?id=20705
1818
1819
1820 Imager 0.52 - 25 Jul 2006
1821 ===========
1822
1823 This is primarily a feature release, but contains a fair few bug
1824 fixes, new features:
1825
1826  - ability to read and write MS Windows ICO and CUR files
1827
1828  - you can now add file format plugins to support new file formats
1829
1830  - add POD coverage tests
1831
1832  - setcolors() and addcolors() now accept color names and so on
1833    instead of requiring Imager::Color objects.
1834    http://rt.cpan.org/Ticket/Display.html?id=20056
1835
1836  - flood_fill() can now fill to a specified border color instead of
1837    just to the area the same color as the seed.
1838    http://rt.cpan.org/Ticket/Display.html?id=19618
1839
1840
1841 Bug fixes:
1842
1843  - bounding_box for the T1 driver wasn't converting UTF8 to ascii when
1844    calculating the advance width.
1845    http://rt.cpan.org/Public/Bug/Display.html?id=20554
1846
1847  - bounding_box for the T1 driver wasn't including leading and
1848    trailing spaces in the bounding box as the other drivers did, it also
1849    produced strange results for empty strings or strings containing only
1850    spaces
1851
1852  - when reading CMYK jpeg images they were being transferred to the
1853    image object as is, producing a four channel image. It only looked ok
1854    due to an old still unfixed Photoshop bug. We now convert from the
1855    inverted CMYK that photoshop (and Corel for example) produce into RGB.
1856    http://rt.cpan.org/Ticket/Display.html?id=20416
1857
1858  - reading a CYMK TIFF would result in a 4 channel image, reading any
1859    image with more than 4 channels (eg. RGB with 2 alpha channels) would
1860    result in an error.
1861    http://rt.cpan.org/Ticket/Display.html?id=20415
1862
1863  - added /usr/local/include to the default include search path, since
1864    we were already searching /usr/local/lib for libraries.
1865
1866 And various minor fixes and documentation updates.
1867
1868
1869 Imager 0.51 - 23 Apr 2006
1870 ===========
1871
1872  - fix a validation bug when processing JPEG EXIF data that can cause
1873    a crash
1874    http://rt.cpan.org/Public/Bug/Display.html?id=18496
1875
1876  - fix mis-processing of the src_maxx and src_maxy parameters of the
1877    paste() method
1878    http://rt.cpan.org/Public/Bug/Display.html?id=18712
1879
1880  - fix a problem in Imager's "smart" handling of the color parameter
1881    to various methods.
1882    http://rt.cpan.org/Public/Bug/Display.html?id=18561
1883
1884
1885 Imager 0.50 - 29 Mar 2006
1886 ===========
1887
1888  - CRITICAL: fixes a segmentation fault from attempting to write a 2
1889    or 4 channel image to jpeg or a 2 channel image to tga where the
1890    output is an in-memeory buffer.
1891    http://rt.cpan.org/Public/Bug/Display.html?id=18397
1892
1893  - fixes an incorrect pointer parameter in the PNG code
1894    http://rt.cpan.org/Public/Bug/Display.html?id=18051
1895
1896  - skip Inline::C tests when building in a directory with spaces
1897    http://rt.cpan.org/Public/Bug/Display.html?id=18049