https://rt.cpan.org/Ticket/Display.html?id=60509
- fix the cache check for the X rgb.txt loader. This is typically
- used for color translation on Unix-like systems, and improves
- performance of supplying colors by name by about 80 times. Test
- code that managed 3400 10x10 pixel boxes/second sped up to 25700
- boxes/second.
+ used for color translation on Unix-like systems, and the fix
+ improves performance of supplying colors by name by about 80 times.
+ Test code that managed 3400 10x10 pixel boxes/second sped up to
+ 25700 boxes/second.
- clarify that Imager doesn't write EXIF metadata to images.
https://rt.cpan.org/Ticket/Display.html?id=60637
name => "JPEG",
inccheck => sub { -e File::Spec->catfile($_[0], "jpeglib.h") },
libbase => "jpeg",
- #testcode => _jpeg_test_code(),
- #testcodeheaders => [ "stdio.h", "stddef.h", "jpeglib.h", "jerror.h" ],
+ testcode => _jpeg_test_code(),
+ testcodeheaders => [ "stdio.h", "stddef.h", "jpeglib.h" ],
incpath => join($Config{path_sep}, @incpaths),
libpath => join($Config{path_sep}, @libpaths),
);
sub _jpeg_test_code {
return <<'CODE';
+struct jpeg_decompress_struct cinfo;
+struct jpeg_error_mgr jerr;
+
+cinfo.err = jpeg_std_error(&jerr);
+jpeg_create_decompress(&cinfo);
-/*fprintf(stderr, "PNG: library version %ld, header version %ld\n", (long)png_access_version_number(), (long)PNG_LIBPNG_VER);*/
return 0;
CODE
}
my @wrongresult;
# first figure out which headers we can't find ...
+ my @use_headers;
for my $header (@headers) {
+ push @use_headers, $header;
my($ch, $cfile) = File::Temp::tempfile(
'assertlibXXXXXXXX', SUFFIX => '.c'
);
- print $ch qq{#include <$header>\nint main(void) { return 0; }\n};
+ print $ch qq{#include <$_>\n} for @use_headers;
+ print $ch qq{int main(void) { return 0; }\n};
close($ch);
my $exefile = File::Temp::mktemp( 'assertlibXXXXXXXX' ) . $Config{_exe};
my @sys_cmd;