fix a dumb error in Imager::Probe
[imager.git] / Changes
CommitLineData
7623d340
TC
1Imager release history. Older releases can be found in Changes.old
2
a9fa5463
TC
3 - add png_compression_level tag for writing PNG files.
4
5 - avoid flooring a second time in matrix transform interpolation.
6 https://rt.cpan.org/Ticket/Display.html?id=124001
7
434c2338
TC
8 - produce v2 metadata.
9 Includes change from the ticket and updates to sub-modules.
10 https://rt.cpan.org/Ticket/Display.html?id=127216
11
d1d8320e
TC
12 - improve error reporting for the polygon() method
13
ac3e79fb
TC
14Imager 1.006 - 26 Aug 2017
15============
16
ba7ddbae
TC
17 - the internal i_errors() function now correctly allocates the stack
18 space needed for its result.
19 https://rt.perl.org/rt3/Ticket/Display.html?id=131938
20
21 - t/100-base/020-color.t now uses Imager::Test's test functions
22 instead of its own.
23 https://rt.cpan.org/Ticket/Display.html?id=111993
24
344dda51
TC
25 - write_multi() now returns an error result (a false value) if called
26 with a non-(Imager image object). Previously it would typically
27 crash.
28 https://rt.cpan.org/Ticket/Display.html?id=117878
29
30 - improve the documentation of the jpegquality parameter when
31 writing JPEG files.
32
33 - add code to mitigate CVE-2016-1238, Imager will no longer search the
34 default current directory entry in @INC when searching for file
35 format support modules.
36
c5e09af4
TC
37Imager 1.005 - 16 Apr 2016
38============
39
40It's now been ten years since I switched to the new Changes file in
41release 0.55.
42
cd0109d8
TC
43 - revert the ivdformat probes, they don't work as is and trying to
44 fix them is too much work for now.
45
6f1cbfed
TC
46Imager 1.004_004 - 15 Apr 2016
47================
48
9c45cc49
TC
49 - test that the ivdformat from Config is correct and look for a valid
50 one if it isn't.
51 For the strange Win32 failures.
52
53 - fix a copy and paste error in pod in samples/samp-form.cgi
54
5cea6ea1
TC
55Imager 1.004_003 - 23 Mar 2016
56================
57
bd2d657d
TC
58 - add some extra error reporting to the I/O layers tests, this might
59 help catch a failure seen on Win32.
60 http://cpantesters.org/cpan/report/99781689-6bf5-1014-897a-75cb4eee1325
61
2f4c4539
TC
62Imager 1.004_002 - 20 Mar 2016
63================
64
735b3e7b
TC
65 - don't use the seek() method on opened() handles in
66 t/200-file/400-basic.t. In older versions of perl such handles are
67 only IO::Handle objects, not IO::File, and don't have a seek()
68 method.
69
d47f1478
TC
70Imager 1.004_001 - 16 Mar 2016 (Birthday release - but not my birthday)
71================
72
08914ed1
TC
73 - re-work the t/200-file/400-basic.t to correctly handle failures
74 It's custom ok() function didn't have a prototype and didn't use scalar().
75 This caused ok() to use the note instead of the value being tested when
76 the method called returned an empty list. For an example of the problem
e6226ce5 77 caused see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812093
08914ed1 78
a2791e47
TC
79 - remove some noise from when Imager tried to work with bugs in old
80 versions of giflib. I can't do much about the new bugs.
08914ed1 81
e6226ce5
TC
82 - the new autolevels filter (Imager 0.99) used an integer for the
83 sample scaling factor which caused the top output level to be too
84 low (depending on the scaling required.) It now uses a double.
08914ed1
TC
85 https://rt.cpan.org/Ticket/Display.html?id=111871
86
e6226ce5 87 - the new autolevels filter had off-by-one errors calculating the
08914ed1
TC
88 minimum and maximum luminance from the histogram. This slightly
89 reduced the contrast of the output image.
90 https://rt.cpan.org/Ticket/Display.html?id=111871
91
92 - the new autolevels filter now uses a lookup table for 8-bit images
93 to avoid a floating point multiply for each sample.
94 https://rt.cpan.org/Ticket/Display.html?id=111871
95
e6226ce5
TC
96 - fixed several memory leaks detected by valgrind:
97
98 - addcolors() leaked the temporary array of colors supplied to the
99 internal API
100
101 - make_palette() leaked the temporary image array (not the images
102 themselves) passed to the internal API.
103
104 - combine()/i_combine() leaked its working row buffers
105
106 - getcolorusage()/i_get_anonymous_color_histo() leaked the sample
107 buffer if there were too many colors
108
109 - getcolorcount()/i_count_colors() leaked the sample buffer if
110 there were too many colors.
111
112 - the nearest_color filter (undocumented until I find a use for it)
113 leaked both temporaries passed to the API and internal buffers
114
a2791e47
TC
115 - the internal process of upgrading a paletted image to a direct
116 color image would leak a context object reference count.
117
118 - a write failure when writing to a GIF file could leak memory.
119
120 - failing to write to a 1-bit/pixel ICO image could leak memory.
121
122 - Imager no longer deliberately leaks the context object from the
123 initial thread. This was done to ensure there was always a context
124 object available, but the code that needed that now handles the
125 lack correctly,
126
e6226ce5
TC
127 - fixed some uninitialized memory usage detected by valgrind:
128
129 - rotate()/i_rotate_exact()/i_rotate_exact_bg()/i_matrix_transform()/
130 i_matrix_transform_bg() didn't initialize a working color value
131 if there was zero pixel coverage.
132
133 - i_ft2_cp() didn't initialize the complete color when producing an
134 intermediate image. This caused uninitialized value usage when
135 logging the color.
08914ed1 136
396eb238
TC
137Imager 1.004 - 8 Nov 2015
138============
139
5ebfb369
TC
140 - Imager::Color::Table is now pre-loaded by the preload() method.
141 https://rt.cpan.org/Ticket/Display.html?id=104896
142
143 - fix an assertion triggered under perl 5.23.4.
144 Thanks to A. Sinan Unur for the report and the patch.
145
7b638aba
TC
146 - Imager->new can now be used to read raw image files.
147 https://rt.cpan.org/Ticket/Display.html?id=106836
f7160b21 148 Thanks to Richard Kelsch for reporting this.
7b638aba
TC
149
150 - deal with output changes from Pod::Spell
151 https://github.com/perl-pod/Pod-Spell/issues/21
152
0d1baac8
TC
153Imager 1.003 - 12 May 2015
154============
155
0fda3cfd
TC
156 - update 1.002 release notes to include the center change for filled
157 circle drawing.
158
159 - flood_fill() would escape beyond a 4-connected space under some
160 circumstances.
161 Added many more flood_fill() tests.
162 https://rt.cpan.org/Ticket/Display.html?id=103786
163
647a47c9
TC
164Imager 1.002 - 3 Apr 2015
165============
166
334b8922
TC
167 - drawing anti-aliased filled circles is now 10 to 50 times faster
168 depending on the size of the circle.
0fda3cfd
TC
169 This also changed the center from being the center of the pixel to
170 being the top left of the pixel to match the filled arcs drawn by
171 arc().
334b8922
TC
172 https://rt.cpan.org/Ticket/Display.html?id=101682
173
174 - enhancements to polygon filling:
175
176 - added a mode parameter to control how overlapping regions behave
177
178 - added a polypolygon() method to fill more than one polygon at a
179 time
180
181 - polygon filling is now exposed through the API.
182
45c8e262
TC
183 - added colormodel(), alphachannel() and colorchannels() methods.
184 These were added for two reasons:
185
186 - a future version of Imager may allow the number of channels in
187 an image to not directly represent the color model of an image.
188 eg. a greyscale TIFF image with multiple alpha channels.
189
190 - a future version of Imager may allow an image to be read without
191 translation, for example a TIFF file that contains measurements
0fda3cfd 192 from an instrument. Currently Imager transforms the samples into
d96c4de8 193 the range 0.0 ... 1.0 which may means the user has to translate
45c8e262
TC
194 the value back.
195
196 An untranslated image would be unusable as image data, so
197 colormodel() would return "unknown" in this case.
198
199 Similarly a CMYK image might be returned as an "unknown" color
200 model image, if the caller chooses to disable translation to
201 RGB.
202
e301836a
TC
203Imager 1.001 - 2 Jan 2015
204============
205
aca60e01
TC
206 - both Imager and perl 5.21.3 define my_strerror(), prevent a conflict
207 Thanks to Slaven Rezic for the report and the patch.
208 https://rt.cpan.org/Public/Bug/Display.html?id=98234
209
0df260f6
TC
210 - GIF: clean-up a test file if the test for the giflib 4.2.0 file
211 version bug fails.
212
213 - fix Imager::Matrix2d::rotate()'s centre point handling
214 https://rt.cpan.org/Public/Bug/Display.html?id=99959
215
216 - ICO: don't apply the icon mask to images with an alpha channel by
217 default
218 https://rt.cpan.org/Public/Bug/Display.html?id=99507
219
56605f3f
TC
220 - make verbose probing output more verbose
221
f74bd978
TC
222 - use Imager::Probe to probe for freetype 1.x
223 https://rt.cpan.org/Ticket/Display.html?id=100502
224
225 - The --enable and --disable parameters to the top-level Makefile.PL
226 work again.
227
c7f06039
TC
228 - update the bundled/modified Devel::CheckLib to handle the gcc-4
229 symlink on Cygwin
230
c7285c3e
TC
231Imager 1.000 - 28 Jul 2014
232============
233
234There's nothing special about Imager 1.000, it's just another release.
235
fa3dac1d
TC
236 - fix the skip check for the iolayer qr// buffer test
237
238 - improve error reporting for the iolayer test failing on a small
239 number of Win32 CPAN testers
240
35349dba
TC
241Imager 0.99_02 - 21 Jul 2014
242==============
243
5dab5b9a
TC
244 - Imager::Filter::Mandelbrot (and dynfilt/mandelbrot.c) - initialize
245 the blue channel in the generated palette, and allow each color
246 component to be in the range 100..255 instead of just 100..254.
247 Thanks to Ralf Neubauer.
248 https://rt.cpan.org/Ticket/Display.html?id=97086
249
250 - revert "improved the XS for i_io_read() and i_io_raw_read()"
251 This caused problems with older perls and didn't provide much of a
252 performance improvement.
253
5bf25bc2 254 - support Inline 0.57 and later.
6d47a6af 255 Inline 0.57 changed the "with" interface.
5bf25bc2
TC
256 https://rt.cpan.org/Ticket/Display.html?id=97108
257
6d47a6af
TC
258 - don't define our own MAXINT macro, it conflicts with windows header
259 files and in a few places it was the wrong value to use anyway.
260 https://rt.cpan.org/Ticket/Display.html?id=96425
261
3c447960
TC
262Imager 0.99_01 - 29 Jun 2014
263==============
264
7b486870
TC
265 - GIF: add support for giflib 5.1.0, which added error code pointer
266 parameters to EGifCloseFile() and DGifCloseFile().
267 https://rt.cpan.org/Ticket/Display.html?id=96756
268
269 - GIF: avoid a double-free when do_write() fails.
270
28104a85 271 - fix SV type probing to work on perl before 5.12. Broken in 0.99.
ea87cee9
TC
272 https://rt.cpan.org/Ticket/Display.html?id=96761
273
df04d4b3
TC
274 - PNG: skip the benign error test before libpng 1.6.0, since the
275 error we're testing didn't exist before 1.6.0.
276 https://rt.cpan.org/Ticket/Display.html?id=94717 (continued)
277
15b3f5f2
TC
278Imager 0.99 - 25 Jun 2014
279===========
280
dce1523b
TC
281 - Imager::IO->new_buffer() (and hence Imager->read()'s data
282 parameter) now accepts a reference to a scalar as well as just a
283 plain scalar.
6a160bce 284 https://rt.cpan.org/Ticket/Display.html?id=92785
dce1523b
TC
285
286 - Imager::IO->new_buffer() now always makes a copy of the passed in
287 buffer to avoid problems with temporary objects used for the return
288 value of SvPVbyte().
6a160bce 289 https://rt.cpan.org/Ticket/Display.html?id=92785
dce1523b 290
c757e211
TC
291 - improved the XS for i_io_read() and i_io_raw_read()
292 https://rt.cpan.org/Ticket/Display.html?id=92738
293
294 - load plugins from absolute paths on Android
295 Thanks to Brian Fraser.
296 https://rt.cpan.org/Ticket/Display.html?id=93272
297
6a160bce
TC
298 - added the jpeg_optimize parameter for writing JPEG files. This can
299 significantly reduce file sizes, but uses more memory and time.
300 https://rt.cpan.org/Ticket/Display.html?id=94292
301
14fd9e5d
TC
302 - the autolevels filter now works on the luminosity of the image
303 rather then working per channel. The old autolevels filter is
304 still available as "autolevels_skew".
305 https://rt.cpan.org/Ticket/Display.html?id=94413
306
75d54149
TC
307 - Imager::File::PNG now supports libpng 1.6.10.
308 1.6.10 changed CRC errors from benign errors to normal errors,
309 which broke the test which used CRC errors to check for benign
310 error support. Switched to using a 1-bit grey-scale image with a
311 palette to test for benign errors.
312 https://rt.cpan.org/Ticket/Display.html?id=94717
313
607f5d2c
TC
314Imager 0.98 - 3 Jan 2014
315===========
316
f84f86a2
TC
317Incompatible changes:
318
319 - the return value of setpixel() has changed.
320
321 Previously the return values for undrawable pixels vs caller errors
322 changed depending on whether you used the multiple pixel calling
323 mechanism, or the single pixel mechanism.
324
325 Now:
326
327 - for an invalid parameter, such as an unknown colour, or missing
328 parameter, an empty list (or undef in scalar context) is
329 returned, and errstr() is set,
330
331 - otherwise the number of pixels drawn is returned. If none of
332 the pixels could be drawn (they were all outside the image), "0
333 but true" is returned.
334
335 https://rt.cpan.org/Ticket/Display.html?id=87650
336
337Other changes:
338
6ba09ab9
TC
339 - when drawing on an image with an alpha channel where the source
340 minimum is greater than zero, Imager would read from beyond the end
341 of a malloc() allocated buffer. In rare circumstances this could
342 lead to some of the source image not being written to the target
343 image, or possibly to a segmentation fault.
344 I don't believe this has any security concerns beyond that.
345
0d052fd9
TC
346 - if the first text drawn with Imager::Font::T1 is not anti-aliased,
347 text drawn would be nonsense. This would also read beyond the end
348 of a malloced buffer.
349
13671b17
TC
350 - non-AA text drawn with an Imager::Font::TT (Truetype 1) font would be
351 truncated early.
352 https://rt.cpan.org/Ticket/Display.html?id=88993
353
d6f4e964
TC
354 - Imager::Font::Wrap no longer requires the image parameter.
355 https://rt.cpan.org/Ticket/Display.html?id=87338
356
f84f86a2
TC
357 - a documentation typo fix in Imager::Transformations
358 Thanks to Adrian Yee.
359 https://rt.cpan.org/Ticket/Display.html?id=88598
360
0179ecd6
TC
361 - Image::Probe, Imager's internal module for probing library
362 locations now searches the directories specified by LD_RUN_PATH,
363 LD_LIBRARY_PATH, DYLD_LIBRARY_PATH and LIBRARY_PATH for libraries,
364 and the corresponing s/\blib$/include/ directories for header
365 files.
366 https://rt.cpan.org/Ticket/Display.html?id=86428
367
8decb191
TC
368Imager 0.97 - 15 Jul 2013
369===========
370
371No changes from 0.96_02.
372
d9ae3f2b
TC
373Imager 0.96_02 - 8 Jul 2013
374==============
375
aaf82685
TC
376 - PNG: treat a version mismatch between headers and library as a
377 probe failure.
378 https://rt.cpan.org/Ticket/Display.html?id=86659
379
8e90f677
TC
380 - PNG: the check for benign error support is more complex than a
381 simple library version check, check for the appropriate macro.
382 Thanks for Slaven Rezic for following up on my CPAN Testers result
383 queries.
384 https://rt.cpan.org/Ticket/Display.html?id=86659
385
f94da9c0
TC
386 - W32: add a missing head1 AUTHORS to the old Win32.pm
387 https://rt.cpan.org/Ticket/Display.html?id=86658
388
d9ae3f2b 389Imager 0.96_01 - 1 Jul 2013
b4ed9bcb
TC
390==============
391
05c9b356
TC
392 - TIFF: handle SampleFormat = 2 by translating the signed integer
393 values to unsigned by flipping their sign bits.
394
395 Handle SampleFormat = 3 where possible.
396
397 SampleFormat is ignored for paletted images.
398
237d9e03
TC
399 Mixed SampleFormat are handled incorrectly, since libtiff returns
400 only the first SampleFormat value, and an image with both an alpha
401 channel and SampleFormat = 2 for color channels probably has a
402 different SampleFormat for the alpha channel.
05c9b356
TC
403
404 https://rt.cpan.org/Ticket/Display.html?id=74540
405
face45e7 406 - XS clean up:
29969fa2 407 https://rt.cpan.org/Ticket/Display.html?id=69243
face45e7 408
237d9e03 409 - Imager::Color's rgba() method now returns its values as integers
face45e7
TC
410 instead of floating point. (IV instead of NV).
411
19e9591b
TC
412 - The XS for i_map() and i_matrix_transform() now use the AV *
413 typemap instead of rolling their own.
414
75cebca8
TC
415 - The XS for DSO_call() now uses the HV * typemap instead of
416 rolling it's own.
417
0aaa8b4d
TC
418 - The XS for i_poly_aa(), i_poly_aa_cfill(), i_transform() and
419 i_gradgen() now use a new T_AVARRAY typemap that greatly
420 simplifies the XS code.
face45e7 421
ccd01d49
TC
422 - many other minor XS changes
423
face45e7 424 - some XS code formatting
a54e32ba 425
dcab59bc
TC
426 - TT (Freetype 1.x) and FT2 (Freetype 2.x) non-antialiased rendering
427 now renders in alpha-combining mode, to match antialiased output.
428 https://rt.cpan.org/Ticket/Display.html?id=73359
b482243a 429
8db7b6fa
TC
430 - add sample code and cookbook notes for drawing a blurred drop-shadow.
431
432 - add support for libpng 1.6, which changed the defaults for
433 reporting some types of error.
434 https://rt.cpan.org/Ticket/Display.html?id=85746
435
dc076f98
TC
436 - FT2: use gsamp/psamp() to transfer pixels from the work image to
437 the output image instead of gpix/ppix.
438 https://rt.cpan.org/Ticket/Display.html?id=83478
439
98747309
TC
440 - eliminate various GCC warnings, mostly initialized but otherwise
441 unused variables.
442
d72e91c5
TC
443Imager 0.96 - 19 May 2013
444===========
445
c2e251d9
TC
446 - rearrange Imager's test files.
447 https://rt.cpan.org/Ticket/Display.html?id=84596
448
449 - Imager::Probe::_gcc_lib_paths now forces C locale.
450 A sufficiently recent gcc prints localized keys for the search
451 paths, which avoids that localization.
452 https://rt.cpan.org/Ticket/Display.html?id=84963
453
454 - fix a pod error detected by Pod::Simple 3.27 and laterm and skip
455 pod tests unless AUTOMATED_TESTING or IMAGER_AUTHOR_TESTING is set
456 and true.
457 https://rt.cpan.org/Ticket/Display.html?id=85262
458 reported by Andreas König
459
460 - add a test for unclosed POD in C source, and fix the errors it
461 found.
462 https://rt.cpan.org/Ticket/Display.html?id=74875
463
464 - fix some spelling errors detected by the newer aspell in Debian
465 Wheezy.
466
467 - remove a trailing ' from lib/Imager/Font/Test.pm's POD
468 thanks to gregor herrmann <gregoa@debian.org>
469 https://rt.cpan.org/Ticket/Display.html?id=85413
470
471 - add a test for standard =head1 commands and fix the errors found
472
f9e1a2e7
TC
473Imager 0.95 - 19 Apr 2013
474===========
475
0a2956ab
TC
476 - handle the SVf_UTF8 flag correctly on magic strings passed to
477 Imager::IO's write() and raw_write() methods.
478 This may misbehave in perl 5.6.x since the UTF8 flag may not be
479 visible in the main SV after SvGETMAGIC().
480 https://rt.cpan.org/Ticket/Display.html?id=83438
481
482 - document that bounding_box() ignores the transformation matrix
483 supplied to tranform() for fonts.
484 https://rt.cpan.org/Ticket/Display.html?id=84106
485
4f94c146
TC
486Imager 0.94_02 - 5 Apr 2013
487==============
488
1540d1d4
TC
489 - enable debug logging for the standard font tests
490
491 - skip the overloaded UTF-8 text output checks on 5.6.x and earlier,
492 due to a bug in that version of perl.
493
494 - don't test for read() failing on a write-only handle in 5.8.x and
495 earlier, this was fixed in change 862083f7e4 in perl.
496
497 - report the version of Inline found during testing (an attempt to
498 diagnose some intermittent failures.)
499
2fe429a9
TC
500Imager 0.94_01 - 2 Mar 2013
501==============
502
14a4ea18 503 - NOTE: possibly backward incompatible:
3dcf7595
TC
504 support reading from/writing to perl filehandes that aren't raw
505 files.
506
507 This allows Imager's I/O to honour handles with layers such as
508 gzip, scalar file handles or tied file handles.
509
14a4ea18 510 This is backward incompatible in that previous Imager would simply
3dcf7595
TC
511 use fileno() to retrieve the fd for the file and call write(2) etc
512 on it directly.
04d8c568
TC
513 https://rt.cpan.org/Ticket/Display.html?id=78843
514
515 - moved most of README to lib/Imager/Install.pod which should make it
516 more accessible to the "web" generation, also significantly updated
517 and re-worked it.
3dcf7595 518
ca96f811
TC
519 - updated README's for the separately distributed modules to refer to
520 Imager::Install, and that they need -dev versions of packages
521 https://rt.cpan.org/Ticket/Display.html?id=81265
522
26e8a226
TC
523 - the JPEG test code now reports the compile-time library version
524
41125e7d
TC
525 - avoid a possible compiler optimization issue on CentOS 5.9 i386 by
526 rearranging (and mildly optimizing) some code.
ca96f811
TC
527 https://rt.cpan.org/Ticket/Display.html?id=83212
528
529 - fix a POD error in Imager::Fill (detected on new Pod-Simple)
530 https://rt.cpan.org/Ticket/Display.html?id=83434
531
532 - fix a broken link to Graphics::Magick
533 https://rt.cpan.org/Ticket/Display.html?id=82743
41125e7d 534
c732ffa5
TC
535 - drawing text to a channel with FT2 would draw with random coverage
536 due to an uninitialized alpha channel.
537
538 - marked the function pointer underlying the mm_log() API with the
539 correct gcc magic and fixed the resulting warnings.
540
541 - fixed some other compiler warnings
542
14a4ea18
TC
543 - Imager::Font::W32 now properly reports text drawing errors
544 https://rt.cpan.org/Ticket/Display.html?id=70098
545
0a2956ab 546 - handle the SVf_UTF8 flag correctly on magic (eg. overloaded)
14a4ea18
TC
547 strings passed as text to draw(), bounding_box(), has_chars(),
548 glyph_names() (where supported) in each of the font drivers.
0a2956ab
TC
549 This may misbehave in perl 5.6.x since the UTF8 flag may not be
550 visible in the main SV after SvGETMAGIC().
14a4ea18
TC
551 https://rt.cpan.org/Ticket/Display.html?id=83438 (partial)
552
06115805
TC
553Imager 0.94 - 15 Dec 2012
554=========================
555
556Variations on some of these changes were included in development
557releases.
558
4be61824
TC
559 - improved thread safety
560 - the internal error stack and log file handle are now in a per-thread
561 context object
562 - JPEG now captures IPTC information in a thread-safe way
563 - avoid globals where possible for warning capture in libtiff
244725cf
TC
564 - use a mutex to avoid re-entering thread-unsafe giflib
565 - use a mutex to avoid re-entering thread-unsafe tifflib
566 - use a mutex to avoid re-entering thread-unsafe T1Lib
567 - use a library handle per thread for freetype 2.
0124c060 568 - use an engine handle per thread for freetype 1.x.
0eebfd59
TC
569 - originally these changes broke ABI compatibility, this has been
570 restored.
abffffed 571
6254ad14
TC
572 - clarify the return value of getpixel();
573 https://rt.cpan.org/Ticket/Display.html?id=81198
574
575 - fixed a race condition in parallel testing for T1
576
577 - fixed a bug in handling yoff for untransformed image-based fills
578
579 - documentation improvements for Imager::Fill
580
5e8f194e
TC
581 - FT2: report the library version while testing.
582
e9daa5af
TC
583Imager 0.93 - 15 Oct 2012
584===========
585
586Bug fixes:
71fbe41a
TC
587
588 - previously a transparency enabled GIF write (the default) would
589 always use a GIF89a header even if none of the images were
590 transparent.
7a5f7bc6 591
b2f967ef
TC
592 - previously the probe step for freetype-config would fail on cygwin
593
b2f967ef
TC
594 - catch an invalid matrix parameter to convert() instead of crashing
595 https://rt.cpan.org/Ticket/Display.html?id=79922
596
597 - remove the 16-bit/sample limitation from the documentation for
598 setsamples(), it hasn't applied for many releases.
599 https://rt.cpan.org/Ticket/Display.html?id=79989
600
9673d97e
TC
601 - don't copy setsamples() data parameter, it may be a large scalar
602 https://rt.cpan.org/Ticket/Display.html?id=79990
603
70b577d3
TC
604 - clean up .dSYM directories generated performing probes on OS X
605 Mountain Lion.
606
8c323994
TC
607 - pass the --verbose command-line option through to Imager::Probe in
608 sub-module's Makefile.PLs
609 https://rt.cpan.org/Ticket/Display.html?id=75878
610
e9daa5af
TC
611Enhancements:
612
613 - support for giflib 5.0. (5.0.1 and later)
614 https://rt.cpan.org/Ticket/Display.html?id=79029
615 The giflib API Imager uses doesn't have a mechanism to set the
616 header version in 5.0.0.
617
618 - update the GIF library probe code to check for the new giflib 5.0.1
619 EGifSetGifVersion() function, and to check for the giflib 4.2.0
620 uninitialized gif89 bug.
621 https://rt.cpan.org/Ticket/Display.html?id=79679
622 http://sourceforge.net/tracker/?func=detail&aid=3574283&group_id=102202&atid=631304
623
624 - avoid static variables when capturing IPTC data from JPEG files
625
d96c4de8 626 - match Imager::Font::T1's error message translations to those from
e9daa5af
TC
627 later versions of T1Lib.
628
629 - for libtiff versions that support extended warning handlers (3.8.0
630 or later), use them to avoid some global variables.
631
632 - note Image::ExifTool for better metadata support.
633 https://rt.cpan.org/Ticket/Display.html?id=79251
634
41c938ec
TC
635Imager 0.92 - 14 Aug 2012
636===========
637
b1c75496
TC
638 - giflib 4.2 eliminates the GIF_LIB_VERSION macro, handle that
639 correctly for both probing and runtime.
640 https://rt.cpan.org/Ticket/Display.html?id=77672
641
dcc10c4e
TC
642 - allow building JPEG/imexif.c on C89 compilers.
643
272fcca5
TC
644 - allow building GIF/imgif.c on C89 compilers.
645
ec8f0ee2
TC
646Imager 0.91 - 4 Jun 2012
647===========
648
ef84bb32 649Bug fixes:
38742a13 650
289d65f4
TC
651 - The size of rotated images is no longer rounded up so aggressively.
652 Added rounding to the linear interpolation done for rotate() and
653 matrix_transform() for 1 and 3 channel 8-bit images.
654 Adjusted the two tranlate matrices used to build the final rotation
655 matrix to use the distance between the outlier pixels rather than
656 the pixel dimensions (ie. dimension-1).
657 With all of this the output of rotate(degrees => 270) on an 8-bit
658 image exactly matches the output of rotate(right => 270).
659 https://rt.cpan.org/Ticket/Display.html?id=77063
660
ef84bb32
TC
661Other changes:
662
663 - eliminate the old IIM_new(), IIM_DESTROY() names from Imager's
664 internals, those names only matter for the XS interface.
665
666 - improve error reporting when PERL_INITIALIZE_IMAGER_CALLBACKS finds
667 the API level compiled into a loadable module such as
668 Imager::File::GIF doesn't match that of Imager. Previously it
669 could be difficult to determine exactly which module was failing to
670 load.
671 https://rt.cpan.org/Ticket/Display.html?id=77173
672
673 - added Imager->check_file_limits() as an interface to the
674 i_int_check_image_file_limits() API.
675
676 - Imager->set_file_limits(reset => 1) now resets the limits to the
677 defaults rather than setting them all to unlimited.
678
679 - wrote a brief security note as Imager::Security
680 https://rt.cpan.org/Ticket/Display.html?id=68910
681
6f31dd14 682Imager 0.90 - 30 Apr 2012
7c4464f5
TC
683===========
684
685Bug fixes:
686
687 - Imager::Test::is_imaged() attempted to process an "epsilon"
688 parameter but the prototype didn't allow for the extra parameter.
689 Corrected the prototype.
690
29b38678
TC
691 - when downconverting samples (eg. from floating point to 8 bit)
692 Imager now rounds the sample value rather than attempting to
693 allocate input values over output values equally. The old
694 behaviour had the probably surprising effect of converting a
695 floating point 2.1/255.0 into an 8-bit 3 rather than the expected
696 2.
697 This may result in slightly different 8 or 16-bit output images.
698
e2a86bac
TC
699 - BI_BITFIELD BMP images were handled incorrectly, both in
700 incorrectly calculating the space required for the masks and in
701 processing the image data itself.
702 https://rt.cpan.org/Ticket/Display.html?id=76736
703
704 - some odd width BMP BI_RLE4 images use run lengths that run one off
705 the edge of the image. Imager now allows this, discarding the
706 extra column.
707
708 - odd length RLE4 runs in BMP images were decoded incorrectly.
709
82eb0687
TC
710 - pkg-config could sometimes return a library that was in a directory
711 EU::MM / $Config{libpth} doesn't know about, but the compiler did.
712 If no -L is included in the pkg-config library information check if
713 EU::MM can find the library, and if not, search our configured
714 directories and insert that into the library flags.
715 https://rt.cpan.org/Ticket/Display.html?id=75869
716
de50f459
TC
717 - Imager::Probe can now probe for libraries with dependent libraries,
718 common for static linking, eg. libpng requires libz.
719 https://rt.cpan.org/Ticket/Display.html?id=74043
720
721 - libpng 1.5 specific probes were looking for libpng 1.4 filenames.
722
723 - added alternative probe configurations that try to link libz, to
724 handle a statically linked libpng.
725 https://rt.cpan.org/Ticket/Display.html?id=74043
726
727 - if a probe includes testcode, Imager::Probe now checks that code as
728 part of the process of checking each configuration rather than as a
729 post test of the found configuration. This allows alternate
730 configurations to be checked if a matching but non-working
731 configuration is found.
732 https://rt.cpan.org/Ticket/Display.html?id=74043
733
9d5ff8a6
TC
734Other changes:
735
736 - when reading or writing images via callbacks, the default callbacks
737 now push an error message indicating that a required callback was
738 called but not supplied.
739 https://rt.cpan.org/Ticket/Display.html?id=76782
740
741 - clarify which callbacks are required for reading and writing TIFF
742 images.
743
744 - improve logging for creation of callback I/O layers.
745
de50f459
TC
746 - a little more documentation for Imager::Probe.
747
594f5933
TC
748 - the i_get_file_background() and i_get_file_backgroundf() APIs now
749 return int to indicate whether the i_background tag was found.
750
1b46057d
TC
751 - PNG rework
752 - improve error reporting
753 - add png_interlace, png_bits tags
754 - read paletted images as paletted images, including transparency
755 - read 1 bit greyscale images as a type suitable for other file
756 handlers to write as bilevel
757 - read 16 bit/sample PNG as 16-bit/sample Imager images
758 - write "bilevel" paletted images as 1 bit grayscale images
759 - write paletted images as paletted images
760 - write 16-bit (or higher)/sample images as 16-bit/sample PNG
761 images
762 - improved metadata support
763 https://rt.cpan.org/Ticket/Display.html?id=29268
764
2c1ffb77
TC
765Imager 0.89 - 18 Mar 2012
766===========
767
768Bug fixes:
769
93eab01e
TC
770 - getpixel(..., type => "float") and the API i_gpixf() have been
771 broken on paletted images since they were implemented.
772 https://rt.cpan.org/Ticket/Display.html?id=75258
773
2c1ffb77
TC
774Other changes:
775
61be9694
TC
776 - links in the METHOD INDEX now point at the method documentation
777 rather than the heading you can find them under.
778 https://rt.cpan.org/Ticket/Display.html?id=71495
779
a5919365
TC
780 - Imager (and the bundled dynamic modules) no longer fallback to
781 using DynaLoader if loading via XSLoader fails.
782 For the bundled modules this could hide useful error messages.
783 https://rt.cpan.org/Ticket/Display.html?id=75560
784
335078fc
TC
785 - IM_DEBUG_MALLOC mymalloc() no longer sn?printfs() a string to a
786 buffer in the array of allocations, but just stores the filename
787 pointer and line number.
788 https://rt.cpan.org/Ticket/Display.html?id=70388
789
3f53dd75
TC
790Imager 0.88 - 22 Feb 2012
791===========
792
43bef43b
TC
793 - describe how to build libgif etc on OS X in such a way as to be
794 compatible with a fat binary perl (such as the system perl), in
795 README.
796 https://rt.cpan.org/Ticket/Display.html?id=73371
797
69675eef
TC
798 - update the change notes for 0.77_01 to indicate that libungif
799 support was removed.
800
d4056453
TC
801 - add some other imaging modules to SEE ALSO
802 https://rt.cpan.org/Ticket/Display.html?id=73906
803
3b7f10da
TC
804 - note that the generator of the apparently non-DFSG-free postscript
805 in MMOne.pfb is a Debian package.
806
02323e69
TC
807 - setsamples() is now a true complement to getsamples() - it can
808 write 8-bit or floating point samples from a scalar or array
809 reference. This adds i_psamp() and i_psampf() to the C level API.
810
811 - the XS interfaces to i_gsamp(), i_gsampf() and i_gsamp_bits() have
812 changed to make better use of the typemap, but these aren't part of
813 the perl level API anyway. There were no changes to the C level
814 interfaces to these functions.
815
2a27eeff
TC
816 - getpixel() and setpixel() now accept a mix of scalar and array
817 references for the x and y parameters, and unequal array lengths is
818 no longer an error.
819 https://rt.cpan.org/Ticket/Display.html?id=73697
820
ef74691a
TC
821Bug fixes:
822
823 - correctly calculate the size of a rotated image
824 https://rt.cpan.org/Ticket/Display.html?id=69261
825
826 - fix incorrect rounding of color values for matrix_transform() and
827 rotate().
828 https://rt.cpan.org/Ticket/Display.html?id=69261
829
5091168a
TC
830 - Win32 text output is now done in normal combine mode, the alpha
831 component of the color is now significant.
832 https://rt.cpan.org/Ticket/Display.html?id=70014
833
fa0b1452
TC
834 - remove long unused gif case from read()
835 https://rt.cpan.org/Ticket/Display.html?id=69244 (partial)
836
7640e3bb
TC
837 - the getsamples() target parameter was being treated as a hashref
838 when it's meant to be an array reference.
839 https://rt.cpan.org/Ticket/Display.html?id=74882
840
2a27eeff
TC
841 - getpixel() and setpixel() now returns an empty list when invalid
842 parameters are supplied.
843 Invalid values for type now result in an error for getpixel().
844 https://rt.cpan.org/Ticket/Display.html?id=73697
845
fcc81fa4 846Imager 0.87 - 03 Jan 2012
f0f6c630
TC
847===========
848
c18dd26e
TC
849 - document the return value of the filter() method.
850 https://rt.cpan.org/Ticket/Display.html?id=72369
851
48095bd4
TC
852 - document i_gsamp_bits() and i_psamp_bits().
853 https://rt.cpan.org/Ticket/Display.html?id=68815
854
f5b90025
TC
855 - properly increment the Imager::Matrix2d $VERSION.
856
35f2f9fb
TC
857 - actually include the Imager::Test tests in the dist
858
2fe1e4bc
TC
859 - correctly read and write 256x256 pixel ICO files
860 https://rt.cpan.org/Ticket/Display.html?id=69599
861
4f21e06e
TC
862 - make the error message from read() or read_multi() when they can't
863 identify the file type match reality.
864 https://rt.cpan.org/Ticket/Display.html?id=72475
865
866 - read() now uses $FORMATGUESS if it can't determine the file type
867 based on the file header, to match read_multi().
868
869 - re-work and add tests for def_guess_type(). def_guess_type() no
870 longer returns any random file extension as the file type.
871
5e9a7fbd
TC
872 - add gray4, gray16 and gray as presets for make_colors.
873 https://rt.cpan.org/Ticket/Display.html?id=67911
874
875 - add make_palette() method that produces a palette from one or more
876 images.
877
32d74dbe
TC
878 - fix the Imager dependency for the separately distributed font
879 drivers.
880 https://rt.cpan.org/Ticket/Display.html?id=72643
881
a044f2c6
TC
882 - fix i_render_color() to properly draw in "normal" mode - ie. when
883 writing to a 1 or 3 channel image the second or fourth channel of
884 the source color was being ignored, it is now significant.
885 https://rt.cpan.org/Ticket/Display.html?id=71564
886
4b2e59d3
TC
887Imager 0.86 - 31 Oct 2011
888===========
889
b8b889ba
TC
890 - improve error reporting for W32 tests
891
6f7a49a2
TC
892Imager 0.85_02 - 24 Oct 2011
893==============
a10ce62e
TC
894
895Bug fixes:
896
897 - eliminate unused i_gif_opts type (clean-up)
898 https://rt.cpan.org/Ticket/Display.html?id=69245
899
98e1552d
TC
900 - fix combine=0 fill color anti-aliasing on the double/sample path
901 https://rt.cpan.org/Ticket/Display.html?id=71309
902
903 - make default text color non-transparent
904 https://rt.cpan.org/Ticket/Display.html?id=71469
905
372ba12c
TC
906 - apply the last of the Debian unforwarded spelling fixes
907 https://rt.cpan.org/Ticket/Display.html?id=70656
908
b7506a07
TC
909 - the log() method used its message parameter as a C level format
910 string.
911 https://rt.cpan.org/Ticket/Display.html?id=71653
912
cb4d223c
TC
913 - provide our own STRLEN typemap entry for older perls.
914 https://rt.cpan.org/Ticket/Display.html?id=71641
915
f35d1231
TC
916 - add extra ppport.h configuration to support older perls.
917
954ac5d1
TC
918 - depend on Scalar::Util, since we use it and older perls don't have
919 it.
920
5efba0c6
TC
921 - add overloaded eq to Imager::Matrix2d, since older perls don't seem
922 to synthesize it from overloaded "".
923
73e3ff55
TC
924 - use T1_StrError() for error messages on modern libt1
925 https://rt.cpan.org/Ticket/Display.html?id=69879
926
927 - actually load the font rather than just adding it to the catalog on
928 creation.
929
930 - Imager::Font->new now produces better error messages for the T1
931 engine.
932
6e938c74
TC
933 - the font has_chars() method now returns perl's true and false
934 values in list context rather than integers, which should be more
935 efficient.
936 https://rt.cpan.org/Ticket/Display.html?id=69158
937
b934971a
TC
938 - the btm data structure used by the flood_fill code is now
939 initialized more efficiently.
940 https://rt.cpan.org/Ticket/Display.html?id=68994
941
872def8b
TC
942 - updated the Thanks list in README
943 https://rt.cpan.org/Ticket/Display.html?id=71607
944
1e0418f1
TC
945 - check there's at least one coefficient for the convolution filter
946 https://rt.cpan.org/Ticket/Display.html?id=68993
947
81409c5e
TC
948 - make the APIRef synopsis ordering consistent, older versions of
949 perl could order it differently.
950 https://rt.cpan.org/Ticket/Display.html?id=71675
951
336ce474
TC
952 - we rely on Config.pm's d_vsnprintf as to whether we use
953 vsnprintf/snprintf, which is defined in the Win32 Config.pm even
954 though it only has _ prefixed versions of these. Define our own
955 prefixed names on Win32.
956 https://rt.cpan.org/Ticket/Display.html?id=71642
957
ae394c13
TC
958 - fix library detection with MSVC
959
84e2cc94
TC
960 - search a few more library directories, so EU::MM doesn't discard
961 them. Hopefully fixes:
962 https://rt.cpan.org/Ticket/Display.html?id=71643
963
31be6e9a 964Imager 0.85_01 - 10 Oct 2011
6d5c85a2 965==============
a7e32beb
TC
966
967 - add simple tests for the Imager::Test test_image generators
968
6d5c85a2
TC
969 - io_glue I/O buffering re-work:
970
971 - reorganize io_glue to do it's own buffering by default
972
973 - the unbuffered functions are available as i_io_raw_read() (or
974 raw_read() from perl) etc but are not recommended for typical
975 use.
976
977 - use the new i_io_peekn() when checking for file magic to avoid
978 seek, allowing Imager to detect the file type and read the file
979 from an unseekable stream (for formats that don't use random
980 access)
981
982 - added several new I/O layer API functions.
983
984 - fix the TGA performance problem, most noticably on Win32
985 https://rt.cpan.org/Ticket/Display.html?id=70037
986
987 - TIFF now uses wrapper functions of the correct types to avoid casts
988 https://rt.cpan.org/Ticket/Display.html?id=69912
989
990 - the callback IO object did its own buffering, controlled by the
991 maxbuffer parameter supplied to the read() and write() methods.
992 This buffering has been removed, to avoid redundancy with the
993 common io_glue buffering. This also avoids a bug in that code
994 which could rarely pass a zero length to the read callback and
995 then panic about the result.
996
997 - the callback IO object now tests the result of calling the close
998 callback, which should return true for success.
999
1000 - the PNM reader did its own buffering. This buffering has been
1001 removed to avoid redundancy with the common io_glue buffering.
1002
1003 - previously the read handlers for fd and callback I/O layers would
1004 call the underlying interface (POSIX read or your supplied callback)
1005 until it filled the buffer. It now only makes one call.
1006
1007 - added public constructors for I/O layer objects (see Imager::IO)
1008
1009 - all core file handlers now use the i_io_foo() wrappers to gain
1010 access to buffered I/O rather than calling the I/O layer
1011 callbacks directly.
1012
1013 - all core file handlers now check for error on close.
1014
1015 - Backward compatibility: if you hava custom file handlers, you can
1016 use i_io_write() etc since they're available as macros in older
1017 versions of Imager.
1018
1019 - eliminate the final remnants of io_glue_commit_types().
1020
1021 - bump IMAGER_API_VERSION, since the above may break assumptions.
1022
1023 - removed the long unused i_gen_reader() and i_gen_writer() utility
1024 functions.
1025
0c647c9a 1026Imager 0.85 - 29 Aug 2011
6ad7e4bc
TC
1027===========
1028
0c647c9a
TC
1029The main changes in the release versus 0.84 are:
1030
1031 - on 64-bit systems, 64-bit types are consistently used for image
1032 dimensions and co-ordinated, and for memory block sizes.
1033
1034 - handle IFD loops in TIFF files correctly. Previously this would
1035 lead to an infinite loop.
1036
6ad7e4bc
TC
1037Bug fixes:
1038
1039 - fix the link in the getheight() entry in the method index
1040
7ef6338c
TC
1041Imager 0.84_02 - 22 Aug 2011
1042==============
1043
1044Development release, this will become 0.85 if CPAN testers is
1045favourable.
6b7197d0
TC
1046
1047Bug fixes:
1048
1049 - the image file limits set by set_file_limits() weren't being
1050 checked when reading TIFF files.
1051 https://rt.cpan.org/Ticket/Display.html?id=69915
1052
5970bd39
TC
1053 - Provide more information about file format module load errors on a
1054 failed image file read() or write().
1055 https://rt.cpan.org/Ticket/Display.html?id=69194
1056
4ce3551c
TC
1057 - use TIFFReadDirectory() instead of TIFFSetDirectory() to iterate
1058 through TIFF images, since it checks for IFD loops.
1059 https://rt.cpan.org/Ticket/Display.html?id=69914
1060
a16bca6d
TC
1061 - don't leak memory when out of range palette indexes are supplied to
1062 setscanline().
1063 https://rt.cpan.org/Ticket/Display.html?id=69242
1064
1065 - require a later version of CPAN::Meta to ensure JSON::PP and
1066 CPAN::Meta::YAML are available.
1067 https://rt.cpan.org/Ticket/Display.html?id=69008
1068
ac575c5f
TC
1069 - hoist the per-line calculations for the flines implementations, and
1070 modernize the tests a bit.
1071 https://rt.cpan.org/Ticket/Display.html?id=70126
1072
86c8d19a
TC
1073 - detect snprintf()/vsnprintf() (cheat by using Config.pm) and use
1074 them when available.
1075 https://rt.cpan.org/Ticket/Display.html?id=69147
1076
a3fd7df7
TC
1077 - if t1lib failed to reinitialize it would be left as marked
1078 initialized.
1079 https://rt.cpan.org/Ticket/Display.html?id=69877
1080
5fd542c7
TC
1081 - update the bundled (and still modified) Devel::CheckLib
1082 https://rt.cpan.org/Ticket/Display.html?id=69170
1083
fa61d195
TC
1084Imager 0.84_01 - 8 Aug 2011
1085==============
1086
1087Development release as a sanity check for the types re-work.
8d14daab
TC
1088
1089Massive types re-work:
1090
1091 - the type used internally for pixel co-ordinates and image sizes is
1092 now 64-bit on 64-bit platforms (at least sane ones).
1093
1094 - size_t is now used consistently for memory block sizes.
1095
1096 - since this changes the binary interface, the Imager API version has
1097 been incremented. Any module that uses the API will need to be
1098 rebuilt. In most cases that will be enough, but calls to any APIs
1099 that take a pointer to image sizes may need source changes.
1100
1101 - you should be able to create very large images on 64-bit systems,
1102 if you have enough memory. Successfully created a 32768 x 49192 x
1103 3 channel image, filled with a tiled image and scaled it. The
1104 unscaled image was also successfully saved to a JPEG.
1105
1106 - check the image size before attempting to write BMP, GIF, JPEG,
1107 PNG, SGI, TGA, TIFF images.
1108
1109 - correctly handle reading TGA images over 32767 pixels wide or tall.
1110
1111Incidental changes:
1112
1113 - the gif_left and gif_top tags are now clamped to non-negative
1114 values when writing a GIF image.
1115
1116 - removed dead callback read/write code
1117
1118The default maximum memory size when reading files is now 1G.
1119
bd80e51e 1120Imager 0.84 - 20 Jun 2011
b1e66a82
TC
1121===========
1122
1123 - Imager no longer inherits from Exporter (unless you're running an
1124 old, old perl.
1125
92e9df65
TC
1126 - Imager can now write progressive JPEGs (it could always read them).
1127 https://rt.cpan.org/Ticket/Display.html?id=68691
1128
10ea52a3
TC
1129Bug fixes:
1130
1131 - re-work, document and test Imager's logging facility.
1132 https://rt.cpan.org/Ticket/Display.html?id=65227
1133
4989229f
TC
1134 - fix META.yml testing and the generated META.yml
1135 https://rt.cpan.org/Ticket/Display.html?id=65235
1136
3bcba6df
TC
1137 - test and add error reporting to to_*() family methods
1138
bfe6ba3f
TC
1139 - add to_rgb_double() method.
1140 https://rt.cpan.org/Ticket/Display.html?id=65101
1141
e1a42e19
TC
1142 - Imager no longer exports anything by default
1143 https://rt.cpan.org/Ticket/Display.html?id=65228
1144
6d068d36
TC
1145 - convert colors to grayscale if the supplied (or generated) palette
1146 contains only grays when performing error diffusion color
1147 translation.
1148 https://rt.cpan.org/Ticket/Display.html?id=68508
1149
59c150a4
TC
1150 - writing a paletted image to GIF wouldn't always use the colors
1151 supplied (or generated, eg. via make_colors => "mono"), which was
1152 confusing at best.
1153 https://rt.cpan.org/Ticket/Display.html?id=67912
1154
5b480b14
TC
1155 - replace (imager|tony)@imager.perl.org in the doc, since I don't
1156 plan to continue receiving mail at that address.
1157 https://rt.cpan.org/Ticket/Display.html?id=68591
1158
101861e2 1159Imager 0.83 - 21 May 2011
46c21d48
TC
1160===========
1161
1162Bug fixes:
1163
1164 - diag() the error message on failure for some TIFF tests that are
1165 failing on a Solaris smoker.
1166 http://www.cpantesters.org/cpan/report/6396db1e-8090-11e0-9682-112b785ebe45
1167
cd758af2
TC
1168Imager 0.82_01 - 17 May 2011
1169==============
1170
1171Dev release, in case the compose tests are too sensitive.
deb1a916
TC
1172
1173Bug fixes:
1174
1175 - Imager::Font::T1 incorrectly checked for absolute filename under
1176 Win32. Thanks to kmx for the report and fix.
1177 https://rt.cpan.org/Ticket/Display.html?id=67963
1178
618a3282
TC
1179 - compose() with the target, source or mask position off the top or
1180 left of the target image didn't clip the source image correctly.
1181 https://rt.cpan.org/Ticket/Display.html?id=67220
1182
1183 - compose() now returns a useful error message on a non-positive
1184 opacity.
1185
1186 - compose.im now at 100% test coverage. (As opposed to, umm, much,
1187 much less.)
1188
c1d16c8f 1189Imager 0.82 - 14 Mar 2011
2368cfec
TC
1190===========
1191
1192Bug fixes:
1193
1194 - eliminate calls to i_has_format() from the test suite, since it's
1195 no longer a useful way to check for file format support. Eliminate
1196 i_has_format() from the functions exposed via XS.
1197 https://rt.cpan.org/Ticket/Display.html?id=65863
1198
7540f84a
TC
1199 - eliminate calls to note(), which isn't in the (very old) version of
1200 Test::More we have as a pre-requisite. note() is modern enough
1201 that I don't feel a need to require a Test::More upgrade for it.
1202 https://rt.cpan.org/Ticket/Display.html?id=65864
1203
81984f30
TC
1204 - skip the threads tests on Test::More 2.00_*
1205 https://rt.cpan.org/Ticket/Display.html?id=65812
1206
57fc3f48
TC
1207 - add an (unshipped) test to check Imager's internal POD links
1208 https://rt.cpan.org/Ticket/Display.html?id=65749
1209
d97c8dbd
TC
1210 - improve the library detection summary
1211 https://rt.cpan.org/Ticket/Display.html?id=9675
1212
c901f27d
TC
1213 - increase the version of Imager::Font::Type1 so that upgrades don't
1214 downgrade the version in this file.
1215 https://rt.cpan.org/Ticket/Display.html?id=66250
1216
1217 - if we see an -rpath (or -R) option in $Config{lddlflags} supply
1218 that option for the directories that would normally go in
1219 LD_RUN_PATH. Typically an explicit -rpath overrides LD_RUN_PATH.
1220 https://rt.cpan.org/Ticket/Display.html?id=65955
1221
533bab3e 1222Imager 0.81 - 14 Feb 2011
416e9814
TC
1223===========
1224
1225 - added coverage tests for masked images (maskimg.c @100% test coverage)
1226
9ea78101
TC
1227 - add hsv() method to Imager::Color
1228 Thanks to Leolo (Philip Gwyn)
1229 https://rt.cpan.org/Ticket/Display.html?id=65385
1230
1f289f50
TC
1231 - split libt1 Type 1 font support into a sub-module
1232 https://rt.cpan.org/Ticket/Display.html?id=49616 (partial)
1233
2c331f9f
TC
1234 - add a preload() class method for use in forking servers, and to
1235 work around limitations in PAR.
1236 https://rt.cpan.org/Ticket/Display.html?id=65665
1237
416e9814
TC
1238Bug fixes:
1239
1240 - paletted writes to a masked image are now masked correctly.
1241 Revealed by new coverage tests.
1242
130225b1
TC
1243 - update the filter plugin documentation.
1244 https://rt.cpan.org/Ticket/Display.html?id=56513
1245
4326b23a 1246 - add the matrix() method to Imager::Matrix2d to allow creation of a
a34dc54c
TC
1247 matrix with specified co-efficients. You can now multiple an
1248 Imager::Matrix2d object by a 9 element array ref or a number.
4326b23a
TC
1249 https://rt.cpan.org/Ticket/Display.html?id=29938
1250
9ea78101
TC
1251 - really fix loading TTF fonts with FT2 when FT1 isn't available.
1252 Thanks to Leolo (Philip Gwyn)
1253 https://rt.cpan.org/Ticket/Display.html?id=65386
1254 https://rt.cpan.org/Ticket/Display.html?id=62855
1255
40e78f96
TC
1256 - make sure each test script that needs testout/ creates it.
1257 https://rt.cpan.org/Ticket/Display.html?id=65088
1258
afee75f6
TC
1259 - handle a slightly different warning from libtiff 4.x
1260 https://rt.cpan.org/Ticket/Display.html?id=65268
1261
52b0d318
TC
1262 - the sat transform2() op returned an incorrect saturation.
1263 https://rt.cpan.org/Ticket/Display.html?id=65391
1264
d33f20c1 1265Imager 0.80 - 17 Jan 2011
95c08d71
TC
1266===========
1267
9a5df694
TC
1268 - added coverage tests for Imager::Fountain and Imager::Color::Float
1269
1270 - Imager is now maintained in git
1271 http://git.imager.perl.org/imager.git
1272 git://git.imager.perl.org/imager.git
1273
95c08d71
TC
1274Bug fixes:
1275
1276 - images with an translucent alpha channel were not scaled correctly
1277 by the default (qtype=normal) scaling method.
1278 https://rt.cpan.org/Public/Bug/Display.html?id=63922
1279
34c03f04
TC
1280 - Imager::Color::Float now translates "#FFFFFF" to white instead of
1281 just a little darker.
1282
9a5df694
TC
1283 - make the default color map build algorithm "mediancut". This
1284 changes the default color map builder for writing GIFs back to what
1285 it was in 0.77, reverting a performance regression.
0348fe07
TC
1286 https://rt.cpan.org/Ticket/Display.html?id=64785
1287
416e9814
TC
1288 - handle failure to create a masked image correctly
1289
95c08d71 1290Imager 0.79 - 10 Dec 2010
62869327
TC
1291===========
1292
1293 - add Imager::Test to the POD coverage tests and document the missing
1294 functions.
1295
2a2c791f
TC
1296 - the convert() method now optimizes the case where all output
1297 channels are either 0, sourced from a single input channel or 1.
1298 This significantly speeds up presets like "addalpha", "green".
1299 https://rt.cpan.org/Ticket/Display.html?id=51254
1300
b5c0ab7f
TC
1301 - add wiggle.pl sample, as suggested by Dan Oppenheim.
1302
b47464c1
TC
1303 - add the combine() method to combine channels from multiple source
1304 images into a new image
1305 https://rt.cpan.org/Ticket/Display.html?id=11872
1306
62869327
TC
1307Bug fixes:
1308
1309 - treat the co-efficients for convert() as doubles instead of floats.
1310
d67dd866
TC
1311 - If a higher (earlier) priority font handler failed to load, that
1312 would crash preventing loading of later font handlers.
9413a3f3
TC
1313 https://rt.cpan.org/Ticket/Display.html?id=62855
1314
a9120a5e
TC
1315 - parse defines from the options returned by pkg-config --cflags
1316 https://rt.cpan.org/Ticket/Display.html?id=63223
02f040a6
TC
1317
1318 - a regen of the MANIFEST revealed that GIF and FT2 tests weren't
1319 included in the tarball. They are now included.
a9120a5e 1320
893474f1 1321Imager 0.78 - 4 Oct 2010
f5b4354e
TC
1322===========
1323
1324Bug fixes:
1325
1326 - don't access deprecated members of the png_structp.
1327 https://rt.cpan.org/Ticket/Display.html?id=60242
1328
8289f78b
TC
1329 - document that using color objects is faster than supplying colors
1330 by name, etc.
1331 https://rt.cpan.org/Ticket/Display.html?id=61047
1332
0c3c1180
TC
1333 - Imager::Probe now accepts array references for incpath and libpath.
1334 https://rt.cpan.org/Ticket/Display.html?id=60244
1335
b6035795 1336Imager 0.77_02 - 27 Sep 2010
aca4e30a
TC
1337==============
1338
95b9922f 1339 - moved Win32, FreeType 2 font support into sub-modules.
aca4e30a
TC
1340 https://rt.cpan.org/Ticket/Display.html?id=49616 (partial)
1341 Uses Imager::Probe now.
1342 https://rt.cpan.org/Public/Bug/Display.html?id=61328
1343
c6683e4d
TC
1344 - tested successfully with jpeg-8b
1345 https://rt.cpan.org/Ticket/Display.html?id=60221
1346
e85532b9
TC
1347Bug fixes:
1348
1349 - from _01: look for missing file support test files in the right
1350 places.
1351
353eb6e7
TC
1352 - flood_fill() wouldn't fill the right side of a single scan-line
1353 fill area.
1354 Thanks to Nicolas Roggli for reporting this.
1355
95b9922f
TC
1356 - flood_fill wouldn't fill to the left edge of the image if the
1357 starting line didn't reach the left edge.
1358 Thanks to Nicolas Roggli for reporting this.
1359
beb9ba23
TC
1360Imager 0.77_01 - 13 Sep 2010
1361==============
82f14556
TC
1362
1363 - add each library-directory/pkgconfig/ to the pkg-config search path
1364 in Imager::Probe.
1365 Thanks to Justin Davis.
1366 https://rt.cpan.org/Ticket/Display.html?id=60491
1367
8ab27e7e
TC
1368 - moved GIF, TIFF, JPEG file handling code into sub-modules in
1369 preparation for separate distribution.
ec6d8908
TC
1370 https://rt.cpan.org/Ticket/Display.html?id=49616 (partial)
1371
69675eef
TC
1372 Note: this removed support for libungif from Imager.
1373
173c91ba
TC
1374 - optimize filled box drawing (color, not fill)
1375
82f14556
TC
1376Bug fixes:
1377
1378 - Imager::Probe was calling ExtUtils::Liblist to initialize
1379 LD_RUN_PATH supplying an undefined value rather than the found
1380 directory. Thanks to Justin Davis.
1381 https://rt.cpan.org/Ticket/Display.html?id=60491
1382
b851aeeb
TC
1383 - only prepend ./ to font filenames when passing them to T1Lib and
1384 then only when it would use its search mechanisms.
1385 https://rt.cpan.org/Ticket/Display.html?id=60509
1386
173c91ba 1387 - fix the cache check for the X rgb.txt loader. This is typically
cb4f51d6
TC
1388 used for color translation on Unix-like systems, and the fix
1389 improves performance of supplying colors by name by about 80 times.
1390 Test code that managed 3400 10x10 pixel boxes/second sped up to
1391 25700 boxes/second.
b851aeeb 1392
d3a96113
TC
1393 - clarify that Imager doesn't write EXIF metadata to images.
1394 https://rt.cpan.org/Ticket/Display.html?id=60637
1395
1396 - Imager::Probe can now search subdirectories under its include path.
1397 Used by the PNG Makefile.PL to find headers and libraries when they
1398 aren't in the base directory, as in cygwin.
1399 https://rt.cpan.org/Ticket/Display.html?id=60635
1400
43452432
TC
1401Imager 0.77 - 11 Aug 2010
1402===========
1403
1404I don't want Imager::File::PNG indexed as part of Imager, but forgot
1405to update the META.yml before updating the version.
1406
1407 - don't index Imager::File::PNG as part of Imager
1408
1409 - add resources to META.yml
1410
1411Imager 0.76 - not released
120f4287
TC
1412===========
1413
1414Bug fixes:
1415
1416 - the align_string() method would ignore a string of "0" due to a
1417 mis-use of C< ||= >.
1418 Thanks to Maurice Height for reporting this.
1419 https://rt.cpan.org/Ticket/Display.html?id=60199
1420
0e66b07f
TC
1421Imager 0.75_03 - 09 Aug 2010
1422==============
1423
1424Bug fixes:
1425
1426 - read_types() and write_types() would include png when it wasn't
1427 available due to a problem with the %formats tie
1428
1429 - handle dependent libraries correctly (eg -lpng requiring -lz) in
1430 the code run phase of library probing.
1431
7ac2e52e
TC
1432Imager 0.75_02 - 07 Aug 2010
1433==============
1434
1435Bug fixes:
1436
1437 - add file missing from MANIFEST, which was causing TIFF failures.
1438
496ea64d
TC
1439Imager 0.75_01 - 06 Aug 2010
1440==============
1441
1442Test release for the new PNG probe.
75812841 1443
a596d4f6
TC
1444 - added the ability to read multiple-image PNM files.
1445 Note that unlike the pbm/pgm/ppm specification this accepts mixed
1446 format files and allows white space padding between files.
1447 Thanks to Philip Gwyn (Leolo) for this patch.
1448
1d7e3124
TC
1449 - moved the PNG file handling code into a sub-module in preparation
1450 for separate distribution.
1451 https://rt.cpan.org/Ticket/Display.html?id=49616 (partial)
1452 Also helps avoid complications from -I/-L compile/link options from
1453 other libraries.
1454
75812841
TC
1455Bugs:
1456
1457 - Imager->new(data => $data) didn't try to process image file data in
1458 $data
1459 https://rt.cpan.org/Ticket/Display.html?id=58761
1460
b6071a43
TC
1461 - t/t50basicoo.t no longer depends on the other tests to generate its
1462 input files.
1463 https://rt.cpan.org/Ticket/Display.html?id=9798
1464 Also, it wasn't testing pnm (pnm vs ppm mix-up)
1465
a9da425a
TC
1466 - update the documentation of hardinvert to match the change in 0.62.
1467 https://rt.cpan.org/Ticket/Display.html?id=59785
1468
5558f899
TC
1469 - added hardinvertall filter which also inverts the alpha channel
1470 (sorry for the mess)
1471
10b85929
TC
1472 - when probing for TIFF, set LD_RUN_PATH just as the Makefile does so
1473 the probe can find the library for the test run.
1474 https://rt.cpan.org/Ticket/Display.html?id=57518
1475
75812841 1476Imager 0.75 - 20 Jun 2010
b13a3ddb
TC
1477===========
1478
1479 - use PERL_NO_GET_CONTEXT to slightly improve performance on threaded
1480 perls (not measured)
1481
46e2e4a3
TC
1482Bugs:
1483
8c194049
TC
1484 - an opacity fill based on a fountain fill would segfault when
1485 filling an 8-bit/sample image.
1486
1c5252ed
TC
1487 - merge thickline branch polygon fix
1488 https://rt.cpan.org/Ticket/Display.html?id=43518
1489
41c88ecd 1490Imager 0.74 - 7 May 2010
8d46e5da
TC
1491===========
1492
1493Bug fixes:
1494
1495 - read_multi() didn't handle a missing file format library correctly,
1496 aborting on failing to call i_readgif_multi_wiol() or
1497 i_readtiff_multi_wiol().
1498
5715f7c3
TC
1499 - fix spelling errors patched by Debian
1500 http://svn.debian.org/viewsvn/pkg-perl/trunk/libimager-perl/debian/patches/spelling.patch?revision=54839&view=markup
1501
1502 - add an (unshipped) author test to spellcheck Imager's POD.
7468f3fa 1503
38218f79
TC
1504 - update the TIFF file format documentation
1505 https://rt.cpan.org/Ticket/Display.html?id=56510
1506
e17da819
TC
1507 - lib/Imager/IO.pod was written almost 4 years ago but never shipped.
1508
704f12d5 1509Imager 0.73 - 15 Mar 2010
40068b33
TC
1510===========
1511
1512 - implement outline circles, both anti-aliased and not
1513 https://rt.cpan.org/Ticket/Display.html?id=19755
1514
e958b64e
TC
1515 - a combine => "none" fill to a 1 or 3 channel image would produce
1516 the incorrect colour.
1517
b2db3662
TC
1518Imager 0.72 - 09 Dec 2009
1519===========
1520
1521Bump version for release, since 0.71_03 is stable with CPAN testers.
1522
6936706b
TC
1523Imager 0.71_03 - 5 Dec 2009
1524==============
1525
1526 - further adjust the threads test so it only performs the tests on
1527 perls where it's expected to work, and only if the threads module
1528 can be loaded.
1529
0750777c
TC
1530Imager 0.71_02 - 1 Dec 2009
1531==============
1532
48ad0e66
TC
1533 - adjust the way we load the threads module for the threads test so
1534 it works with non-threaded perls
0750777c 1535
b89f0fcd 1536Imager 0.71_01 - 30 Nov 2009
e41cfe8f
TC
1537===========
1538
1539Bug fixes:
1540
1541 - use scanline oriented operations to flip images instead of pixel
1542 operations
1543 https://rt.cpan.org/Ticket/Display.html?id=39278
1544
1545 - use double/sample operations to flip large sample images instead of
1546 8-bit sample operations.
1547 https://rt.cpan.org/Ticket/Display.html?id=39280
1548
de3ca2fd
TC
1549 - fix POD nits
1550 https://rt.cpan.org/Ticket/Display.html?id=51874
1551
ffddd407
TC
1552 - prevent double-frees when someone creates Imager objects and then
1553 creates a thread. Note: this just handles some simple cases,
1554 Imager doesn't support perl threads, and isn't likely to.
1555 https://rt.cpan.org/Ticket/Display.html?id=52268
1556
3517794b 1557Imager 0.71 - 16 Nov 2009
6a3cbaef
TC
1558===========
1559
a16bae72
TC
1560 - add the opacity fill type - an adaptor that modifies the opacity of
1561 another fill.
1562
6a3cbaef
TC
1563Bug fixes:
1564
1565 - the conv filter now enforces that the sum of the coefficients is
1566 non-zero. Also, rather than skipping pixels off the edge off the
1567 edge of the image, the closest edge pixel is used. Previously
1568 dividing by the zero sum of coefficients could cause invalid
1569 results or runtime exceptions.
1570 Thanks to David Cantrell's Alpha-NetBSD CPAN test box for revealing
1571 this bug.
1572
189d5775 1573Imager 0.70 - 21 Sep 2009
2b82e731
TC
1574===========
1575
1576Bug fixes:
1577
1578 - release image row and comments memory on all error returns in gif
1579 reader
1580
1581 - handle zero length extensions, previously this would cause a null
1582 pointer dereference
1583 Thanks to Krzysztof Wojtaś for the test data and fix for this.
1584
b3afeed5
TC
1585 - an integer division meant that preview scaling to below 1 pixel
1586 wide or high (which isn't too useful anyway) was calculating using
1587 NaNs on most platforms, and causing an exception on others.
1588 Thanks to David Cantrell for producing a backtrace of the crash on
1589 his Alpha-NetBSD CPAN test box which made it possible to track this
1590 down.
1591
b1e29946 1592Imager 0.69 - 08 Sep 2009
25f4e775
TC
1593===========
1594
b1e29946 1595Bug fixes:
25f4e775
TC
1596
1597 - broken test fix - was attempting to call a function skip_all, when
1598 that should be a parameter to plan().
1599
b1e29946
TC
1600 - briefly document apidocs.perl, the tool used to build
1601 Imager::APIRef and make some minor enhancements
1602
1603 - various minor documentation enhancements and fixes.
1604
5920304a 1605Imager 0.68 - 07 Sep 2009
c5f447ac
TC
1606===========
1607
3c252111
TC
1608 - Imager->new(file => $filename) and other similar incantations will
1609 load the given file.
1610 https://rt.cpan.org/Ticket/Display.html?id=48261
1611
c5f447ac
TC
1612Bug fixes:
1613
1614 - avoid using CHECK as a label in Imager::Test
1615 http://nntp.x.perl.org/group/perl.cpan.testers/5220921
1616
0d670555
TC
1617 - re-work most image file test files that require a library into
1618 separate library present/not present files to remove stupidly long
1619 conditionals
1620
1621 - don't treat rubthrough() outside the bounds of the target image as
1622 an error.
1623 http://nntp.x.perl.org/group/perl.cpan.testers/5185716
1624
8d800216
TC
1625Imager 0.67_01 - 02 Sep 2009
1626==============
500888da
TC
1627
1628Bug fixes:
1629
1630 - correct documentation of default of raw image interleave read
1631 parameter
1632 https://rt.cpan.org/Ticket/Display.html?id=42074
1633
1634 - add raw_ prefix to raw read parameters, though the original names
1635 still work.
1636
1637 - fail the read if an invalid raw_interleave parameter is supplied
1638
1639 - warn if no interleave or raw_interleave parameter is supplied,
1640 since the documented default was wrong, and incompatible with the
1641 write format
1642
1643 - for reading raw images, if raw_storechannels > raw_datachannels,
1644 set the extra channels in the image to 0
1645
cd476e58
TC
1646 - when probing for executables like freetype-config, search for .bat
1647 and .cmd on MSWin32, as well as .exe.
1648 https://rt.cpan.org/Ticket/Display.html?id=49275
500888da 1649
f9a39263
TC
1650 - re-work the external libraries section of README:
1651 - list Debian and Redhat package names for each library
1652 - reformatting
1653 - update URLs
1654
f45b774f
TC
1655 - use the new EU::MM META_MERGE facility instead of generating
1656 META.yml from scratch
1657 https://rt.cpan.org/Ticket/Display.html?id=47888
1658
d6b51d8c
TC
1659 - use Devel::CheckLib (bundled, modified) to check which release of
1660 libtiff is installed and reject 3.9.0
78645bd4
TC
1661 http://bugzilla.maptools.org/show_bug.cgi?id=2088
1662 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543079
d6b51d8c 1663
249af030
TC
1664Imager 0.67 - 12 Dec 2008
1665===========
1666
1667Bug fixes:
1668
1669 - fix a packaging error
1670
cca21862 1671Imager 0.66 - 12 Dec 2008
3c8fee33
TC
1672===========
1673
6b22ba84
TC
1674 - 24-bit color .ICO/.CUR files can now be read.
1675
3c8fee33
TC
1676Bug fixes:
1677
6b22ba84
TC
1678 - an optimization skipping 0 src alpha values could cause the
1679 rubthrough() to read past the end of a buffer.
1680 http://www.nntp.perl.org/group/perl.cpan.testers/2008/05/msg1509184.html
1681
5c0d0ddf
TC
1682 - corrected a reference leak where writing GIFs would leak memory.
1683 This could also happen calling to_paletted().
1684 Also documented the underlying long existing feature where the
1685 colors parameter is filled with the generated color table and added
1686 tests for it.
3c8fee33
TC
1687 http://rt.cpan.org/Ticket/Display.html?id=41028
1688
8e7f5809
TC
1689 - write out the image size in bytes field of a BMP correctly.
1690 http://rt.cpan.org/Ticket/Display.html?id=41406
1691
c586eb58
TC
1692 - add limited tests for Imager::ExtUtils
1693
1694 - make Imager::ExtUtils->includes use an absolute path, since
1695 a relative path could cause failures using Inline::C.
1696 http://rt.cpan.org/Ticket/Display.html?id=37353
1697
6b22ba84
TC
1698 - re-arrange the POD for Imager::Font::BBox:
1699 - mark total_width(), pos_width(), end_offset() obsolete, since
1700 they're mostly for backwards compatibility
1701 - group width methods and height methods
1702 https://rt.cpan.org/Ticket/Display.html?id=39999
17d9fe35 1703
0727e3f5 1704Imager 0.65 - 20 May 2008
546ea21c
TC
1705===========
1706
1707Bug fixes:
1708
1709 - In some cases when an error occurs reading those parts of a JPEG
1710 file after the image the scan-line buffer could be freed a second
1711 time. In cases where the the error occured while reading the image
1712 data it's possible that the buffer could have leaked.
1713 Thanks to Gabriel Vasseur for reporting this and help in tracking
1714 it down.
1715
43b2b326
TC
1716 - the gif_screen_height tag was overriding the screen width and being
1717 ignored for the screen height when present.
1718 https://rt.cpan.org/Public/Bug/Display.html?id=35568
1719
e02d22d2 1720Imager 0.64 - 23 April 2008
de470892
TC
1721===========
1722
e02d22d2
TC
1723This is a bug fix release. This includes a fix for a possible
1724security issue.
1725
de470892
TC
1726Bug fixes:
1727
e02d22d2
TC
1728 - Possible security issue: The floating point sample path for image
1729 based fills had a buffer overflow. This would overwrite the end of
1730 a malloc()ed buffer with double precision floats.
1731 http://rt.cpan.org/Ticket/Display.html?id=35324
6912d85a 1732 CVE-2008-1928
e02d22d2 1733
de470892
TC
1734 - check that the result of fileno($fh) is defined rather than simply
1735 true when read() or write() is supplied with an fh parameter.
1736 http://rt.cpan.org/Ticket/Display.html?id=35139
1737
1738 - i_scale_axis() wasn't checking the result of i_img_new_ch()
1739 resulting in a SIGSEGV when attempting to scale an image to a size
1740 too large to fit in memory. This is a NULL pointer access issue,
1741 not a buffer overflow.
1742 Added a check for the failure.
1743 scale_calculate() (and hence scale()) will now fail if any of the
1744 scale size parameters are a reference.
1745 http://rt.cpan.org/Ticket/Display.html?id=35172
1746
04f85f63
TC
1747 - Regression: filling a greyscale image with a hatch used the wrong
1748 color channels from the supplied fg/bg colors.
1749 https://rt.cpan.org/Ticket/Display.html?id=35278
1750
a256aec5
TC
1751 - fixed a related problem for image fills.
1752
49240201 1753Imager 0.63 - 7 April 2008
33b0ffa6
TC
1754===========
1755
242d7497
TC
1756This release primarily contains changes to improve ease of use -
1757rather than you having to convert images to the appropriate number of
1758channels, Imager handles it internally. How to handle drawing colors
1759and the default combine mode is a thornier problem left for some other
1760release.
1761
d1555273
TC
1762 - the font libraries are now only initialized when needed.
1763 http://rt.cpan.org/Ticket/Display.html?id=28825
1764
9b1ec2b8
TC
1765 - moved the imtoc.perl code into Imager::Preprocess
1766
1767 - paste() and rubthrough() now adapt the source image data to the
1768 destination, so you can now safely paste/rubthrough from greyscale
1769 images to color images or back, or from alpha channel images to
1770 noalpha channels or back.
1771 https://rt.cpan.org/Ticket/Display.html?id=30908
1772
1773 - rubthrough() now falls back to pasting when the source doesn't have
1774 an alpha channel. This effectively treats the source as having a
1775 max alpha channel, the right thing to do.
1776 http://rt.cpan.org/Ticket/Display.html?id=29944
1777
1778 - re-worked most of the area filling code to use a common set of
1779 functions when filling.
1780 Corrected normal combine mode.
1781 Rewrote most of the combine modes to match the way the SVG draft
1782 defines them with respect to a translucent source and destination.
1783 Added tests for translucent source and destination.
1784 Added tests to check 8-bit/sample and double/sample combines work
1785 similarly.
1786 https://rt.cpan.org/Ticket/Display.html?id=29879
1787
07d9c639
TC
1788 - writing a 2 or 4 channel image to a JPEG file will now write that
1789 image as if composited against a background, black by default,
1790 overridable with the i_background tag/parameter.
6e4af7d4
TC
1791 https://rt.cpan.org/Ticket/Display.html?id=29876
1792
07d9c639
TC
1793 - writing a 2 or 4 channel image to a PGM/PPM file will now write
1794 that image as if composited against a background, black by default,
fa90de94
TC
1795 overridable with the i_background tag/parameter.
1796 http://rt.cpan.org/Ticket/Display.html?id=30074
1797
07d9c639
TC
1798 - writing a 2 or 4 channel image to a BMP file will now write that
1799 image as if composited against a background, black by default,
1800 overridable with the i_background tag/parameter.
1801 http://rt.cpan.org/Ticket/Display.html?id=30075
1802
33b0ffa6
TC
1803Bug fixes:
1804
1805 - Imager::Matrix2d->translate() now only requires one of the x or y
1806 parameters.
1807 http://rt.cpan.org/Ticket/Display.html?id=29937
1808
2757bad0
TC
1809 - mixing qtype scaling now sets all channels of a pixel to zero if
1810 the pixel has zero coverage (zero alpha). This should produce more
1811 compressible output files.
1812 http://rt.cpan.org/Ticket/Display.html?id=32324
1813
3da08517
TC
1814 - removed the pointless #! line from lib/Imager/Font/Wrap.pm
1815 Noticed when I saw:
1816 https://bugzilla.redhat.com/show_bug.cgi?id=166254
1817 I'm not changing the #! lines of the sample code, since it's sample
1818 code, not intended for installation.
1819 http://rt.cpan.org/Ticket/Display.html?id=33408
1820
242d7497
TC
1821 - some TGA images weren't being detected correctly as TGA images
1822 https://rt.cpan.org/Ticket/Display.html?id=32925
1823
1824 - handling of the left-over bit for 16-bit/pixel TGA images has been
1825 changed to match the behaviour of the GIMP. Previously the bit
1826 being set was treated as an opaque pixel, but one user reported a
1827 problem with loading such an image. I haven't been able to find any
1828 tools beyond the GIMP that handle alpha-channel 16-bit TGAs, so
1829 I'll match it's behaviour. See issue 114913 in the GIMP's
1830 bugzilla.
1831 http://rt.cpan.org/Ticket/Display.html?id=32926
1832
5daa9d34 1833Imager 0.62 - 10 December 2007
ac8138b0
TC
1834===========
1835
d8e0c3ba
TC
1836 - Makefile.PL now expands ~/path supplied to --incpath or --libpath
1837 to /path under your home directory.
1838 http://rt.cpan.org/Ticket/Display.html?id=29484
1839
50ff958e
TC
1840 - the old dynaload code used Mach API functions to load dynamic
1841 libraries on Mac OS X. These APIs have been deprecated in OS X
1842 10.5 and were causing some build problems.
1843 So henceforth Imager uses the dlopen() family of functions, and you
1844 will need version 10.3 or later of OS X.
1845
3309187a
TC
1846 - added the det() function to the transform2() engine.
1847 added the sample quad_to_square.pl
1848 Courtesy Richard Fairhurst.
1849 http://rt.cpan.org/Ticket/Display.html?id=31244
1850
ac8138b0
TC
1851Bug fixes:
1852
1853 - samples/gifscale.pl sourced the base value for gif_top from
1854 gif_left.
1855 Thanks to Eleneldil G. Arilou for pointing this out.
1856
678a9a65
TC
1857 - t/t82inline.t no longer loads B at runtime, to work around a bug
1858 in some 5.005_0[45] installations.
1859 http://rt.cpan.org/Ticket/Display.html?id=30508
1860
1861 - work around Module::Depends::Intrusive bug #21229
1862 http://rt.cpan.org/Ticket/Display.html?id=30520
ac8138b0 1863
bea65b1f
TC
1864 - the hardinvert filter no-longer inverts the alpha channel.
1865 http://rt.cpan.org/Ticket/Display.html?id=30002
1866
1867 - the hardinvert filter now supports large samples
1868
b7809486 1869Imager 0.61_02 - 28 November 2007
f74e6efc 1870==============
874c55db 1871
bd8052a6
TC
1872 - major TIFF support re-work
1873 http://rt.cpan.org/Ticket/Display.html?id=20329
1874
1875 - added a C level image interface for accessing samples from 1-32
1876 bits, exposed this at the perl level in getsamples()
1877
1878 - the conv filter now works at floating point precision for high bit
1879 images
1880
1881 - added is_bilevel method to test whether an image should be written as
1882 a bilevel image if the image format supports it.
1883
1884 - added -log-stderr as an Imager import list option
1885
1886 - added some important types to Imager::APIRef
1887
1888 - added test_image_double() to Imager::Test
1889
874c55db
TC
1890Bug fixes:
1891
1892 - Imager::Fountain couldn't read GIMP gradient files with 10 or more
1893 segments
1894
1895 - the scale() method with qtype mixing now handles images with an
1896 alpha channel correctly.
1897
8d17eae9
TC
1898 - fixed a broken link from the "animated GIF" entry in the concept index.
1899 Thanks to Slaven Rezic.
1900 http://rt.cpan.org/Ticket/Display.html?id=30889
1901
d3bf4eaf
TC
1902 - on some perl's the infix expression parser test would fail due to
1903 actions in the grammar returning false. Made sure all actions return
1904 a true value.
8b96ad6b
TC
1905 Thanks to Richard Fairhurst for spending a lot of time in tracking
1906 down this problem.
680c329d 1907 http://rt.cpan.org/Public/Bug/Display.html?id=29562
d3bf4eaf 1908
d06f6707 1909Imager 0.61 - 5 November 2007
1cfa190e
TC
1910===========
1911
1912 - added samples/gifscale.pl, which adjusts the screen size/position tags
1913 when scaling an animated gif
1914 http://rt.cpan.org/Ticket/Display.html?id=27591
1915
8a2cd317
TC
1916Bug fixes:
1917
e7ac18bd
TC
1918 - correct handling of sz in matrix_transform() - this should allow
1919 perspective type transformations to work now.
1920 http://rt.cpan.org/Ticket/Display.html?id=29936
1921
8a2cd317
TC
1922 - prevent a cast to integer warning on x64 builds in datatypes.c
1923 also fixed some other type warnings
1924 https://rt.cpan.org/Ticket/Display.html?id=30204
1925
9188b23e
TC
1926 - some sub-directory tests depended on files produced by the parent
1927 directory tests
1928 http://rt.cpan.org/Ticket/Display.html?id=30203
1929
7febff1d
TC
1930 - Imager::Font::Wrap doesn't correctly set savepos
1931 thanks to Nikita Dedik and Eleneldil G. Arilou for reporting this.
1932 http://rt.cpan.org/Ticket/Display.html?id=29771
1933
76411e99
TC
1934 - test 171 in t/t01introvert.t was failing on perls configured to
1935 use long double.
1936 http://rt.cpan.org/Ticket/Display.html?id=29413
1937
3f29de50
TC
1938 - the code for the transform2() uminus operator was missing a break.
1939 Added tests for better code coverage of the ops.
1940 http://rt.cpan.org/Ticket/Display.html?id=29296
1941
ed107438
TC
1942 - the SGI RLE compression code could overflow its compression buffer
1943 http://rt.cpan.org/Ticket/Display.html?id=30334
1944
1945 - the 32-bit output function used by the SGI code only handled values
1946 under 0x10000. This was most noticable when writing large RLE images.
1947 http://rt.cpan.org/Ticket/Display.html?id=30335
1948
c7481ae1
TC
1949 - validate chan_count for chans == NULL for each of the i_gsamp()
1950 implementations.
1951 http://rt.cpan.org/Ticket/Display.html?id=28985
1952
ff37fc3f
TC
1953 - attempt to work around the test failure at
1954 http://www.nntp.perl.org/group/perl.cpan.testers/2007/09/msg650810.html
1955 http://rt.cpan.org/Ticket/Display.html?id=29562
1956
f245645a
TC
1957 - improve the error messages produced when attempting to read or write
1958 an unknown image file format.
1959 http://rt.cpan.org/Ticket/Display.html?id=30103
1960
333d7485
TC
1961 - improve the transform2() documentation
1962 http://rt.cpan.org/Ticket/Display.html?id=29267
1963
3b115720
TC
1964 - correctly generate the author key in META.yml
1965 http://rt.cpan.org/Ticket/Display.html?id=30377
1966
13c9a303
TC
1967 - correctly blend a rotated (or matrix_transformed()) image when
1968 performing interpolation in the presence of an alpha channel.
8a071022
TC
1969 Also corrected the centring of the rotated image on the output
1970 image.
13c9a303 1971
0e622083 1972Imager 0.60 - 30 August 2007
bcff4dd9
TC
1973===========
1974
d5477d3d
TC
1975 - Finished/rewrote Arnar's old SGI RGB file format support, so Imager
1976 now has full SGI RGB image format, including RLE and 16-bit/sample
1977 images.
1978 https://rt.cpan.org/Ticket/Display.html?id=8666
1979
1980 - logging functions are now available in the API
1981
a60905e4
TC
1982 - applied Gabriel Vasseur's patch
1983 added documentation, further tests, and support for greyscale images
1984 Obviously problems are my fault :)
1985 https://rt.cpan.org/Ticket/Display.html?id=28142
1986
413dc198
TC
1987 - the mask for ICO/CUR images is now applied as an alpha channel to
1988 the returned image. For the old behaviour, supply ico_masked => 0
1989 to read() or read_multi(). This should be less confusing when
1990 using Imager as a general image processor.
1991 https://rt.cpan.org/Ticket/Display.html?id=29001
1992
bcff4dd9
TC
1993Bug fixes:
1994
1995 - in some cases it's possible for giflib/libungif to return color
1996 indexes outside the range of colors defined by the image's palette.
1997 We now expand the palette to match the indexes used.
1998 Thanks to Gabriel Vasseur for reporting this.
1999
02576e8d
TC
2000 - fixed various memory leaks that could occur when failing to read png,
2001 jpeg, bmp or tga files.
2002
b3aa972f
TC
2003 - to avoid confusion, channels not present in the image are returned as
2004 zero by getscanline(). This has no effect on the C level i_glin()
2005 and i_glinf() API functions which continue to not set the unused
2006 channels.
2007
d5477d3d
TC
2008 - the convert() method now returns an image of the same sample size as
2009 the source image.
2010 https://rt.cpan.org/Ticket/Display.html?id=28492
2011
baa880ef
TC
2012 - remove repeated text in Imager::Files
2013 http://rt.cpan.org/Ticket/Display.html?id=27589
2014
2015 - be even more explicit that scale() and friends don't modify the source
2016 image, but return a new image.
2017 http://rt.cpan.org/Ticket/Display.html?id=28570
2018
0561d49c
TC
2019 - improve the error message from errstr() when you try to load a font
2020 for which the driver hasn't been built in Imager.
2021 http://rt.cpan.org/Ticket/Display.html?id=27571
2022
d8a39ce0
TC
2023 - transparency is now enabled by default when writing GIF images
2024 http://rt.cpan.org/Ticket/Display.html?id=27615
2025
5730d6e7
TC
2026 - Imager would not load on Windows 98
2027 http://rt.cpan.org/Ticket/Display.html?id=27653
2028
b4996113 2029Imager 0.59 - 14 June 2007
e6e94ab0
TC
2030===========
2031
2032Bug fixes:
2033
2034 - fixes a regression introduced by the fixes for RT 11972
2035 http://rt.cpan.org/Ticket/Display.html?id=27546
2036
9fc9d0ca
TC
2037 - cropping outside the image would return an Imager object with
2038 no low-level image object, instead of returning false.
2039 Fixed by: Philip Gwyn (Leolo)
2040 http://rt.cpan.org/Ticket/Display.html?id=27509
2041
7e7508dd
TC
2042Imager 0.58 - 16 May 2007
2043===========
2044
2045No significant changes from 0.57_01.
2046
1970a2c7
TC
2047Imager 0.57_01 - 11 May 2007
2048==============
d034a178 2049
f8e36694
TC
2050 - added to_rgb16 to produce a 16-bit/sample version of an image
2051
95b2bff4
TC
2052 - improve freetype 1.x text output efficiency
2053
d034a178
TC
2054Bug fixes:
2055
2056 - search another place for rgb.txt, and check all the places
2057 Imager::Color checks when deciding whether to skip testing it
2058 http://rt.cpan.org/Ticket/Display.html?id=26064
2059
73962964
TC
2060 - use a convolution kernel size based on the stddev rather than a
2061 fixed size when performing a gaussian blur
2062 http://rt.cpan.org/Ticket/Display.html?id=25645
2063
01b84320
TC
2064 - document the difference() method's mindist parameter, and debug it.
2065
7e7508dd 2066 - put the Imager release number in the Inline::C generated code to
22f9ca48
TC
2067 regenerate Inline code when a new release of Imager is installed.
2068 http://rt.cpan.org/Ticket/Display.html?id=26278
2069
fa16b6c6
TC
2070 - fix rendering on alpha channel images for the FreeType 1.x driver.
2071 http://rt.cpan.org/Ticket/Display.html?id=11972
2072
4c84ccfb
TC
2073 - fix rendering on alpha channel images for the T1lib driver.
2074 http://rt.cpan.org/Ticket/Display.html?id=11972
2075
1fe8316b
TC
2076 - reworked library probing, we can now set more than one probe
2077 function for a library. Disabled the default (non-freetype-config)
2078 library probe and added an extra probe function that searches for
2079 both ft2build.h and whatever it includes, and adds -I as needed.
2080 Hopefully this will fix build problems like
2081 http://www.nntp.perl.org/group/perl.cpan.testers/2007/05/msg472281.html
2082 http://rt.cpan.org/Ticket/Display.html?id=26086
2083
bb5712de
TC
2084Imager 0.57 - 30 Apr 2007
2085===========
2086
2087This is a maintenence release fixing a security issue in Imager.
2088
2089 - CRITICAL: a specially crafted compressed BMP file can cause a buffer
2090 overflow in malloced memory. There will be further discussion of
2091 this issue in the ticket below.
2092 http://rt.cpan.org/Ticket/Display.html?id=26811
7e7508dd
TC
2093 CVE-2007-2459 CVE-2007-2413
2094 The descriptions at cve.mitre.org varied in quality, please see the
2095 ticket at rt.cpan.org for a more accurate description of the issue.
bb5712de 2096
d034a178 2097Imager 0.56 - 1 Apr 2007
7623d340
TC
2098===========
2099
2100 - added support for reading 16-bit/sample PGM/PPM images
2101
2102 - added support for writing 16-bit/sample PGM/PPM images
2103
2104 - improved performance of reading PBM/PGM/PPM images
2105
2106 - added support for writing PBM images if the image is paletted and
2107 contains only black and white
2108
2109 - added a new make_colors value - "mono"
2110
2111 - switched from the svn log Changes to a manual Changes to reduce
2112 noise
2113
1225d272
TC
2114 - new sample code - samples/flasher.pl
2115
7623d340
TC
2116Bug fixes:
2117
2118 - CRITICAL: the "Imager" typemap entry (not used by Imager itself)
2119 was returning an image object with an extra reference, this
2120 resulted in a memory leak.
2121 http://rt.cpan.org/Ticket/Display.html?id=24992
2122
2123 - fix rendering on alpha channel images for the FreeType 2.x driver
2124 http://rt.cpan.org/Ticket/Display.html?id=11972
2125
2126 - reading bmp files now consitently handles short reads. You can now
2127 supply a parameter to treat a short read as successful and set
2128 i_incomplete
2129 http://rt.cpan.org/Ticket/Display.html?id=8426
2130
2131 - previously, reading ASCII PBM files required spaces between samples,
2132 even though the format doesn't require that
2133
1225d272
TC
2134 - improved documentation of the unsharpmask filter (I hope)
2135 http://rt.cpan.org/Ticket/Display.html?id=25531
2136
2137 - force flushing of the output from i_tt_dump_names() and test output
2138 in t/t35ttfont.t to prevent output from being mixed up.
2139 https://rt.cpan.org/Ticket/Display.html?id=24859
2140
2141 - rewrite a conditional expression as an if() to hopefully work around
2142 a bug in the pre-4.0 GCC Apple shipped with OS X 10.4.
2143 https://rt.cpan.org/Ticket/Display.html?id=25561
2144
2145 - avoid Data::Dumper in regops.perl to support older releases of perl
2146 https://rt.cpan.org/Ticket/Display.html?id=24391
2147
7623d340
TC
2148Imager 0.55 - 16 Dec 2006
2149===========
2150
2151This is primarily a bug fix release.
2152
2153Note: Test::More is now a pre-requisite for Imager and is no longer bundled.
2154
2155There is one new feature:
2156
2157 - the Win32 font driver now supports UTF8 (RT 22166)
2158 http://www.cpanforum.com/threads/3276
2159 http://rt.cpan.org/Ticket/Display.html?id=22166
2160
2161Several bugs were fixed:
2162
2163 - the string() method would not output the string "0"
2164 http://rt.cpan.org/Public/Bug/Display.html?id=21770
2165
2166 - fills.c was failing to compile on Solaris 10 (compiler unknown)
2167 http://rt.cpan.org/Public/Bug/Display.html?id=21944
2168
2169 - the gif_disposal and gif_user_input tags weren't being read from
2170 the file correctly
2171 http://rt.cpan.org/Public/Bug/Display.html?id=22192
2172
2173 - gif.c was failing to build under MSVC
2174 http://rt.cpan.org/Ticket/Display.html?id=23922
2175
2176 - in some cases strings passed to the string() method were treated as
2177 terminated by NUL (chr 0)
2178 http://rt.cpan.org/Public/Bug/Display.html?id=21770
2179
2180 - on "MSWin32" perl builds we now link to -lzlib instead of -lz since
2181 that's the default build name for zlib on Win32.
2182 http://rt.cpan.org/Ticket/Display.html?id=23064
2183
2184 - search $Config{incpath} for headers too, which we should have been
2185 doing all along.
2186
2187Win32 font driver fixes:
2188
2189 - the global descent value from bounding box was the wrong sign
2190 http://www.cpanforum.com/threads/3276
2191
2192 - if the first or last glyph overflowed the left or right side of the
2193 advance width they would be clipped
2194
2195
2196Imager 0.54 - 14 Sep 2006
2197===========
2198
2199This is primarily a feature release:
2200
2201 - a new qtype value 'mixing' has been added to the scale()
2202 method. This is faster than 'normal', slower than 'preview'. This
2203 is based on the method used by pnmscale, and seems to produce less
2204 blurry results than normal.
2205 http://rt.cpan.org/Public/Bug/Display.html?id=20677
2206
2207 - the rubthrough() method can now render onto images with an alpha
2208 channel.
2209 http://rt.cpan.org/Ticket/Display.html?id=20678
2210
2211 - the read_multi() method now falls back to calling doing a single
2212 image read via the read() method and write_multi() will now fall
2213 back to calling write() if a single image is supplied. This means
2214 you can simply call the read_multi() or write_multi() functions
2215 without having to check if the type is formatted by that method.
2216 http://rt.cpan.org/Ticket/Display.html?id=19457
2217 http://rt.cpan.org/Ticket/Display.html?id=19458
2218
2219 - the GIF loop extension can now be written. If you don't have
2220 libungif/giflib 4.1.4 (or some distribution's bugfixed equivalent) you
2221 should upgrade.
2222 http://rt.cpan.org/Ticket/Display.html?id=21185
2223
2224 - getscanline() and setscanline() can now read/write palette index
2225 based data from/to the image for paletted images, by setting type to
2226 'index'.
2227 http://rt.cpan.org/Ticket/Display.html?id=20338
2228
2229 - we no longer hassle you to disable GIF support
2230 http://rt.cpan.org/Ticket/Display.html?id=20687
2231
2232 - minor documentation fixes
2233
2234
2235Imager 0.53 - 26 Jul 2006
2236===========
2237
2238This is a bugfix release.
2239
2240Some test code was left in a code path not covered by the test
2241suite. A test was added to cover this code path and the test code was
2242removed.
2243http://rt.cpan.org/Public/Bug/Display.html?id=20705
2244
2245
2246Imager 0.52 - 25 Jul 2006
2247===========
2248
2249This is primarily a feature release, but contains a fair few bug
2250fixes, new features:
2251
2252 - ability to read and write MS Windows ICO and CUR files
2253
2254 - you can now add file format plugins to support new file formats
2255
2256 - add POD coverage tests
2257
2258 - setcolors() and addcolors() now accept color names and so on
2259 instead of requiring Imager::Color objects.
2260 http://rt.cpan.org/Ticket/Display.html?id=20056
2261
2262 - flood_fill() can now fill to a specified border color instead of
2263 just to the area the same color as the seed.
2264 http://rt.cpan.org/Ticket/Display.html?id=19618
2265
2266
2267Bug fixes:
2268
2269 - bounding_box for the T1 driver wasn't converting UTF8 to ascii when
2270 calculating the advance width.
2271 http://rt.cpan.org/Public/Bug/Display.html?id=20554
2272
2273 - bounding_box for the T1 driver wasn't including leading and
2274 trailing spaces in the bounding box as the other drivers did, it also
2275 produced strange results for empty strings or strings containing only
2276 spaces
2277
2278 - when reading CMYK jpeg images they were being transferred to the
2279 image object as is, producing a four channel image. It only looked ok
2280 due to an old still unfixed Photoshop bug. We now convert from the
2281 inverted CMYK that photoshop (and Corel for example) produce into RGB.
2282 http://rt.cpan.org/Ticket/Display.html?id=20416
2283
2284 - reading a CYMK TIFF would result in a 4 channel image, reading any
2285 image with more than 4 channels (eg. RGB with 2 alpha channels) would
2286 result in an error.
2287 http://rt.cpan.org/Ticket/Display.html?id=20415
2288
2289 - added /usr/local/include to the default include search path, since
2290 we were already searching /usr/local/lib for libraries.
2291
2292And various minor fixes and documentation updates.
2293
2294
2295Imager 0.51 - 23 Apr 2006
2296===========
2297
2298 - fix a validation bug when processing JPEG EXIF data that can cause
2299 a crash
2300 http://rt.cpan.org/Public/Bug/Display.html?id=18496
2301
2302 - fix mis-processing of the src_maxx and src_maxy parameters of the
2303 paste() method
2304 http://rt.cpan.org/Public/Bug/Display.html?id=18712
2305
2306 - fix a problem in Imager's "smart" handling of the color parameter
2307 to various methods.
2308 http://rt.cpan.org/Public/Bug/Display.html?id=18561
2309
2310
2311Imager 0.50 - 29 Mar 2006
2312===========
2313
2314 - CRITICAL: fixes a segmentation fault from attempting to write a 2
2315 or 4 channel image to jpeg or a 2 channel image to tga where the
2316 output is an in-memeory buffer.
2317 http://rt.cpan.org/Public/Bug/Display.html?id=18397
2318
2319 - fixes an incorrect pointer parameter in the PNG code
2320 http://rt.cpan.org/Public/Bug/Display.html?id=18051
2321
2322 - skip Inline::C tests when building in a directory with spaces
2323 http://rt.cpan.org/Public/Bug/Display.html?id=18049