From: Hartmut Goebel <h.goebel@crazy-compilers.com>
To: 36607@debbugs.gnu.org
Subject: [bug#36607] [PATCH 2/2] gnu: Add pngquant.
Date: Thu, 11 Jul 2019 22:39:11 +0200 [thread overview]
Message-ID: <20190711203911.8139-3-h.goebel@crazy-compilers.com> (raw)
In-Reply-To: <20190711203911.8139-1-h.goebel@crazy-compilers.com>
* 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
next prev parent reply other threads:[~2019-07-11 20:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-11 20:29 [bug#36607] [PATCH 0/2] Add pngquant and libimagequant required by it Hartmut Goebel
2019-07-11 20:39 ` Hartmut Goebel
2019-07-11 20:39 ` [bug#36607] [PATCH 1/2] gnu: Add libimagequant Hartmut Goebel
2019-07-13 12:52 ` Ludovic Courtès
2019-07-13 18:06 ` bug#36607: " Hartmut Goebel
2019-07-11 20:39 ` Hartmut Goebel [this message]
2019-07-13 12:53 ` [bug#36607] [PATCH 2/2] gnu: Add pngquant Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190711203911.8139-3-h.goebel@crazy-compilers.com \
--to=h.goebel@crazy-compilers.com \
--cc=36607@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).