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