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