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