hakyll-images-1.3.0: Hakyll utilities to work with images
Copyright(c) Laurent P René de Cotret 2019 - present
LicenseBSD3
Maintainerlaurent.decotret@outlook.com
Stabilityunstable
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hakyll.Images.Internal

Description

Internal re-exports used for tests.

Synopsis

Documentation

data Image Source #

Constructors

Image 

Instances

Instances details
Binary Image Source # 
Instance details

Defined in Hakyll.Images.Common

Methods

put :: Image -> Put #

get :: Get Image #

putList :: [Image] -> Put #

Writable Image Source # 
Instance details

Defined in Hakyll.Images.Common

Methods

write :: FilePath -> Item Image -> IO () #

withImageContent Source #

Arguments

:: (ImageContent -> ImageContent) 
-> (ImageFormat -> ImageContent -> Image)

Encoder function

-> Image -> Image 

Map over the content of an Image, decoded into an ImageContent.

data WithMetadata a Source #

Constructors

MkWithMetadata 

Fields

Instances

Instances details
Functor WithMetadata Source # 
Instance details

Defined in Hakyll.Images.Common

Methods

fmap :: (a -> b) -> WithMetadata a -> WithMetadata b #

(<$) :: a -> WithMetadata b -> WithMetadata a #

data ImageFormat Source #

Constructors

Jpeg 
Png 
Bitmap 
Tiff 
Gif 

Instances

Instances details
Generic ImageFormat Source # 
Instance details

Defined in Hakyll.Images.Common

Associated Types

type Rep ImageFormat :: Type -> Type #

Binary ImageFormat Source # 
Instance details

Defined in Hakyll.Images.Common

Eq ImageFormat Source # 
Instance details

Defined in Hakyll.Images.Common

type Rep ImageFormat Source # 
Instance details

Defined in Hakyll.Images.Common

type Rep ImageFormat = D1 ('MetaData "ImageFormat" "Hakyll.Images.Common" "hakyll-images-1.3.0-ywFCEwTDinB3VWGXKE1K7" 'False) ((C1 ('MetaCons "Jpeg" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Png" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Bitmap" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Tiff" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Gif" 'PrefixI 'False) (U1 :: Type -> Type))))

loadImage :: Compiler (Item Image) Source #

Load an image from a file. This function can be combined with other compilers.

match "*.jpg" $ do
   route idRoute
   compile $ loadImage >>= compressJpgCompiler 50