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