From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:37092) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlfrJ-0002ss-6x for guix-patches@gnu.org; Thu, 11 Jul 2019 16:40:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlfrH-0007eT-UP for guix-patches@gnu.org; Thu, 11 Jul 2019 16:40:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58239) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlfrH-0007eM-Qg for guix-patches@gnu.org; Thu, 11 Jul 2019 16:40:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hlfrH-0007NT-KG for guix-patches@gnu.org; Thu, 11 Jul 2019 16:40:03 -0400 Subject: [bug#36607] [PATCH 2/2] gnu: Add pngquant. Resent-Message-ID: From: Hartmut Goebel Date: Thu, 11 Jul 2019 22:39:11 +0200 Message-Id: <20190711203911.8139-3-h.goebel@crazy-compilers.com> In-Reply-To: <20190711203911.8139-1-h.goebel@crazy-compilers.com> References: <20190711203911.8139-1-h.goebel@crazy-compilers.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 36607@debbugs.gnu.org * gnu/packages/image.scm (pngquant): New variable. --- gnu/packages/image.scm | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 5a5174354c..bfbf7ea823 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -335,6 +335,50 @@ Currently all documentation resides in @file{pnglite.h}.") images to 8-bit indexed-color (palette) images.") (license license:gpl3))) +(define-public pngquant + (package + (name "pngquant") + (version "2.12.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kornelski/pngquant.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1yiwbcihn4311fpfd568gg8zmmhqwg80jmhbhkb5msiipgd9xv33")))) + (build-system gnu-build-system) + (arguments + `(#:test-target "test" + #:configure-flags + '("--with-openmp" "--with-lcms2"))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("libpng" ,libpng) + ("zlib" , zlib) + ("lcms" ,lcms) + ("libimagequant" ,libimagequant))) + (home-page "https://pngquant.org/") + (synopsis "Utility and library for lossy compressing PNG images") + (description "pngquant is a PNG compressor that significantly reduces file +sizes by converting images to a more efficient 8-bit PNG format with alpha +channel (often 60-80% smaller than 24/32-bit PNG files). Compressed images +are fully standards-compliant and are supported by all web browsers and +operating systems. + +Features: +@enumerate +@item High-quality palette generation using a combination of vector + quantization algorithms. +@item Unique adaptive dithering algorithm that adds less noise to images + than the standard Floyd-Steinberg. +@item Easy to integrate with shell scripts, GUIs and server-side software. +@item Fast mode for real-time processing/large numbers of images. +@end enumerate") + (license license:gpl3))) + (define-public libjpeg (package (name "libjpeg") -- 2.21.0