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