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