hakyll-images: Hakyll utilities to work with images

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

hakyll-images is an add-on to the hakyll package. It adds utilities to work with images, including JPEG compression.


[Skip to ReadMe]

Properties

Versions0.0.1, 0.0.1, 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.4.2
Change logCHANGELOG.md
Dependenciesbase (>=4.8 && <5), bytestring (>=0.9 && <0.11), filepath (>=1.0 && <1.5), hakyll (>4), JuicyPixels (>3 && <4), JuicyPixels-extra (>0.3) [details]
LicenseBSD-3-Clause
AuthorLaurent P. René de Cotret
MaintainerLaurent P. René de Cotret
CategoryWeb
Home pagehttps://github.com/LaurentRDC/hakyll-images#readme
Bug trackerhttps://github.com/LaurentRDC/hakyll-images/issues
Source repositoryhead: git clone https://github.com/LaurentRDC/hakyll-images
UploadedSun Dec 16 17:27:19 UTC 2018 by LaurentRDC

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees


Readme for hakyll-images-0.0.1

[back to package description]

hakyll-images

Build status

A Haskell package containing utilities to deal with images in the context of Hakyll

Hakyll is a static website compiler library. As one of the benefits of static websites is their small size, this repository aims at providing utilities to work with images in the context of Hakyll. Example usage includes:

Usage

hakyll-images is meant to be integrated within a Hakyll program. For example, to compress all Jpeg images present in your source:

import Hakyll
import Hakyll.Images        (compressJpgCompiler)

(... omitted ...)

hakyll $ do

    (... omitted ...)

    -- Compress all source Jpegs to a Jpeg quality of 50
    match "files/*.jpg" $ do
            route idRoute
            compilte (compressJpgCompiler) 50

    (... omitted ...)

Take a look at the documentation for more usage examples.

Installation

hakyll-images is available on Hackage. Using the cabal-install tool:

cabal update
cabal install hakyll-images