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