All Projects → LaurentRDC → hakyll-images

LaurentRDC / hakyll-images

Licence: BSD-3-Clause License
Hakyll utilities to work with images

Programming Languages

haskell
3896 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to hakyll-images

image-compressor
Frontend javascript module for resizing and compressing images
Stars: ✭ 41 (+215.38%)
Mutual labels:  images
droste-creator
Create recursive images with the droste effect.
Stars: ✭ 27 (+107.69%)
Mutual labels:  images
fl-image-resize
A library to quickly resize images with Azure Functions
Stars: ✭ 15 (+15.38%)
Mutual labels:  images
reddit-fetch
A program to fetch some comments/pictures from reddit
Stars: ✭ 50 (+284.62%)
Mutual labels:  images
KGySoft.Drawing
KGy SOFT Drawing is a library for advanced image, icon and graphics handling.
Stars: ✭ 27 (+107.69%)
Mutual labels:  images
octodex
GitHub's Octocats.
Stars: ✭ 64 (+392.31%)
Mutual labels:  images
rid-covid
Image-based COVID-19 diagnosis. Links to software, data, and other resources.
Stars: ✭ 74 (+469.23%)
Mutual labels:  images
android-pickpic
Ready to use library that allows people to select pictures from their device and Facebook account.
Stars: ✭ 12 (-7.69%)
Mutual labels:  images
imgix-java
A Java client library for generating URLs with imgix
Stars: ✭ 17 (+30.77%)
Mutual labels:  images
jekyll-imgix
A plugin for integrating imgix into Jekyll sites
Stars: ✭ 49 (+276.92%)
Mutual labels:  images
aart
Convert images and video to ascii art!
Stars: ✭ 18 (+38.46%)
Mutual labels:  images
Lassi-Android
All in 1 picker library for android.
Stars: ✭ 108 (+730.77%)
Mutual labels:  images
hakyll-bootstrap
Basic Hakyll + Bootstrap site
Stars: ✭ 26 (+100%)
Mutual labels:  hakyll
scala-phash
Image comparison by hash codes
Stars: ✭ 16 (+23.08%)
Mutual labels:  images
coronavirus-mask-image-dataset
Image dataset from Instagram of people wearing medical masks, no mask, or a non-medical (DIY) mask
Stars: ✭ 57 (+338.46%)
Mutual labels:  images
py-rfc2397
A Python RFC2397 ("data url") implementation
Stars: ✭ 16 (+23.08%)
Mutual labels:  images
TesseractStudio.Net
A free Windows graphical interface to the Tesseract 4.0 OCR engine.
Stars: ✭ 38 (+192.31%)
Mutual labels:  images
kirby3-instagram
Kirby 3 Plugin to call Instagram (or any other) API Endpoints
Stars: ✭ 20 (+53.85%)
Mutual labels:  images
diorama
An image layout algorithm
Stars: ✭ 17 (+30.77%)
Mutual labels:  images
high-quality-nix-content
GitHub repository containing highest quality Nix/NixOS content
Stars: ✭ 88 (+576.92%)
Mutual labels:  images

hakyll-images

Hackage version

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:

  • Re-encoding Jpeg images at a lower quality to make them much smaller;
  • Re-sizing images to fit within a certain shape;

Usage

hakyll-images is meant to be integrated within a Hakyll program. Here are some examples within a Hakyll program:

import Hakyll
import Hakyll.Images        ( loadImage
                            , compressJpgCompiler
                            , resizeImageCompiler
                            , scaleImageCompiler
                            )

(...)

hakyll $ do

    -- Compress all source Jpegs to a Jpeg quality of 50 (maximum of 100)
    match "images/**.jpg" $ do
        route idRoute
        compile $ loadImage 
            >>= compressJpgCompiler 50

    -- Resize all profile pictures to 64x48
    -- Aspect ratio might be mangled
    match "profiles/**.jpg" $ do
        route idRoute
        compile $ loadImage 
            >>= resizeImageCompiler 64 48
            >>= compressJpgCompiler 50

    -- Scale images to fit within a 600x400 box
    -- Aspect ratio will be preserved
    match "images/**.png" $ do
        route idRoute
        compile $ loadImage
            >>= scaleImageCompiler 600 400

    (...)

Take a look at the documentation for more usage examples.

If you would like a feature added, consider creating an issue on Github

Installation

From Hackage

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

cabal update
cabal install hakyll-images

From source

Building from source can be done using stack or cabal:

git clone github.com/LaurentRDC/hakyll-images.git
cd hakyll-images
stack install # Alternatively, `cabal install`

Documentation

The documentation for the latest release is available on the Hackage page.

Support Issues / Feature requests

All support requests (e.g. installation issues, unclear documentation, bugs, etc.) should of filed on Github as an issue

License

This package is made available under the BSD 3-clause license. For more details, see the LICENSE.md

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].