1 Imager release history. Older releases can be found in Changes.old
3 Imager 0.67 - unreleased
8 - correct documentation of default of raw image interleave read
10 https://rt.cpan.org/Ticket/Display.html?id=42074
12 - add raw_ prefix to raw read parameters, though the original names
15 - fail the read if an invalid raw_interleave parameter is supplied
17 - warn if no interleave or raw_interleave parameter is supplied,
18 since the documented default was wrong, and incompatible with the
21 - for reading raw images, if raw_storechannels > raw_datachannels,
22 set the extra channels in the image to 0
24 - when probing for executables like freetype-config, search for .bat
25 and .cmd on MSWin32, as well as .exe.
26 https://rt.cpan.org/Ticket/Display.html?id=49275
28 - re-work the external libraries section of README:
29 - list Debian and Redhat package names for each library
33 - use the new EU::MM META_MERGE facility instead of generating
35 https://rt.cpan.org/Ticket/Display.html?id=47888
37 - use Devel::CheckLib (bundled, modified) to check which release of
38 libtiff is installed and reject 3.9.0
39 http://bugzilla.maptools.org/show_bug.cgi?id=2088
40 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543079
42 Imager 0.67 - 12 Dec 2008
47 - fix a packaging error
49 Imager 0.66 - 12 Dec 2008
52 - 24-bit color .ICO/.CUR files can now be read.
56 - an optimization skipping 0 src alpha values could cause the
57 rubthrough() to read past the end of a buffer.
58 http://www.nntp.perl.org/group/perl.cpan.testers/2008/05/msg1509184.html
60 - corrected a reference leak where writing GIFs would leak memory.
61 This could also happen calling to_paletted().
62 Also documented the underlying long existing feature where the
63 colors parameter is filled with the generated color table and added
65 http://rt.cpan.org/Ticket/Display.html?id=41028
67 - write out the image size in bytes field of a BMP correctly.
68 http://rt.cpan.org/Ticket/Display.html?id=41406
70 - add limited tests for Imager::ExtUtils
72 - make Imager::ExtUtils->includes use an absolute path, since
73 a relative path could cause failures using Inline::C.
74 http://rt.cpan.org/Ticket/Display.html?id=37353
76 - re-arrange the POD for Imager::Font::BBox:
77 - mark total_width(), pos_width(), end_offset() obsolete, since
78 they're mostly for backwards compatibility
79 - group width methods and height methods
80 https://rt.cpan.org/Ticket/Display.html?id=39999
82 Imager 0.65 - 20 May 2008
87 - In some cases when an error occurs reading those parts of a JPEG
88 file after the image the scan-line buffer could be freed a second
89 time. In cases where the the error occured while reading the image
90 data it's possible that the buffer could have leaked.
91 Thanks to Gabriel Vasseur for reporting this and help in tracking
94 - the gif_screen_height tag was overriding the screen width and being
95 ignored for the screen height when present.
96 https://rt.cpan.org/Public/Bug/Display.html?id=35568
98 Imager 0.64 - 23 April 2008
101 This is a bug fix release. This includes a fix for a possible
106 - Possible security issue: The floating point sample path for image
107 based fills had a buffer overflow. This would overwrite the end of
108 a malloc()ed buffer with double precision floats.
109 http://rt.cpan.org/Ticket/Display.html?id=35324
112 - check that the result of fileno($fh) is defined rather than simply
113 true when read() or write() is supplied with an fh parameter.
114 http://rt.cpan.org/Ticket/Display.html?id=35139
116 - i_scale_axis() wasn't checking the result of i_img_new_ch()
117 resulting in a SIGSEGV when attempting to scale an image to a size
118 too large to fit in memory. This is a NULL pointer access issue,
119 not a buffer overflow.
120 Added a check for the failure.
121 scale_calculate() (and hence scale()) will now fail if any of the
122 scale size parameters are a reference.
123 http://rt.cpan.org/Ticket/Display.html?id=35172
125 - Regression: filling a greyscale image with a hatch used the wrong
126 color channels from the supplied fg/bg colors.
127 https://rt.cpan.org/Ticket/Display.html?id=35278
129 - fixed a related problem for image fills.
131 Imager 0.63 - 7 April 2008
134 This release primarily contains changes to improve ease of use -
135 rather than you having to convert images to the appropriate number of
136 channels, Imager handles it internally. How to handle drawing colors
137 and the default combine mode is a thornier problem left for some other
140 - the font libraries are now only initialized when needed.
141 http://rt.cpan.org/Ticket/Display.html?id=28825
143 - moved the imtoc.perl code into Imager::Preprocess
145 - paste() and rubthrough() now adapt the source image data to the
146 destination, so you can now safely paste/rubthrough from greyscale
147 images to color images or back, or from alpha channel images to
148 noalpha channels or back.
149 https://rt.cpan.org/Ticket/Display.html?id=30908
151 - rubthrough() now falls back to pasting when the source doesn't have
152 an alpha channel. This effectively treats the source as having a
153 max alpha channel, the right thing to do.
154 http://rt.cpan.org/Ticket/Display.html?id=29944
156 - re-worked most of the area filling code to use a common set of
157 functions when filling.
158 Corrected normal combine mode.
159 Rewrote most of the combine modes to match the way the SVG draft
160 defines them with respect to a translucent source and destination.
161 Added tests for translucent source and destination.
162 Added tests to check 8-bit/sample and double/sample combines work
164 https://rt.cpan.org/Ticket/Display.html?id=29879
166 - writing a 2 or 4 channel image to a JPEG file will now write that
167 image as if composited against a background, black by default,
168 overridable with the i_background tag/parameter.
169 https://rt.cpan.org/Ticket/Display.html?id=29876
171 - writing a 2 or 4 channel image to a PGM/PPM file will now write
172 that image as if composited against a background, black by default,
173 overridable with the i_background tag/parameter.
174 http://rt.cpan.org/Ticket/Display.html?id=30074
176 - writing a 2 or 4 channel image to a BMP file will now write that
177 image as if composited against a background, black by default,
178 overridable with the i_background tag/parameter.
179 http://rt.cpan.org/Ticket/Display.html?id=30075
183 - Imager::Matrix2d->translate() now only requires one of the x or y
185 http://rt.cpan.org/Ticket/Display.html?id=29937
187 - mixing qtype scaling now sets all channels of a pixel to zero if
188 the pixel has zero coverage (zero alpha). This should produce more
189 compressible output files.
190 http://rt.cpan.org/Ticket/Display.html?id=32324
192 - removed the pointless #! line from lib/Imager/Font/Wrap.pm
194 https://bugzilla.redhat.com/show_bug.cgi?id=166254
195 I'm not changing the #! lines of the sample code, since it's sample
196 code, not intended for installation.
197 http://rt.cpan.org/Ticket/Display.html?id=33408
199 - some TGA images weren't being detected correctly as TGA images
200 https://rt.cpan.org/Ticket/Display.html?id=32925
202 - handling of the left-over bit for 16-bit/pixel TGA images has been
203 changed to match the behaviour of the GIMP. Previously the bit
204 being set was treated as an opaque pixel, but one user reported a
205 problem with loading such an image. I haven't been able to find any
206 tools beyond the GIMP that handle alpha-channel 16-bit TGAs, so
207 I'll match it's behaviour. See issue 114913 in the GIMP's
209 http://rt.cpan.org/Ticket/Display.html?id=32926
211 Imager 0.62 - 10 December 2007
214 - Makefile.PL now expands ~/path supplied to --incpath or --libpath
215 to /path under your home directory.
216 http://rt.cpan.org/Ticket/Display.html?id=29484
218 - the old dynaload code used Mach API functions to load dynamic
219 libraries on Mac OS X. These APIs have been deprecated in OS X
220 10.5 and were causing some build problems.
221 So henceforth Imager uses the dlopen() family of functions, and you
222 will need version 10.3 or later of OS X.
224 - added the det() function to the transform2() engine.
225 added the sample quad_to_square.pl
226 Courtesy Richard Fairhurst.
227 http://rt.cpan.org/Ticket/Display.html?id=31244
231 - samples/gifscale.pl sourced the base value for gif_top from
233 Thanks to Eleneldil G. Arilou for pointing this out.
235 - t/t82inline.t no longer loads B at runtime, to work around a bug
236 in some 5.005_0[45] installations.
237 http://rt.cpan.org/Ticket/Display.html?id=30508
239 - work around Module::Depends::Intrusive bug #21229
240 http://rt.cpan.org/Ticket/Display.html?id=30520
242 - the hardinvert filter no-longer inverts the alpha channel.
243 http://rt.cpan.org/Ticket/Display.html?id=30002
245 - the hardinvert filter now supports large samples
247 Imager 0.61_02 - 28 November 2007
250 - major TIFF support re-work
251 http://rt.cpan.org/Ticket/Display.html?id=20329
253 - added a C level image interface for accessing samples from 1-32
254 bits, exposed this at the perl level in getsamples()
256 - the conv filter now works at floating point precision for high bit
259 - added is_bilevel method to test whether an image should be written as
260 a bilevel image if the image format supports it.
262 - added -log-stderr as an Imager import list option
264 - added some important types to Imager::APIRef
266 - added test_image_double() to Imager::Test
270 - Imager::Fountain couldn't read GIMP gradient files with 10 or more
273 - the scale() method with qtype mixing now handles images with an
274 alpha channel correctly.
276 - fixed a broken link from the "animated GIF" entry in the concept index.
277 Thanks to Slaven Rezic.
278 http://rt.cpan.org/Ticket/Display.html?id=30889
280 - on some perl's the infix expression parser test would fail due to
281 actions in the grammar returning false. Made sure all actions return
283 Thanks to Richard Fairhurst for spending a lot of time in tracking
285 http://rt.cpan.org/Public/Bug/Display.html?id=29562
287 Imager 0.61 - 5 November 2007
290 - added samples/gifscale.pl, which adjusts the screen size/position tags
291 when scaling an animated gif
292 http://rt.cpan.org/Ticket/Display.html?id=27591
296 - correct handling of sz in matrix_transform() - this should allow
297 perspective type transformations to work now.
298 http://rt.cpan.org/Ticket/Display.html?id=29936
300 - prevent a cast to integer warning on x64 builds in datatypes.c
301 also fixed some other type warnings
302 https://rt.cpan.org/Ticket/Display.html?id=30204
304 - some sub-directory tests depended on files produced by the parent
306 http://rt.cpan.org/Ticket/Display.html?id=30203
308 - Imager::Font::Wrap doesn't correctly set savepos
309 thanks to Nikita Dedik and Eleneldil G. Arilou for reporting this.
310 http://rt.cpan.org/Ticket/Display.html?id=29771
312 - test 171 in t/t01introvert.t was failing on perls configured to
314 http://rt.cpan.org/Ticket/Display.html?id=29413
316 - the code for the transform2() uminus operator was missing a break.
317 Added tests for better code coverage of the ops.
318 http://rt.cpan.org/Ticket/Display.html?id=29296
320 - the SGI RLE compression code could overflow its compression buffer
321 http://rt.cpan.org/Ticket/Display.html?id=30334
323 - the 32-bit output function used by the SGI code only handled values
324 under 0x10000. This was most noticable when writing large RLE images.
325 http://rt.cpan.org/Ticket/Display.html?id=30335
327 - validate chan_count for chans == NULL for each of the i_gsamp()
329 http://rt.cpan.org/Ticket/Display.html?id=28985
331 - attempt to work around the test failure at
332 http://www.nntp.perl.org/group/perl.cpan.testers/2007/09/msg650810.html
333 http://rt.cpan.org/Ticket/Display.html?id=29562
335 - improve the error messages produced when attempting to read or write
336 an unknown image file format.
337 http://rt.cpan.org/Ticket/Display.html?id=30103
339 - improve the transform2() documentation
340 http://rt.cpan.org/Ticket/Display.html?id=29267
342 - correctly generate the author key in META.yml
343 http://rt.cpan.org/Ticket/Display.html?id=30377
345 - correctly blend a rotated (or matrix_transformed()) image when
346 performing interpolation in the presence of an alpha channel.
347 Also corrected the centring of the rotated image on the output
350 Imager 0.60 - 30 August 2007
353 - Finished/rewrote Arnar's old SGI RGB file format support, so Imager
354 now has full SGI RGB image format, including RLE and 16-bit/sample
356 https://rt.cpan.org/Ticket/Display.html?id=8666
358 - logging functions are now available in the API
360 - applied Gabriel Vasseur's patch
361 added documentation, further tests, and support for greyscale images
362 Obviously problems are my fault :)
363 https://rt.cpan.org/Ticket/Display.html?id=28142
365 - the mask for ICO/CUR images is now applied as an alpha channel to
366 the returned image. For the old behaviour, supply ico_masked => 0
367 to read() or read_multi(). This should be less confusing when
368 using Imager as a general image processor.
369 https://rt.cpan.org/Ticket/Display.html?id=29001
373 - in some cases it's possible for giflib/libungif to return color
374 indexes outside the range of colors defined by the image's palette.
375 We now expand the palette to match the indexes used.
376 Thanks to Gabriel Vasseur for reporting this.
378 - fixed various memory leaks that could occur when failing to read png,
379 jpeg, bmp or tga files.
381 - to avoid confusion, channels not present in the image are returned as
382 zero by getscanline(). This has no effect on the C level i_glin()
383 and i_glinf() API functions which continue to not set the unused
386 - the convert() method now returns an image of the same sample size as
388 https://rt.cpan.org/Ticket/Display.html?id=28492
390 - remove repeated text in Imager::Files
391 http://rt.cpan.org/Ticket/Display.html?id=27589
393 - be even more explicit that scale() and friends don't modify the source
394 image, but return a new image.
395 http://rt.cpan.org/Ticket/Display.html?id=28570
397 - improve the error message from errstr() when you try to load a font
398 for which the driver hasn't been built in Imager.
399 http://rt.cpan.org/Ticket/Display.html?id=27571
401 - transparency is now enabled by default when writing GIF images
402 http://rt.cpan.org/Ticket/Display.html?id=27615
404 - Imager would not load on Windows 98
405 http://rt.cpan.org/Ticket/Display.html?id=27653
407 Imager 0.59 - 14 June 2007
412 - fixes a regression introduced by the fixes for RT 11972
413 http://rt.cpan.org/Ticket/Display.html?id=27546
415 - cropping outside the image would return an Imager object with
416 no low-level image object, instead of returning false.
417 Fixed by: Philip Gwyn (Leolo)
418 http://rt.cpan.org/Ticket/Display.html?id=27509
420 Imager 0.58 - 16 May 2007
423 No significant changes from 0.57_01.
425 Imager 0.57_01 - 11 May 2007
428 - added to_rgb16 to produce a 16-bit/sample version of an image
430 - improve freetype 1.x text output efficiency
434 - search another place for rgb.txt, and check all the places
435 Imager::Color checks when deciding whether to skip testing it
436 http://rt.cpan.org/Ticket/Display.html?id=26064
438 - use a convolution kernel size based on the stddev rather than a
439 fixed size when performing a gaussian blur
440 http://rt.cpan.org/Ticket/Display.html?id=25645
442 - document the difference() method's mindist parameter, and debug it.
444 - put the Imager release number in the Inline::C generated code to
445 regenerate Inline code when a new release of Imager is installed.
446 http://rt.cpan.org/Ticket/Display.html?id=26278
448 - fix rendering on alpha channel images for the FreeType 1.x driver.
449 http://rt.cpan.org/Ticket/Display.html?id=11972
451 - fix rendering on alpha channel images for the T1lib driver.
452 http://rt.cpan.org/Ticket/Display.html?id=11972
454 - reworked library probing, we can now set more than one probe
455 function for a library. Disabled the default (non-freetype-config)
456 library probe and added an extra probe function that searches for
457 both ft2build.h and whatever it includes, and adds -I as needed.
458 Hopefully this will fix build problems like
459 http://www.nntp.perl.org/group/perl.cpan.testers/2007/05/msg472281.html
460 http://rt.cpan.org/Ticket/Display.html?id=26086
462 Imager 0.57 - 30 Apr 2007
465 This is a maintenence release fixing a security issue in Imager.
467 - CRITICAL: a specially crafted compressed BMP file can cause a buffer
468 overflow in malloced memory. There will be further discussion of
469 this issue in the ticket below.
470 http://rt.cpan.org/Ticket/Display.html?id=26811
471 CVE-2007-2459 CVE-2007-2413
472 The descriptions at cve.mitre.org varied in quality, please see the
473 ticket at rt.cpan.org for a more accurate description of the issue.
475 Imager 0.56 - 1 Apr 2007
478 - added support for reading 16-bit/sample PGM/PPM images
480 - added support for writing 16-bit/sample PGM/PPM images
482 - improved performance of reading PBM/PGM/PPM images
484 - added support for writing PBM images if the image is paletted and
485 contains only black and white
487 - added a new make_colors value - "mono"
489 - switched from the svn log Changes to a manual Changes to reduce
492 - new sample code - samples/flasher.pl
496 - CRITICAL: the "Imager" typemap entry (not used by Imager itself)
497 was returning an image object with an extra reference, this
498 resulted in a memory leak.
499 http://rt.cpan.org/Ticket/Display.html?id=24992
501 - fix rendering on alpha channel images for the FreeType 2.x driver
502 http://rt.cpan.org/Ticket/Display.html?id=11972
504 - reading bmp files now consitently handles short reads. You can now
505 supply a parameter to treat a short read as successful and set
507 http://rt.cpan.org/Ticket/Display.html?id=8426
509 - previously, reading ASCII PBM files required spaces between samples,
510 even though the format doesn't require that
512 - improved documentation of the unsharpmask filter (I hope)
513 http://rt.cpan.org/Ticket/Display.html?id=25531
515 - force flushing of the output from i_tt_dump_names() and test output
516 in t/t35ttfont.t to prevent output from being mixed up.
517 https://rt.cpan.org/Ticket/Display.html?id=24859
519 - rewrite a conditional expression as an if() to hopefully work around
520 a bug in the pre-4.0 GCC Apple shipped with OS X 10.4.
521 https://rt.cpan.org/Ticket/Display.html?id=25561
523 - avoid Data::Dumper in regops.perl to support older releases of perl
524 https://rt.cpan.org/Ticket/Display.html?id=24391
526 Imager 0.55 - 16 Dec 2006
529 This is primarily a bug fix release.
531 Note: Test::More is now a pre-requisite for Imager and is no longer bundled.
533 There is one new feature:
535 - the Win32 font driver now supports UTF8 (RT 22166)
536 http://www.cpanforum.com/threads/3276
537 http://rt.cpan.org/Ticket/Display.html?id=22166
539 Several bugs were fixed:
541 - the string() method would not output the string "0"
542 http://rt.cpan.org/Public/Bug/Display.html?id=21770
544 - fills.c was failing to compile on Solaris 10 (compiler unknown)
545 http://rt.cpan.org/Public/Bug/Display.html?id=21944
547 - the gif_disposal and gif_user_input tags weren't being read from
549 http://rt.cpan.org/Public/Bug/Display.html?id=22192
551 - gif.c was failing to build under MSVC
552 http://rt.cpan.org/Ticket/Display.html?id=23922
554 - in some cases strings passed to the string() method were treated as
555 terminated by NUL (chr 0)
556 http://rt.cpan.org/Public/Bug/Display.html?id=21770
558 - on "MSWin32" perl builds we now link to -lzlib instead of -lz since
559 that's the default build name for zlib on Win32.
560 http://rt.cpan.org/Ticket/Display.html?id=23064
562 - search $Config{incpath} for headers too, which we should have been
565 Win32 font driver fixes:
567 - the global descent value from bounding box was the wrong sign
568 http://www.cpanforum.com/threads/3276
570 - if the first or last glyph overflowed the left or right side of the
571 advance width they would be clipped
574 Imager 0.54 - 14 Sep 2006
577 This is primarily a feature release:
579 - a new qtype value 'mixing' has been added to the scale()
580 method. This is faster than 'normal', slower than 'preview'. This
581 is based on the method used by pnmscale, and seems to produce less
582 blurry results than normal.
583 http://rt.cpan.org/Public/Bug/Display.html?id=20677
585 - the rubthrough() method can now render onto images with an alpha
587 http://rt.cpan.org/Ticket/Display.html?id=20678
589 - the read_multi() method now falls back to calling doing a single
590 image read via the read() method and write_multi() will now fall
591 back to calling write() if a single image is supplied. This means
592 you can simply call the read_multi() or write_multi() functions
593 without having to check if the type is formatted by that method.
594 http://rt.cpan.org/Ticket/Display.html?id=19457
595 http://rt.cpan.org/Ticket/Display.html?id=19458
597 - the GIF loop extension can now be written. If you don't have
598 libungif/giflib 4.1.4 (or some distribution's bugfixed equivalent) you
600 http://rt.cpan.org/Ticket/Display.html?id=21185
602 - getscanline() and setscanline() can now read/write palette index
603 based data from/to the image for paletted images, by setting type to
605 http://rt.cpan.org/Ticket/Display.html?id=20338
607 - we no longer hassle you to disable GIF support
608 http://rt.cpan.org/Ticket/Display.html?id=20687
610 - minor documentation fixes
613 Imager 0.53 - 26 Jul 2006
616 This is a bugfix release.
618 Some test code was left in a code path not covered by the test
619 suite. A test was added to cover this code path and the test code was
621 http://rt.cpan.org/Public/Bug/Display.html?id=20705
624 Imager 0.52 - 25 Jul 2006
627 This is primarily a feature release, but contains a fair few bug
630 - ability to read and write MS Windows ICO and CUR files
632 - you can now add file format plugins to support new file formats
634 - add POD coverage tests
636 - setcolors() and addcolors() now accept color names and so on
637 instead of requiring Imager::Color objects.
638 http://rt.cpan.org/Ticket/Display.html?id=20056
640 - flood_fill() can now fill to a specified border color instead of
641 just to the area the same color as the seed.
642 http://rt.cpan.org/Ticket/Display.html?id=19618
647 - bounding_box for the T1 driver wasn't converting UTF8 to ascii when
648 calculating the advance width.
649 http://rt.cpan.org/Public/Bug/Display.html?id=20554
651 - bounding_box for the T1 driver wasn't including leading and
652 trailing spaces in the bounding box as the other drivers did, it also
653 produced strange results for empty strings or strings containing only
656 - when reading CMYK jpeg images they were being transferred to the
657 image object as is, producing a four channel image. It only looked ok
658 due to an old still unfixed Photoshop bug. We now convert from the
659 inverted CMYK that photoshop (and Corel for example) produce into RGB.
660 http://rt.cpan.org/Ticket/Display.html?id=20416
662 - reading a CYMK TIFF would result in a 4 channel image, reading any
663 image with more than 4 channels (eg. RGB with 2 alpha channels) would
665 http://rt.cpan.org/Ticket/Display.html?id=20415
667 - added /usr/local/include to the default include search path, since
668 we were already searching /usr/local/lib for libraries.
670 And various minor fixes and documentation updates.
673 Imager 0.51 - 23 Apr 2006
676 - fix a validation bug when processing JPEG EXIF data that can cause
678 http://rt.cpan.org/Public/Bug/Display.html?id=18496
680 - fix mis-processing of the src_maxx and src_maxy parameters of the
682 http://rt.cpan.org/Public/Bug/Display.html?id=18712
684 - fix a problem in Imager's "smart" handling of the color parameter
686 http://rt.cpan.org/Public/Bug/Display.html?id=18561
689 Imager 0.50 - 29 Mar 2006
692 - CRITICAL: fixes a segmentation fault from attempting to write a 2
693 or 4 channel image to jpeg or a 2 channel image to tga where the
694 output is an in-memeory buffer.
695 http://rt.cpan.org/Public/Bug/Display.html?id=18397
697 - fixes an incorrect pointer parameter in the PNG code
698 http://rt.cpan.org/Public/Bug/Display.html?id=18051
700 - skip Inline::C tests when building in a directory with spaces
701 http://rt.cpan.org/Public/Bug/Display.html?id=18049