diff options
Diffstat (limited to 'gnu/packages/image.scm')
-rw-r--r-- | gnu/packages/image.scm | 69 |
1 files changed, 68 insertions, 1 deletions
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 149720e5e8..a55a5456af 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -22,10 +22,12 @@ #:use-module (gnu packages fontutils) #:use-module (gnu packages pkg-config) #:use-module (gnu packages xml) + #:use-module (gnu packages ghostscript) ;lcms #:use-module ((guix licenses) #:renamer (symbol-prefix-proc 'license:)) #:use-module (guix packages) #:use-module (guix download) - #:use-module (guix build-system gnu)) + #:use-module (guix build-system gnu) + #:use-module (guix build-system cmake)) (define-public libpng (package @@ -146,3 +148,68 @@ the W3C's XML-based Scaleable Vector Graphic (SVG) format.") ;; 'COPYING' is the GPLv2, but file headers say LGPLv2.0+. (license license:lgpl2.0+))) + +(define-public jbig2dec + (package + (name "jbig2dec") + (version "0.11") + (source + (origin + (method url-fetch) + (uri ;; The link on the homepage is dead. + (string-append "http://distfiles.gentoo.org/distfiles/" name "-" + version ".tar.gz")) + (sha256 + (base32 "1ffhgmf2fqzk0h4k736pp06z7q5y4x41fg844bd6a9vgncq86bby")) + (patches (list (search-patch "jbig2dec-ignore-testtest.patch"))))) + + (build-system gnu-build-system) + (synopsis "Decoder of the JBIG2 image compression format") + (description + "JBIG2 is designed for lossy or lossless encoding of 'bilevel' +(1-bit monochrome) images at moderately high resolution, and in +particular scanned paper documents. In this domain it is very +efficient, offering compression ratios on the order of 100:1. + +This is a decoder only implementation, and currently is in the alpha +stage, meaning it doesn't completely work yet. However, it is +maintaining parity with available encoders, so it is useful for real +work.") + (home-page "http://jbig2dec.sourceforge.net/") + (license license:gpl2+))) + +(define-public openjpeg + (package + (name "openjpeg") + (version "2.0.0") + (source + (origin + (method url-fetch) + (uri + (string-append "http://openjpeg.googlecode.com/files/" name "-" + version ".tar.gz")) + (sha256 + (base32 "1n05yrmscpgksrh2kfh12h18l0lw9j03mgmvwcg3hm8m0lwgak9k")))) + + (build-system cmake-build-system) + (arguments + ;; Trying to run `$ make check' results in a no rule fault. + '(#:tests? #f)) + (inputs + `(("lcms" ,lcms) + ("libpng" ,libpng) + ("libtiff" ,libtiff) + ("zlib" ,zlib))) + (synopsis "JPEG 2000 codec") + (description + "The OpenJPEG library is a JPEG 2000 codec written in C. It has +been developed in order to promote the use of JPEG 2000, the new +still-image compression standard from the Joint Photographic Experts +Group (JPEG). + +In addition to the basic codec, various other features are under +development, among them the JP2 and MJ2 (Motion JPEG 2000) file formats, +an indexing tool useful for the JPIP protocol, JPWL-tools for +error-resilience, a Java-viewer for j2k-images, ...") + (home-page "http://jbig2dec.sourceforge.net/") + (license license:bsd-2))) |