Files
perl-Imager/perl-Imager.spec

116 lines
4.3 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Imager
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Accepting request 983928 from devel:languages:perl:autoupdate - updated to 1.018 see /usr/share/doc/packages/perl-Imager/Changes Imager 1.018 - 19 Jun 2022 ============ - skip trying to produce deprecation warnings before perl 5.14, since that doesn't support custom warning categories within a package. This prevents pointless failures on these old versions of perl. Imager 1.017 - 14 Jun 2022 ============ Bug fix: - fix a one bytes underallocation for Imager::TrimColorList. On older perls this could lead to writing a zero byte one past the end of the allocated block. Documentation: - expand on why you might want to call Imager->preload() and that you probably don't need to. Imager 1.016 - 12 Jun 2022 ============ Upcoming backward incompatible changes: - deprecate setting/deleting tags by code. If this causes you a problem please open an issue. You can disable the warning produced with: no warnings 'Imager::tagcodes'; - deprecate image channel masks. If this causes you a problem please open an issue. You can disable the warning produced with: no warnings 'Imager::channelmask'; If you use either of these features please let me know. Minor features: - add magic/extension support for AVIF files, see Imager::File::AVIF on CPAN. - treat an unknown extension of two or more characters as a potential file type on write. Bug fixes: - prevent a possible undefined value warning from t/t10jpeg.t - update MANIFEST.SKIPs, update MANIFESTs and improve MANIFEST testing. - TGA: failing to read in the palette of a paletted TGA file would leak memory. - JPEG: supplying invalid values for the new JPEG write tags could leak memory. - PNG: fix validation of Latin1 only tags when writing PNGs. (detected by clang) - matrix_transform: correctly use fabs() instead of abs() on floating point values when deciding whether to divide for a perspective transform. (detected by clang) - fix the i_poly_aa_cfill_m() API macro Cage cleaning: - eliminate IO::File usage from the Imager code base - fix a type error harmlessly ignored by gcc but found by clang - eliminate memory leaks in sub-module Makefile.PL probe test code to allow the probes to succeed under LeakSanitizer. - BMP: fix some otherwise harmless clang warnings - remove some code meant to work around some unspecified old Solaris linker bug. - i_noise: prevent a harmless conversion warning from clang - fountain fill/filter: limit ssample_param to 1000 to simplify code. Imager 1.015 - 7 May 2022 ============ - rename the "virtual" member of i_img to "isvirtual" to allow the API to be used from C++, this may break source compatibility, using the i_img_virtual() accessor is backward compatible. - add cookbook entry to populating an image from raw RGB samples https://github.com/tonycoz/imager/issues/471 - Imager::Probe now puts the existing value of PKG_CONFIG_PATH at the front of the PKG_CONFIG_PATH used when it calls pkg-config. - setup CodeQL workflow and fix detected warnings JPEG updates: - detect libjpeg (of whichever variety) via pkg-config if possible - add specific support for mozjpeg (turn its optimization off by default so tests pass.) - add libjpeg_version(), is_mozjpeg(), is_turbojpeg() and has_arith_coding() methods - add jpeg_compress_profile output tag, which only matters for mozjpeg - the libjpeg_version() method replaces the old Imager::File::JPEG::i_libjpeg_version() function, and the format has changed. - various obscure jpeg output controls: - add support for JPEG arithmetic coding when the supplied libjpeg supports it. Note that not all JPEG decoders can handle arithmetic coded JPEGs. - add support for disabling the JFIF header for JPEG files using the jpeg_jfif tag. - add support for smoothing to eliminate dithering noise (like cjpeg -smooth) using the jpeg_smooth tag. - add support for producing JPEG restart markers (like cjpeg -restart N), using the jpeg_restart tag. - add control over subsample for JPEG (like the cjpeg -sample parameter) using the jpeg_sample tag - added tags for the rest of the MozJPEG API parameters. - add jpeg_tune tag, corresponding to the MozJPEG cjpeg -tune-* options. Imager 1.014 - 28 Apr 2022 ============ Bug fixes: - fix failed to build on non-threaded perls. https://github.com/tonycoz/imager/issues/472 - when writing a paletted image with an alpha channel to PNG only set the tRNS chunk if the image has transparent colours. With older libpng this could add an erroneous tRNS chunk (or possibly undefined behaviour if I understand the libpng code). https://github.com/tonycoz/imager/issues/459 Features: - Imager::Color and Imager::Color::Float objects can now be created from CSS style rgb(...) strings. https://github.com/tonycoz/imager/issues/463 - added the as_css_rgb() method to both Imager::Color and Imager::Color::Float to format the supplied color as a CSS style rgb() string. https://github.com/tonycoz/imager/issues/463 - Imager::Color and Imager::Color::Float objects can now be created (copied) or set from other Imager::Color or Imager::Color::Float objects. Imager 1.013 - 27 Apr 2022 ============ - added rgb_difference() method Thanks to Andreas König https://github.com/tonycoz/imager/pull/462 - update ppport.h to prevent a redefinition diagnostic - update bug tracker URLs to point at github https://github.com/tonycoz/imager/pull/466 - update some other bug tracker URLs too. - add the trim() and trim_rect() methods, to trim borders off an image. - add the as_float() method to Imager::Color and the as_8bit() method to Imager::Color::Float to convert between the two types. - update ppport.h to avoid a diagnostic in more modern perls. - add detection for HEIF, JPEG XL and QOI image formats OBS-URL: https://build.opensuse.org/request/show/983928 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Imager?expand=0&rev=10
2022-06-20 11:41:13 +00:00
%define cpan_name Imager
Name: perl-Imager
Version: 1.28.0
Release: 0
# 1.028 -> normalize -> 1.28.0
%define cpan_version 1.028
License: Artistic-1.0 OR GPL-1.0-or-later
Accepting request 983928 from devel:languages:perl:autoupdate - updated to 1.018 see /usr/share/doc/packages/perl-Imager/Changes Imager 1.018 - 19 Jun 2022 ============ - skip trying to produce deprecation warnings before perl 5.14, since that doesn't support custom warning categories within a package. This prevents pointless failures on these old versions of perl. Imager 1.017 - 14 Jun 2022 ============ Bug fix: - fix a one bytes underallocation for Imager::TrimColorList. On older perls this could lead to writing a zero byte one past the end of the allocated block. Documentation: - expand on why you might want to call Imager->preload() and that you probably don't need to. Imager 1.016 - 12 Jun 2022 ============ Upcoming backward incompatible changes: - deprecate setting/deleting tags by code. If this causes you a problem please open an issue. You can disable the warning produced with: no warnings 'Imager::tagcodes'; - deprecate image channel masks. If this causes you a problem please open an issue. You can disable the warning produced with: no warnings 'Imager::channelmask'; If you use either of these features please let me know. Minor features: - add magic/extension support for AVIF files, see Imager::File::AVIF on CPAN. - treat an unknown extension of two or more characters as a potential file type on write. Bug fixes: - prevent a possible undefined value warning from t/t10jpeg.t - update MANIFEST.SKIPs, update MANIFESTs and improve MANIFEST testing. - TGA: failing to read in the palette of a paletted TGA file would leak memory. - JPEG: supplying invalid values for the new JPEG write tags could leak memory. - PNG: fix validation of Latin1 only tags when writing PNGs. (detected by clang) - matrix_transform: correctly use fabs() instead of abs() on floating point values when deciding whether to divide for a perspective transform. (detected by clang) - fix the i_poly_aa_cfill_m() API macro Cage cleaning: - eliminate IO::File usage from the Imager code base - fix a type error harmlessly ignored by gcc but found by clang - eliminate memory leaks in sub-module Makefile.PL probe test code to allow the probes to succeed under LeakSanitizer. - BMP: fix some otherwise harmless clang warnings - remove some code meant to work around some unspecified old Solaris linker bug. - i_noise: prevent a harmless conversion warning from clang - fountain fill/filter: limit ssample_param to 1000 to simplify code. Imager 1.015 - 7 May 2022 ============ - rename the "virtual" member of i_img to "isvirtual" to allow the API to be used from C++, this may break source compatibility, using the i_img_virtual() accessor is backward compatible. - add cookbook entry to populating an image from raw RGB samples https://github.com/tonycoz/imager/issues/471 - Imager::Probe now puts the existing value of PKG_CONFIG_PATH at the front of the PKG_CONFIG_PATH used when it calls pkg-config. - setup CodeQL workflow and fix detected warnings JPEG updates: - detect libjpeg (of whichever variety) via pkg-config if possible - add specific support for mozjpeg (turn its optimization off by default so tests pass.) - add libjpeg_version(), is_mozjpeg(), is_turbojpeg() and has_arith_coding() methods - add jpeg_compress_profile output tag, which only matters for mozjpeg - the libjpeg_version() method replaces the old Imager::File::JPEG::i_libjpeg_version() function, and the format has changed. - various obscure jpeg output controls: - add support for JPEG arithmetic coding when the supplied libjpeg supports it. Note that not all JPEG decoders can handle arithmetic coded JPEGs. - add support for disabling the JFIF header for JPEG files using the jpeg_jfif tag. - add support for smoothing to eliminate dithering noise (like cjpeg -smooth) using the jpeg_smooth tag. - add support for producing JPEG restart markers (like cjpeg -restart N), using the jpeg_restart tag. - add control over subsample for JPEG (like the cjpeg -sample parameter) using the jpeg_sample tag - added tags for the rest of the MozJPEG API parameters. - add jpeg_tune tag, corresponding to the MozJPEG cjpeg -tune-* options. Imager 1.014 - 28 Apr 2022 ============ Bug fixes: - fix failed to build on non-threaded perls. https://github.com/tonycoz/imager/issues/472 - when writing a paletted image with an alpha channel to PNG only set the tRNS chunk if the image has transparent colours. With older libpng this could add an erroneous tRNS chunk (or possibly undefined behaviour if I understand the libpng code). https://github.com/tonycoz/imager/issues/459 Features: - Imager::Color and Imager::Color::Float objects can now be created from CSS style rgb(...) strings. https://github.com/tonycoz/imager/issues/463 - added the as_css_rgb() method to both Imager::Color and Imager::Color::Float to format the supplied color as a CSS style rgb() string. https://github.com/tonycoz/imager/issues/463 - Imager::Color and Imager::Color::Float objects can now be created (copied) or set from other Imager::Color or Imager::Color::Float objects. Imager 1.013 - 27 Apr 2022 ============ - added rgb_difference() method Thanks to Andreas König https://github.com/tonycoz/imager/pull/462 - update ppport.h to prevent a redefinition diagnostic - update bug tracker URLs to point at github https://github.com/tonycoz/imager/pull/466 - update some other bug tracker URLs too. - add the trim() and trim_rect() methods, to trim borders off an image. - add the as_float() method to Imager::Color and the as_8bit() method to Imager::Color::Float to convert between the two types. - update ppport.h to avoid a diagnostic in more modern perls. - add detection for HEIF, JPEG XL and QOI image formats OBS-URL: https://build.opensuse.org/request/show/983928 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Imager?expand=0&rev=10
2022-06-20 11:41:13 +00:00
Summary: Perl extension for Generating 24 bit Images
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/T/TO/TONYC/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
2025-08-12 18:14:45 +02:00
Source100: README.md
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::More) >= 0.99
Requires: perl(Test::More) >= 0.99
Accepting request 1153653 from devel:languages:perl:autoupdate - updated to 1.023 see /usr/share/doc/packages/perl-Imager/Changes Imager 1.023 - 13 Jan 2024 ============ - TIFF: don't read after free when looking up a compression codec by the libtiff defined name, https://github.com/tonycoz/imager/issues/524 Imager 1.022 - 3 Dec 2023 ============ - TIFF: We can no longer be lazy in implementing the size callback. https://github.com/tonycoz/imager/issues/522 https://bugs.debian.org/1057270 Imager 1.021 - 1 Dec 2023 ============ Several TIFF changes: - require libtiff 4.1.0 or later - add buildversion, builddate and libversion methods - add the codecs method which fetches a list of available TIFF compression codes - avoid deprecation warnings from libtiff about using the old libtiff defined integer types - require vsnprintf() (C99) - remove my adaption of TIFFReadRGBATile() since libtiff now provides TIFFReadRGBATileExt() which can do the same thing - use pkg-config to find libtiff if possible - for sufficiently modern libtiff (4.5.0) use TIFFClientOptions to specify the warning and error handlers, this means we no longer need a mutex for 4.5.0 and later. - collect warnings using a buffer chain instead of custom allocation code. - include the "module" name (typically a libtiff function name) when recording libtiff warnings. - add CI to test Imager::File::TIFF against libtiff 4.1.0 through 4.6.0 - other minor fixes Other changes: - prevent CodeQL from complaining about an implicit conversion to unsigned char OBS-URL: https://build.opensuse.org/request/show/1153653 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Imager?expand=0&rev=13
2024-03-01 09:01:26 +00:00
Provides: perl(Imager) = %{version}
Provides: perl(Imager::Color) = 1.15.0
Provides: perl(Imager::Color::Float) = 1.8.0
Provides: perl(Imager::Color::Table) = 1.4.0
Provides: perl(Imager::CountColor) = 0.30.0
Provides: perl(Imager::Expr) = 1.8.0
Provides: perl(Imager::Expr::Assem) = 1.4.0
Provides: perl(Imager::Expr::Infix)
Provides: perl(Imager::Expr::Postfix)
Provides: perl(Imager::ExtUtils) = 1.3.0
Provides: perl(Imager::FORMATS)
Provides: perl(Imager::File::CUR) = 1.0.0
Provides: perl(Imager::File::ICO) = 0.80.0
Provides: perl(Imager::File::SGI) = 0.50.0
Provides: perl(Imager::Fill) = 1.13.0
Provides: perl(Imager::Filter::DynTest) = 0.30.0
Provides: perl(Imager::Filter::Flines) = 0.40.0
Provides: perl(Imager::Filter::Mandelbrot) = 0.50.0
Provides: perl(Imager::Font) = 1.39.0
Provides: perl(Imager::Font::BBox) = 1.7.0
Provides: perl(Imager::Font::FreeType2) = 1.21.0
Provides: perl(Imager::Font::Image) = 1.0.0
Provides: perl(Imager::Font::Test) = 1.2.0
Provides: perl(Imager::Font::Truetype) = 1.13.0
Provides: perl(Imager::Font::Type1) = 1.13.0
Provides: perl(Imager::Font::Wrap) = 1.5.0
Provides: perl(Imager::Fountain) = 1.9.0
Provides: perl(Imager::IO)
Provides: perl(Imager::Matrix2d) = 1.13.0
Provides: perl(Imager::Preprocess) = 1.3.0
Provides: perl(Imager::Probe) = 1.11.0
Provides: perl(Imager::Regops) = 1.0.0
Provides: perl(Imager::Test) = 1.7.0
Provides: perl(Imager::Test::OverUtf8)
Provides: perl(Imager::Transform) = 1.7.0
Provides: perl(Imager::TrimColorList) = 1.0.0
%undefine __perllib_provides
Recommends: perl(Parse::RecDescent)
%{perl_requires}
# MANUAL BEGIN
BuildRequires: freetype-devel
BuildRequires: freetype2-devel
BuildRequires: gcc
BuildRequires: giflib-devel
BuildRequires: glibc-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: make
# MANUAL END
%description
Imager is a module for creating and altering images. It can read and write
various image formats, draw primitive shapes like lines,and polygons, blend
multiple images together in various ways, scale, crop, render text and
more.
%prep
%autosetup -n %{cpan_name}-%{cpan_version} -p1
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
Accepting request 983928 from devel:languages:perl:autoupdate - updated to 1.018 see /usr/share/doc/packages/perl-Imager/Changes Imager 1.018 - 19 Jun 2022 ============ - skip trying to produce deprecation warnings before perl 5.14, since that doesn't support custom warning categories within a package. This prevents pointless failures on these old versions of perl. Imager 1.017 - 14 Jun 2022 ============ Bug fix: - fix a one bytes underallocation for Imager::TrimColorList. On older perls this could lead to writing a zero byte one past the end of the allocated block. Documentation: - expand on why you might want to call Imager->preload() and that you probably don't need to. Imager 1.016 - 12 Jun 2022 ============ Upcoming backward incompatible changes: - deprecate setting/deleting tags by code. If this causes you a problem please open an issue. You can disable the warning produced with: no warnings 'Imager::tagcodes'; - deprecate image channel masks. If this causes you a problem please open an issue. You can disable the warning produced with: no warnings 'Imager::channelmask'; If you use either of these features please let me know. Minor features: - add magic/extension support for AVIF files, see Imager::File::AVIF on CPAN. - treat an unknown extension of two or more characters as a potential file type on write. Bug fixes: - prevent a possible undefined value warning from t/t10jpeg.t - update MANIFEST.SKIPs, update MANIFESTs and improve MANIFEST testing. - TGA: failing to read in the palette of a paletted TGA file would leak memory. - JPEG: supplying invalid values for the new JPEG write tags could leak memory. - PNG: fix validation of Latin1 only tags when writing PNGs. (detected by clang) - matrix_transform: correctly use fabs() instead of abs() on floating point values when deciding whether to divide for a perspective transform. (detected by clang) - fix the i_poly_aa_cfill_m() API macro Cage cleaning: - eliminate IO::File usage from the Imager code base - fix a type error harmlessly ignored by gcc but found by clang - eliminate memory leaks in sub-module Makefile.PL probe test code to allow the probes to succeed under LeakSanitizer. - BMP: fix some otherwise harmless clang warnings - remove some code meant to work around some unspecified old Solaris linker bug. - i_noise: prevent a harmless conversion warning from clang - fountain fill/filter: limit ssample_param to 1000 to simplify code. Imager 1.015 - 7 May 2022 ============ - rename the "virtual" member of i_img to "isvirtual" to allow the API to be used from C++, this may break source compatibility, using the i_img_virtual() accessor is backward compatible. - add cookbook entry to populating an image from raw RGB samples https://github.com/tonycoz/imager/issues/471 - Imager::Probe now puts the existing value of PKG_CONFIG_PATH at the front of the PKG_CONFIG_PATH used when it calls pkg-config. - setup CodeQL workflow and fix detected warnings JPEG updates: - detect libjpeg (of whichever variety) via pkg-config if possible - add specific support for mozjpeg (turn its optimization off by default so tests pass.) - add libjpeg_version(), is_mozjpeg(), is_turbojpeg() and has_arith_coding() methods - add jpeg_compress_profile output tag, which only matters for mozjpeg - the libjpeg_version() method replaces the old Imager::File::JPEG::i_libjpeg_version() function, and the format has changed. - various obscure jpeg output controls: - add support for JPEG arithmetic coding when the supplied libjpeg supports it. Note that not all JPEG decoders can handle arithmetic coded JPEGs. - add support for disabling the JFIF header for JPEG files using the jpeg_jfif tag. - add support for smoothing to eliminate dithering noise (like cjpeg -smooth) using the jpeg_smooth tag. - add support for producing JPEG restart markers (like cjpeg -restart N), using the jpeg_restart tag. - add control over subsample for JPEG (like the cjpeg -sample parameter) using the jpeg_sample tag - added tags for the rest of the MozJPEG API parameters. - add jpeg_tune tag, corresponding to the MozJPEG cjpeg -tune-* options. Imager 1.014 - 28 Apr 2022 ============ Bug fixes: - fix failed to build on non-threaded perls. https://github.com/tonycoz/imager/issues/472 - when writing a paletted image with an alpha channel to PNG only set the tRNS chunk if the image has transparent colours. With older libpng this could add an erroneous tRNS chunk (or possibly undefined behaviour if I understand the libpng code). https://github.com/tonycoz/imager/issues/459 Features: - Imager::Color and Imager::Color::Float objects can now be created from CSS style rgb(...) strings. https://github.com/tonycoz/imager/issues/463 - added the as_css_rgb() method to both Imager::Color and Imager::Color::Float to format the supplied color as a CSS style rgb() string. https://github.com/tonycoz/imager/issues/463 - Imager::Color and Imager::Color::Float objects can now be created (copied) or set from other Imager::Color or Imager::Color::Float objects. Imager 1.013 - 27 Apr 2022 ============ - added rgb_difference() method Thanks to Andreas König https://github.com/tonycoz/imager/pull/462 - update ppport.h to prevent a redefinition diagnostic - update bug tracker URLs to point at github https://github.com/tonycoz/imager/pull/466 - update some other bug tracker URLs too. - add the trim() and trim_rect() methods, to trim borders off an image. - add the as_float() method to Imager::Color and the as_8bit() method to Imager::Color::Float to convert between the two types. - update ppport.h to avoid a diagnostic in more modern perls. - add detection for HEIF, JPEG XL and QOI image formats OBS-URL: https://build.opensuse.org/request/show/983928 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Imager?expand=0&rev=10
2022-06-20 11:41:13 +00:00
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
# MANUAL BEGIN
rm -r %{buildroot}%{perl_vendorarch}/Imager/include
# MANUAL END
%perl_gen_filelist
%files -f %{name}.files
Accepting request 983928 from devel:languages:perl:autoupdate - updated to 1.018 see /usr/share/doc/packages/perl-Imager/Changes Imager 1.018 - 19 Jun 2022 ============ - skip trying to produce deprecation warnings before perl 5.14, since that doesn't support custom warning categories within a package. This prevents pointless failures on these old versions of perl. Imager 1.017 - 14 Jun 2022 ============ Bug fix: - fix a one bytes underallocation for Imager::TrimColorList. On older perls this could lead to writing a zero byte one past the end of the allocated block. Documentation: - expand on why you might want to call Imager->preload() and that you probably don't need to. Imager 1.016 - 12 Jun 2022 ============ Upcoming backward incompatible changes: - deprecate setting/deleting tags by code. If this causes you a problem please open an issue. You can disable the warning produced with: no warnings 'Imager::tagcodes'; - deprecate image channel masks. If this causes you a problem please open an issue. You can disable the warning produced with: no warnings 'Imager::channelmask'; If you use either of these features please let me know. Minor features: - add magic/extension support for AVIF files, see Imager::File::AVIF on CPAN. - treat an unknown extension of two or more characters as a potential file type on write. Bug fixes: - prevent a possible undefined value warning from t/t10jpeg.t - update MANIFEST.SKIPs, update MANIFESTs and improve MANIFEST testing. - TGA: failing to read in the palette of a paletted TGA file would leak memory. - JPEG: supplying invalid values for the new JPEG write tags could leak memory. - PNG: fix validation of Latin1 only tags when writing PNGs. (detected by clang) - matrix_transform: correctly use fabs() instead of abs() on floating point values when deciding whether to divide for a perspective transform. (detected by clang) - fix the i_poly_aa_cfill_m() API macro Cage cleaning: - eliminate IO::File usage from the Imager code base - fix a type error harmlessly ignored by gcc but found by clang - eliminate memory leaks in sub-module Makefile.PL probe test code to allow the probes to succeed under LeakSanitizer. - BMP: fix some otherwise harmless clang warnings - remove some code meant to work around some unspecified old Solaris linker bug. - i_noise: prevent a harmless conversion warning from clang - fountain fill/filter: limit ssample_param to 1000 to simplify code. Imager 1.015 - 7 May 2022 ============ - rename the "virtual" member of i_img to "isvirtual" to allow the API to be used from C++, this may break source compatibility, using the i_img_virtual() accessor is backward compatible. - add cookbook entry to populating an image from raw RGB samples https://github.com/tonycoz/imager/issues/471 - Imager::Probe now puts the existing value of PKG_CONFIG_PATH at the front of the PKG_CONFIG_PATH used when it calls pkg-config. - setup CodeQL workflow and fix detected warnings JPEG updates: - detect libjpeg (of whichever variety) via pkg-config if possible - add specific support for mozjpeg (turn its optimization off by default so tests pass.) - add libjpeg_version(), is_mozjpeg(), is_turbojpeg() and has_arith_coding() methods - add jpeg_compress_profile output tag, which only matters for mozjpeg - the libjpeg_version() method replaces the old Imager::File::JPEG::i_libjpeg_version() function, and the format has changed. - various obscure jpeg output controls: - add support for JPEG arithmetic coding when the supplied libjpeg supports it. Note that not all JPEG decoders can handle arithmetic coded JPEGs. - add support for disabling the JFIF header for JPEG files using the jpeg_jfif tag. - add support for smoothing to eliminate dithering noise (like cjpeg -smooth) using the jpeg_smooth tag. - add support for producing JPEG restart markers (like cjpeg -restart N), using the jpeg_restart tag. - add control over subsample for JPEG (like the cjpeg -sample parameter) using the jpeg_sample tag - added tags for the rest of the MozJPEG API parameters. - add jpeg_tune tag, corresponding to the MozJPEG cjpeg -tune-* options. Imager 1.014 - 28 Apr 2022 ============ Bug fixes: - fix failed to build on non-threaded perls. https://github.com/tonycoz/imager/issues/472 - when writing a paletted image with an alpha channel to PNG only set the tRNS chunk if the image has transparent colours. With older libpng this could add an erroneous tRNS chunk (or possibly undefined behaviour if I understand the libpng code). https://github.com/tonycoz/imager/issues/459 Features: - Imager::Color and Imager::Color::Float objects can now be created from CSS style rgb(...) strings. https://github.com/tonycoz/imager/issues/463 - added the as_css_rgb() method to both Imager::Color and Imager::Color::Float to format the supplied color as a CSS style rgb() string. https://github.com/tonycoz/imager/issues/463 - Imager::Color and Imager::Color::Float objects can now be created (copied) or set from other Imager::Color or Imager::Color::Float objects. Imager 1.013 - 27 Apr 2022 ============ - added rgb_difference() method Thanks to Andreas König https://github.com/tonycoz/imager/pull/462 - update ppport.h to prevent a redefinition diagnostic - update bug tracker URLs to point at github https://github.com/tonycoz/imager/pull/466 - update some other bug tracker URLs too. - add the trim() and trim_rect() methods, to trim borders off an image. - add the as_float() method to Imager::Color and the as_8bit() method to Imager::Color::Float to convert between the two types. - update ppport.h to avoid a diagnostic in more modern perls. - add detection for HEIF, JPEG XL and QOI image formats OBS-URL: https://build.opensuse.org/request/show/983928 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Imager?expand=0&rev=10
2022-06-20 11:41:13 +00:00
%doc adobe.txt apidocs.perl bigtest.perl Changes Changes.old combine.im compose.im convert.im conv.im doco.perl errep.perl filterlist.perl filters.im flip.im gaussian.im paste.im README regops.perl render.im rotate.im rubthru.im samples scale.im spot.perl transform.perl trim.im typemap.local typemap.oldperl
%changelog