- added the det() function to the transform2() engine.
[imager.git] / Changes
1 Imager release history.  Older releases can be found in Changes.old
2
3 Imager 0.62 - unreleased
4 ===========
5
6  - Makefile.PL now expands ~/path supplied to --incpath or --libpath
7    to /path under your home directory.
8    http://rt.cpan.org/Ticket/Display.html?id=29484
9
10  - the old dynaload code used Mach API functions to load dynamic
11    libraries on Mac OS X.  These APIs have been deprecated in OS X
12    10.5 and were causing some build problems.
13    So henceforth Imager uses the dlopen() family of functions, and you 
14    will need version 10.3 or later of OS X.
15
16  - added the det() function to the transform2() engine.
17    added the sample quad_to_square.pl
18    Courtesy Richard Fairhurst.
19    http://rt.cpan.org/Ticket/Display.html?id=31244
20
21 Bug fixes:
22
23  - samples/gifscale.pl sourced the base value for gif_top from
24    gif_left.
25    Thanks to Eleneldil G. Arilou for pointing this out.
26
27  - t/t82inline.t no longer loads B at runtime, to work around a bug
28    in some 5.005_0[45] installations.
29    http://rt.cpan.org/Ticket/Display.html?id=30508
30
31  - work around Module::Depends::Intrusive bug #21229
32    http://rt.cpan.org/Ticket/Display.html?id=30520
33
34  - the hardinvert filter no-longer inverts the alpha channel.
35    http://rt.cpan.org/Ticket/Display.html?id=30002
36
37  - the hardinvert filter now supports large samples
38
39 Imager 0.61_02 - 28 November 2007
40 ==============
41
42  - major TIFF support re-work
43    http://rt.cpan.org/Ticket/Display.html?id=20329
44
45  - added a C level image interface for accessing samples from 1-32
46    bits, exposed this at the perl level in getsamples()
47
48  - the conv filter now works at floating point precision for high bit
49    images
50
51  - added is_bilevel method to test whether an image should be written as
52    a bilevel image if the image format supports it.
53
54  - added -log-stderr as an Imager import list option
55
56  - added some important types to Imager::APIRef
57
58  - added test_image_double() to Imager::Test
59
60 Bug fixes:
61
62  - Imager::Fountain couldn't read GIMP gradient files with 10 or more
63    segments
64
65  - the scale() method with qtype mixing now handles images with an
66    alpha channel correctly.
67
68  - fixed a broken link from the "animated GIF" entry in the concept index.
69    Thanks to Slaven Rezic.
70    http://rt.cpan.org/Ticket/Display.html?id=30889
71
72  - on some perl's the infix expression parser test would fail due to
73    actions in the grammar returning false.  Made sure all actions return
74    a true value.
75    Thanks to Richard Fairhurst for spending a lot of time in tracking
76    down this problem.
77    http://rt.cpan.org/Public/Bug/Display.html?id=29562
78
79 Imager 0.61 - 5 November 2007
80 ===========
81
82  - added samples/gifscale.pl, which adjusts the screen size/position tags
83    when scaling an animated gif
84    http://rt.cpan.org/Ticket/Display.html?id=27591
85
86 Bug fixes:
87
88  - correct handling of sz in matrix_transform() - this should allow
89    perspective type transformations to work now.
90    http://rt.cpan.org/Ticket/Display.html?id=29936
91
92  - prevent a cast to integer warning on x64 builds in datatypes.c
93    also fixed some other type warnings
94    https://rt.cpan.org/Ticket/Display.html?id=30204
95
96  - some sub-directory tests depended on files produced by the parent
97    directory tests
98    http://rt.cpan.org/Ticket/Display.html?id=30203
99
100  - Imager::Font::Wrap doesn't correctly set savepos
101    thanks to Nikita Dedik and Eleneldil G. Arilou for reporting this.
102    http://rt.cpan.org/Ticket/Display.html?id=29771
103
104  - test 171 in t/t01introvert.t was failing on perls configured to
105    use long double.
106    http://rt.cpan.org/Ticket/Display.html?id=29413
107
108  - the code for the transform2() uminus operator was missing a break.
109    Added tests for better code coverage of the ops.
110    http://rt.cpan.org/Ticket/Display.html?id=29296
111
112  - the SGI RLE compression code could overflow its compression buffer
113    http://rt.cpan.org/Ticket/Display.html?id=30334
114
115  - the 32-bit output function used by the SGI code only handled values
116    under 0x10000.  This was most noticable when writing large RLE images.
117    http://rt.cpan.org/Ticket/Display.html?id=30335
118
119  - validate chan_count for chans == NULL for each of the i_gsamp()
120    implementations.
121    http://rt.cpan.org/Ticket/Display.html?id=28985
122
123  - attempt to work around the test failure at 
124    http://www.nntp.perl.org/group/perl.cpan.testers/2007/09/msg650810.html
125    http://rt.cpan.org/Ticket/Display.html?id=29562
126
127  - improve the error messages produced when attempting to read or write
128    an unknown image file format.
129    http://rt.cpan.org/Ticket/Display.html?id=30103
130
131  - improve the transform2() documentation
132    http://rt.cpan.org/Ticket/Display.html?id=29267
133
134  - correctly generate the author key in META.yml
135    http://rt.cpan.org/Ticket/Display.html?id=30377
136
137  - correctly blend a rotated (or matrix_transformed()) image when
138    performing interpolation in the presence of an alpha channel.
139    Also corrected the centring of the rotated image on the output
140    image.
141
142 Imager 0.60 - 30 August 2007
143 ===========
144
145  - Finished/rewrote Arnar's old SGI RGB file format support, so Imager
146    now has full SGI RGB image format, including RLE and 16-bit/sample
147    images.
148    https://rt.cpan.org/Ticket/Display.html?id=8666
149
150  - logging functions are now available in the API
151
152  - applied Gabriel Vasseur's patch
153    added documentation, further tests, and support for greyscale images
154    Obviously problems are my fault :)
155    https://rt.cpan.org/Ticket/Display.html?id=28142
156
157  - the mask for ICO/CUR images is now applied as an alpha channel to
158    the returned image.  For the old behaviour, supply ico_masked => 0
159    to read() or read_multi().  This should be less confusing when
160    using Imager as a general image processor.
161    https://rt.cpan.org/Ticket/Display.html?id=29001
162
163 Bug fixes:
164
165  - in some cases it's possible for giflib/libungif to return color 
166    indexes outside the range of colors defined by the image's palette.
167    We now expand the palette to match the indexes used.
168    Thanks to Gabriel Vasseur for reporting this.
169
170  - fixed various memory leaks that could occur when failing to read png,
171    jpeg, bmp or tga files.
172
173  - to avoid confusion, channels not present in the image are returned as
174    zero by getscanline().  This has no effect on the C level i_glin()
175    and i_glinf() API functions which continue to not set the unused
176    channels.
177
178  - the convert() method now returns an image of the same sample size as
179    the source image.
180    https://rt.cpan.org/Ticket/Display.html?id=28492
181
182  - remove repeated text in Imager::Files
183    http://rt.cpan.org/Ticket/Display.html?id=27589
184
185  - be even more explicit that scale() and friends don't modify the source
186    image, but return a new image.
187    http://rt.cpan.org/Ticket/Display.html?id=28570
188
189  - improve the error message from errstr() when you try to load a font
190    for which the driver hasn't been built in Imager.
191    http://rt.cpan.org/Ticket/Display.html?id=27571
192
193  - transparency is now enabled by default when writing GIF images
194    http://rt.cpan.org/Ticket/Display.html?id=27615
195
196  - Imager would not load on Windows 98
197    http://rt.cpan.org/Ticket/Display.html?id=27653
198
199 Imager 0.59 - 14 June 2007
200 ===========
201
202 Bug fixes:
203
204  - fixes a regression introduced by the fixes for RT 11972
205    http://rt.cpan.org/Ticket/Display.html?id=27546
206
207  - cropping outside the image would return an Imager object with
208    no low-level image object, instead of returning false.
209    Fixed by: Philip Gwyn (Leolo)
210    http://rt.cpan.org/Ticket/Display.html?id=27509
211
212 Imager 0.58 - 16 May 2007
213 ===========
214
215 No significant changes from 0.57_01.
216
217 Imager 0.57_01 - 11 May 2007
218 ==============
219
220  - added to_rgb16 to produce a 16-bit/sample version of an image
221
222  - improve freetype 1.x text output efficiency
223
224 Bug fixes:
225
226  - search another place for rgb.txt, and check all the places 
227    Imager::Color checks when deciding whether to skip testing it
228    http://rt.cpan.org/Ticket/Display.html?id=26064
229
230  - use a convolution kernel size based on the stddev rather than a
231    fixed size when performing a gaussian blur
232    http://rt.cpan.org/Ticket/Display.html?id=25645
233
234  - document the difference() method's mindist parameter, and debug it.
235
236  - put the Imager release number in the Inline::C generated code to
237    regenerate Inline code when a new release of Imager is installed.
238    http://rt.cpan.org/Ticket/Display.html?id=26278
239
240  - fix rendering on alpha channel images for the FreeType 1.x driver.
241    http://rt.cpan.org/Ticket/Display.html?id=11972
242
243  - fix rendering on alpha channel images for the T1lib driver.
244    http://rt.cpan.org/Ticket/Display.html?id=11972
245
246  - reworked library probing, we can now set more than one probe
247    function for a library.  Disabled the default (non-freetype-config)
248    library probe and added an extra probe function that searches for
249    both ft2build.h and whatever it includes, and adds -I as needed.
250    Hopefully this will fix build problems like
251    http://www.nntp.perl.org/group/perl.cpan.testers/2007/05/msg472281.html
252    http://rt.cpan.org/Ticket/Display.html?id=26086
253
254 Imager 0.57 - 30 Apr 2007
255 ===========
256
257 This is a maintenence release fixing a security issue in Imager.
258
259  - CRITICAL: a specially crafted compressed BMP file can cause a buffer
260    overflow in malloced memory.  There will be further discussion of
261    this issue in the ticket below.
262    http://rt.cpan.org/Ticket/Display.html?id=26811
263    CVE-2007-2459  CVE-2007-2413
264    The descriptions at cve.mitre.org varied in quality, please see the
265    ticket at rt.cpan.org for a more accurate description of the issue.
266
267 Imager 0.56 - 1 Apr 2007
268 ===========
269
270  - added support for reading 16-bit/sample PGM/PPM images
271
272  - added support for writing 16-bit/sample PGM/PPM images
273
274  - improved performance of reading PBM/PGM/PPM images
275
276  - added support for writing PBM images if the image is paletted and
277    contains only black and white
278
279  - added a new make_colors value - "mono"
280
281  - switched from the svn log Changes to a manual Changes to reduce
282    noise
283
284  - new sample code - samples/flasher.pl
285
286 Bug fixes:
287
288  - CRITICAL: the "Imager" typemap entry (not used by Imager itself)
289    was returning an image object with an extra reference, this
290    resulted in a memory leak.
291    http://rt.cpan.org/Ticket/Display.html?id=24992
292
293  - fix rendering on alpha channel images for the FreeType 2.x driver
294    http://rt.cpan.org/Ticket/Display.html?id=11972
295
296  - reading bmp files now consitently handles short reads.  You can now
297    supply a parameter to treat a short read as successful and set
298    i_incomplete
299    http://rt.cpan.org/Ticket/Display.html?id=8426
300
301  - previously, reading ASCII PBM files required spaces between samples,
302    even though the format doesn't require that
303
304  - improved documentation of the unsharpmask filter (I hope)
305    http://rt.cpan.org/Ticket/Display.html?id=25531
306
307  - force flushing of the output from i_tt_dump_names() and test output
308    in t/t35ttfont.t to prevent output from being mixed up.
309    https://rt.cpan.org/Ticket/Display.html?id=24859
310
311  - rewrite a conditional expression as an if() to hopefully work around
312    a bug in the pre-4.0 GCC Apple shipped with OS X 10.4.
313    https://rt.cpan.org/Ticket/Display.html?id=25561
314
315  - avoid Data::Dumper in regops.perl to support older releases of perl
316    https://rt.cpan.org/Ticket/Display.html?id=24391
317
318 Imager 0.55 - 16 Dec 2006
319 ===========
320
321 This is primarily a bug fix release.
322
323 Note: Test::More is now a pre-requisite for Imager and is no longer bundled.
324
325 There is one new feature:
326
327  - the Win32 font driver now supports UTF8 (RT 22166)
328    http://www.cpanforum.com/threads/3276
329    http://rt.cpan.org/Ticket/Display.html?id=22166
330
331 Several bugs were fixed:
332
333  - the string() method would not output the string "0"
334    http://rt.cpan.org/Public/Bug/Display.html?id=21770
335
336  - fills.c was failing to compile on Solaris 10 (compiler unknown)
337    http://rt.cpan.org/Public/Bug/Display.html?id=21944
338
339  - the gif_disposal and gif_user_input tags weren't being read from
340    the file correctly
341    http://rt.cpan.org/Public/Bug/Display.html?id=22192
342
343  - gif.c was failing to build under MSVC
344    http://rt.cpan.org/Ticket/Display.html?id=23922
345
346  - in some cases strings passed to the string() method were treated as
347    terminated by NUL (chr 0)
348    http://rt.cpan.org/Public/Bug/Display.html?id=21770
349
350  - on "MSWin32" perl builds we now link to -lzlib instead of -lz since
351    that's the default build name for zlib on Win32.
352    http://rt.cpan.org/Ticket/Display.html?id=23064
353
354  - search $Config{incpath} for headers too, which we should have been
355    doing all along.
356
357 Win32 font driver fixes:
358
359  - the global descent value from bounding box was the wrong sign
360    http://www.cpanforum.com/threads/3276
361
362  - if the first or last glyph overflowed the left or right side of the
363    advance width they would be clipped
364
365
366 Imager 0.54 - 14 Sep 2006
367 ===========
368
369 This is primarily a feature release:
370
371  - a new qtype value 'mixing' has been added to the scale()
372    method. This is faster than 'normal', slower than 'preview'. This
373    is based on the method used by pnmscale, and seems to produce less
374    blurry results than normal.
375    http://rt.cpan.org/Public/Bug/Display.html?id=20677
376
377  - the rubthrough() method can now render onto images with an alpha
378    channel.
379    http://rt.cpan.org/Ticket/Display.html?id=20678
380
381  - the read_multi() method now falls back to calling doing a single
382    image read via the read() method and write_multi() will now fall
383    back to calling write() if a single image is supplied. This means
384    you can simply call the read_multi() or write_multi() functions
385    without having to check if the type is formatted by that method.
386    http://rt.cpan.org/Ticket/Display.html?id=19457
387    http://rt.cpan.org/Ticket/Display.html?id=19458
388
389  - the GIF loop extension can now be written. If you don't have
390    libungif/giflib 4.1.4 (or some distribution's bugfixed equivalent) you
391    should upgrade.
392    http://rt.cpan.org/Ticket/Display.html?id=21185
393
394  - getscanline() and setscanline() can now read/write palette index
395    based data from/to the image for paletted images, by setting type to
396    'index'.
397    http://rt.cpan.org/Ticket/Display.html?id=20338
398
399  - we no longer hassle you to disable GIF support
400    http://rt.cpan.org/Ticket/Display.html?id=20687
401
402  - minor documentation fixes
403
404
405 Imager 0.53 - 26 Jul 2006
406 ===========
407
408 This is a bugfix release.
409
410 Some test code was left in a code path not covered by the test
411 suite. A test was added to cover this code path and the test code was
412 removed.
413 http://rt.cpan.org/Public/Bug/Display.html?id=20705
414
415
416 Imager 0.52 - 25 Jul 2006
417 ===========
418
419 This is primarily a feature release, but contains a fair few bug
420 fixes, new features:
421
422  - ability to read and write MS Windows ICO and CUR files
423
424  - you can now add file format plugins to support new file formats
425
426  - add POD coverage tests
427
428  - setcolors() and addcolors() now accept color names and so on
429    instead of requiring Imager::Color objects.
430    http://rt.cpan.org/Ticket/Display.html?id=20056
431
432  - flood_fill() can now fill to a specified border color instead of
433    just to the area the same color as the seed.
434    http://rt.cpan.org/Ticket/Display.html?id=19618
435
436
437 Bug fixes:
438
439  - bounding_box for the T1 driver wasn't converting UTF8 to ascii when
440    calculating the advance width.
441    http://rt.cpan.org/Public/Bug/Display.html?id=20554
442
443  - bounding_box for the T1 driver wasn't including leading and
444    trailing spaces in the bounding box as the other drivers did, it also
445    produced strange results for empty strings or strings containing only
446    spaces
447
448  - when reading CMYK jpeg images they were being transferred to the
449    image object as is, producing a four channel image. It only looked ok
450    due to an old still unfixed Photoshop bug. We now convert from the
451    inverted CMYK that photoshop (and Corel for example) produce into RGB.
452    http://rt.cpan.org/Ticket/Display.html?id=20416
453
454  - reading a CYMK TIFF would result in a 4 channel image, reading any
455    image with more than 4 channels (eg. RGB with 2 alpha channels) would
456    result in an error.
457    http://rt.cpan.org/Ticket/Display.html?id=20415
458
459  - added /usr/local/include to the default include search path, since
460    we were already searching /usr/local/lib for libraries.
461
462 And various minor fixes and documentation updates.
463
464
465 Imager 0.51 - 23 Apr 2006
466 ===========
467
468  - fix a validation bug when processing JPEG EXIF data that can cause
469    a crash
470    http://rt.cpan.org/Public/Bug/Display.html?id=18496
471
472  - fix mis-processing of the src_maxx and src_maxy parameters of the
473    paste() method
474    http://rt.cpan.org/Public/Bug/Display.html?id=18712
475
476  - fix a problem in Imager's "smart" handling of the color parameter
477    to various methods.
478    http://rt.cpan.org/Public/Bug/Display.html?id=18561
479
480
481 Imager 0.50 - 29 Mar 2006
482 ===========
483
484  - CRITICAL: fixes a segmentation fault from attempting to write a 2
485    or 4 channel image to jpeg or a 2 channel image to tga where the
486    output is an in-memeory buffer.
487    http://rt.cpan.org/Public/Bug/Display.html?id=18397
488
489  - fixes an incorrect pointer parameter in the PNG code
490    http://rt.cpan.org/Public/Bug/Display.html?id=18051
491
492  - skip Inline::C tests when building in a directory with spaces
493    http://rt.cpan.org/Public/Bug/Display.html?id=18049