hakyll-images alternatives and similar packages
Based on the "hakyll" category.
Alternatively, view hakyll-images alternatives based on common mentions on social networks and blogs.
✂️ Hakyll shortcut-links in markdown files
Do you think we are missing an alternative of hakyll-images or a related project?
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;
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](hackage.haskell.org/package/hakyll-images) for more usage examples.
If you would like a feature added, consider creating an issue on Github
cabal update cabal install hakyll-images
git clone github.com/LaurentRDC/hakyll-images.git cd hakyll-images stack install # Alternatively, `cabal install`
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
This package is made available under the BSD 3-clause license. For more details, see the LICENSE.md
*Note that all licence references and agreements mentioned in the hakyll-images README section above are relevant to that project's source code only.