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