From 8db1bd188b17c25f4bef8f3f4579df350a9b1e22 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Thu, 11 Jul 2019 22:20:18 +0200 Subject: gnu: Add libimagequant. * gnu/packages/image.scm (libimagequant): New variable. --- gnu/packages/image.scm | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'gnu/packages') diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index fabc2fb2d1..c4af4e0eb2 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -14,7 +14,7 @@ ;;; Copyright © 2016, 2017 Arun Isaac ;;; Copyright © 2016, 2017 Kei Kebreau ;;; Copyright © 2017 ng0 -;;; Copyright © 2017 Hartmut Goebel +;;; Copyright © 2017,2019 Hartmut Goebel ;;; Copyright © 2017 Julien Lepiller ;;; Copyright © 2018 Joshua Sierles, Nextjournal ;;; Copyright © 2018 Fis Trivial @@ -313,6 +313,30 @@ files. It can compress them as much as 40% losslessly.") Currently all documentation resides in @file{pnglite.h}.") (license license:zlib)))) +(define-public libimagequant + (package + (name "libimagequant") + (version "2.12.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ImageOptim/libimagequant.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0qsfq1kv1m5jzn9v9iz0bac66k4clcis1c9877qabnwzwmwma5v0")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f)) ; no check target + (home-page "https://pngquant.org/lib/") + (synopsis "Image palette quantization library") + (description "libimagequant is a small, portable C library for +high-quality conversion of RGBA images to 8-bit indexed-color (palette) +images. This library can significantly reduces file sizes and powers pngquant +and other PNG optimizers.") + (license license:gpl3+))) + (define-public libjpeg (package (name "libjpeg") -- cgit v1.2.3