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