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