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