X-Git-Url: http://git.imager.perl.org/imager.git/blobdiff_plain/289d65f4ad09b37ae9061ab1accb0323bdfb1930..15b3f5f2ffcadf032de89ed7952d626ff45228c8:/Changes diff --git a/Changes b/Changes index a9e302b9..f6d423bb 100644 --- a/Changes +++ b/Changes @@ -1,14 +1,377 @@ Imager release history. Older releases can be found in Changes.old - - eliminate the old IIM_new(), IIM_DESTROY() names from Imager's - internals, those names only matter for the XS interface. +Imager 0.99 - 25 Jun 2014 +=========== - - improve error reporting when PERL_INITIALIZE_IMAGER_CALLBACKS finds - the API level compiled into a loadable module such as - Imager::File::GIF doesn't match that of Imager. Previously it - could be difficult to determine exactly which module was failing to - load. - https://rt.cpan.org/Ticket/Display.html?id=77173 + - Imager::IO->new_buffer() (and hence Imager->read()'s data + parameter) now accepts a reference to a scalar as well as just a + plain scalar. + https://rt.cpan.org/Ticket/Display.html?id=92785 + + - Imager::IO->new_buffer() now always makes a copy of the passed in + buffer to avoid problems with temporary objects used for the return + value of SvPVbyte(). + https://rt.cpan.org/Ticket/Display.html?id=92785 + + - improved the XS for i_io_read() and i_io_raw_read() + https://rt.cpan.org/Ticket/Display.html?id=92738 + + - load plugins from absolute paths on Android + Thanks to Brian Fraser. + https://rt.cpan.org/Ticket/Display.html?id=93272 + + - added the jpeg_optimize parameter for writing JPEG files. This can + significantly reduce file sizes, but uses more memory and time. + https://rt.cpan.org/Ticket/Display.html?id=94292 + + - the autolevels filter now works on the luminosity of the image + rather then working per channel. The old autolevels filter is + still available as "autolevels_skew". + https://rt.cpan.org/Ticket/Display.html?id=94413 + + - Imager::File::PNG now supports libpng 1.6.10. + 1.6.10 changed CRC errors from benign errors to normal errors, + which broke the test which used CRC errors to check for benign + error support. Switched to using a 1-bit grey-scale image with a + palette to test for benign errors. + https://rt.cpan.org/Ticket/Display.html?id=94717 + +Imager 0.98 - 3 Jan 2014 +=========== + +Incompatible changes: + + - the return value of setpixel() has changed. + + Previously the return values for undrawable pixels vs caller errors + changed depending on whether you used the multiple pixel calling + mechanism, or the single pixel mechanism. + + Now: + + - for an invalid parameter, such as an unknown colour, or missing + parameter, an empty list (or undef in scalar context) is + returned, and errstr() is set, + + - otherwise the number of pixels drawn is returned. If none of + the pixels could be drawn (they were all outside the image), "0 + but true" is returned. + + https://rt.cpan.org/Ticket/Display.html?id=87650 + +Other changes: + + - when drawing on an image with an alpha channel where the source + minimum is greater than zero, Imager would read from beyond the end + of a malloc() allocated buffer. In rare circumstances this could + lead to some of the source image not being written to the target + image, or possibly to a segmentation fault. + I don't believe this has any security concerns beyond that. + + - if the first text drawn with Imager::Font::T1 is not anti-aliased, + text drawn would be nonsense. This would also read beyond the end + of a malloced buffer. + + - non-AA text drawn with an Imager::Font::TT (Truetype 1) font would be + truncated early. + https://rt.cpan.org/Ticket/Display.html?id=88993 + + - Imager::Font::Wrap no longer requires the image parameter. + https://rt.cpan.org/Ticket/Display.html?id=87338 + + - a documentation typo fix in Imager::Transformations + Thanks to Adrian Yee. + https://rt.cpan.org/Ticket/Display.html?id=88598 + + - Image::Probe, Imager's internal module for probing library + locations now searches the directories specified by LD_RUN_PATH, + LD_LIBRARY_PATH, DYLD_LIBRARY_PATH and LIBRARY_PATH for libraries, + and the corresponing s/\blib$/include/ directories for header + files. + https://rt.cpan.org/Ticket/Display.html?id=86428 + +Imager 0.97 - 15 Jul 2013 +=========== + +No changes from 0.96_02. + +Imager 0.96_02 - 8 Jul 2013 +============== + + - PNG: treat a version mismatch between headers and library as a + probe failure. + https://rt.cpan.org/Ticket/Display.html?id=86659 + + - PNG: the check for benign error support is more complex than a + simple library version check, check for the appropriate macro. + Thanks for Slaven Rezic for following up on my CPAN Testers result + queries. + https://rt.cpan.org/Ticket/Display.html?id=86659 + + - W32: add a missing head1 AUTHORS to the old Win32.pm + https://rt.cpan.org/Ticket/Display.html?id=86658 + +Imager 0.96_01 - 1 Jul 2013 +============== + + - TIFF: handle SampleFormat = 2 by translating the signed integer + values to unsigned by flipping their sign bits. + + Handle SampleFormat = 3 where possible. + + SampleFormat is ignored for paletted images. + + Mixed SampleFormat are handled incorrectly, since libtiff returns + only the first SampleFormat value, and an image with both an alpha + channel and SampleFormat = 2 for color channels probably has a + different SampleFormat for the alpha channel. + + https://rt.cpan.org/Ticket/Display.html?id=74540 + + - XS clean up: + https://rt.cpan.org/Ticket/Display.html?id=69243 + + - Imager::Color's rgba() method now returns its values as integers + instead of floating point. (IV instead of NV). + + - The XS for i_map() and i_matrix_transform() now use the AV * + typemap instead of rolling their own. + + - The XS for DSO_call() now uses the HV * typemap instead of + rolling it's own. + + - The XS for i_poly_aa(), i_poly_aa_cfill(), i_transform() and + i_gradgen() now use a new T_AVARRAY typemap that greatly + simplifies the XS code. + + - many other minor XS changes + + - some XS code formatting + + - TT (Freetype 1.x) and FT2 (Freetype 2.x) non-antialiased rendering + now renders in alpha-combining mode, to match antialiased output. + https://rt.cpan.org/Ticket/Display.html?id=73359 + + - add sample code and cookbook notes for drawing a blurred drop-shadow. + + - add support for libpng 1.6, which changed the defaults for + reporting some types of error. + https://rt.cpan.org/Ticket/Display.html?id=85746 + + - FT2: use gsamp/psamp() to transfer pixels from the work image to + the output image instead of gpix/ppix. + https://rt.cpan.org/Ticket/Display.html?id=83478 + + - eliminate various GCC warnings, mostly initialized but otherwise + unused variables. + +Imager 0.96 - 19 May 2013 +=========== + + - rearrange Imager's test files. + https://rt.cpan.org/Ticket/Display.html?id=84596 + + - Imager::Probe::_gcc_lib_paths now forces C locale. + A sufficiently recent gcc prints localized keys for the search + paths, which avoids that localization. + https://rt.cpan.org/Ticket/Display.html?id=84963 + + - fix a pod error detected by Pod::Simple 3.27 and laterm and skip + pod tests unless AUTOMATED_TESTING or IMAGER_AUTHOR_TESTING is set + and true. + https://rt.cpan.org/Ticket/Display.html?id=85262 + reported by Andreas König + + - add a test for unclosed POD in C source, and fix the errors it + found. + https://rt.cpan.org/Ticket/Display.html?id=74875 + + - fix some spelling errors detected by the newer aspell in Debian + Wheezy. + + - remove a trailing ' from lib/Imager/Font/Test.pm's POD + thanks to gregor herrmann + https://rt.cpan.org/Ticket/Display.html?id=85413 + + - add a test for standard =head1 commands and fix the errors found + +Imager 0.95 - 19 Apr 2013 +=========== + + - handle the SVf_UTF8 flag correctly on magic strings passed to + Imager::IO's write() and raw_write() methods. + This may misbehave in perl 5.6.x since the UTF8 flag may not be + visible in the main SV after SvGETMAGIC(). + https://rt.cpan.org/Ticket/Display.html?id=83438 + + - document that bounding_box() ignores the transformation matrix + supplied to tranform() for fonts. + https://rt.cpan.org/Ticket/Display.html?id=84106 + +Imager 0.94_02 - 5 Apr 2013 +============== + + - enable debug logging for the standard font tests + + - skip the overloaded UTF-8 text output checks on 5.6.x and earlier, + due to a bug in that version of perl. + + - don't test for read() failing on a write-only handle in 5.8.x and + earlier, this was fixed in change 862083f7e4 in perl. + + - report the version of Inline found during testing (an attempt to + diagnose some intermittent failures.) + +Imager 0.94_01 - 2 Mar 2013 +============== + + - NOTE: possibly backward incompatible: + support reading from/writing to perl filehandes that aren't raw + files. + + This allows Imager's I/O to honour handles with layers such as + gzip, scalar file handles or tied file handles. + + This is backward incompatible in that previous Imager would simply + use fileno() to retrieve the fd for the file and call write(2) etc + on it directly. + https://rt.cpan.org/Ticket/Display.html?id=78843 + + - moved most of README to lib/Imager/Install.pod which should make it + more accessible to the "web" generation, also significantly updated + and re-worked it. + + - updated README's for the separately distributed modules to refer to + Imager::Install, and that they need -dev versions of packages + https://rt.cpan.org/Ticket/Display.html?id=81265 + + - the JPEG test code now reports the compile-time library version + + - avoid a possible compiler optimization issue on CentOS 5.9 i386 by + rearranging (and mildly optimizing) some code. + https://rt.cpan.org/Ticket/Display.html?id=83212 + + - fix a POD error in Imager::Fill (detected on new Pod-Simple) + https://rt.cpan.org/Ticket/Display.html?id=83434 + + - fix a broken link to Graphics::Magick + https://rt.cpan.org/Ticket/Display.html?id=82743 + + - drawing text to a channel with FT2 would draw with random coverage + due to an uninitialized alpha channel. + + - marked the function pointer underlying the mm_log() API with the + correct gcc magic and fixed the resulting warnings. + + - fixed some other compiler warnings + + - Imager::Font::W32 now properly reports text drawing errors + https://rt.cpan.org/Ticket/Display.html?id=70098 + + - handle the SVf_UTF8 flag correctly on magic (eg. overloaded) + strings passed as text to draw(), bounding_box(), has_chars(), + glyph_names() (where supported) in each of the font drivers. + This may misbehave in perl 5.6.x since the UTF8 flag may not be + visible in the main SV after SvGETMAGIC(). + https://rt.cpan.org/Ticket/Display.html?id=83438 (partial) + +Imager 0.94 - 15 Dec 2012 +========================= + +Variations on some of these changes were included in development +releases. + + - improved thread safety + - the internal error stack and log file handle are now in a per-thread + context object + - JPEG now captures IPTC information in a thread-safe way + - avoid globals where possible for warning capture in libtiff + - use a mutex to avoid re-entering thread-unsafe giflib + - use a mutex to avoid re-entering thread-unsafe tifflib + - use a mutex to avoid re-entering thread-unsafe T1Lib + - use a library handle per thread for freetype 2. + - use an engine handle per thread for freetype 1.x. + - originally these changes broke ABI compatibility, this has been + restored. + + - clarify the return value of getpixel(); + https://rt.cpan.org/Ticket/Display.html?id=81198 + + - fixed a race condition in parallel testing for T1 + + - fixed a bug in handling yoff for untransformed image-based fills + + - documentation improvements for Imager::Fill + + - FT2: report the library version while testing. + +Imager 0.93 - 15 Oct 2012 +=========== + +Bug fixes: + + - previously a transparency enabled GIF write (the default) would + always use a GIF89a header even if none of the images were + transparent. + + - previously the probe step for freetype-config would fail on cygwin + + - catch an invalid matrix parameter to convert() instead of crashing + https://rt.cpan.org/Ticket/Display.html?id=79922 + + - remove the 16-bit/sample limitation from the documentation for + setsamples(), it hasn't applied for many releases. + https://rt.cpan.org/Ticket/Display.html?id=79989 + + - don't copy setsamples() data parameter, it may be a large scalar + https://rt.cpan.org/Ticket/Display.html?id=79990 + + - clean up .dSYM directories generated performing probes on OS X + Mountain Lion. + + - pass the --verbose command-line option through to Imager::Probe in + sub-module's Makefile.PLs + https://rt.cpan.org/Ticket/Display.html?id=75878 + +Enhancements: + + - support for giflib 5.0. (5.0.1 and later) + https://rt.cpan.org/Ticket/Display.html?id=79029 + The giflib API Imager uses doesn't have a mechanism to set the + header version in 5.0.0. + + - update the GIF library probe code to check for the new giflib 5.0.1 + EGifSetGifVersion() function, and to check for the giflib 4.2.0 + uninitialized gif89 bug. + https://rt.cpan.org/Ticket/Display.html?id=79679 + http://sourceforge.net/tracker/?func=detail&aid=3574283&group_id=102202&atid=631304 + + - avoid static variables when capturing IPTC data from JPEG files + + - match Imager::Font;:T1's error message translations to those from + later versions of T1Lib. + + - for libtiff versions that support extended warning handlers (3.8.0 + or later), use them to avoid some global variables. + + - note Image::ExifTool for better metadata support. + https://rt.cpan.org/Ticket/Display.html?id=79251 + +Imager 0.92 - 14 Aug 2012 +=========== + + - giflib 4.2 eliminates the GIF_LIB_VERSION macro, handle that + correctly for both probing and runtime. + https://rt.cpan.org/Ticket/Display.html?id=77672 + + - allow building JPEG/imexif.c on C89 compilers. + + - allow building GIF/imgif.c on C89 compilers. + +Imager 0.91 - 4 Jun 2012 +=========== + +Bug fixes: - The size of rotated images is no longer rounded up so aggressively. Added rounding to the linear interpolation done for rotate() and @@ -20,6 +383,27 @@ Imager release history. Older releases can be found in Changes.old image exactly matches the output of rotate(right => 270). https://rt.cpan.org/Ticket/Display.html?id=77063 +Other changes: + + - eliminate the old IIM_new(), IIM_DESTROY() names from Imager's + internals, those names only matter for the XS interface. + + - improve error reporting when PERL_INITIALIZE_IMAGER_CALLBACKS finds + the API level compiled into a loadable module such as + Imager::File::GIF doesn't match that of Imager. Previously it + could be difficult to determine exactly which module was failing to + load. + https://rt.cpan.org/Ticket/Display.html?id=77173 + + - added Imager->check_file_limits() as an interface to the + i_int_check_image_file_limits() API. + + - Imager->set_file_limits(reset => 1) now resets the limits to the + defaults rather than setting them all to unlimited. + + - wrote a brief security note as Imager::Security + https://rt.cpan.org/Ticket/Display.html?id=68910 + Imager 0.90 - 30 Apr 2012 ===========