servant-JuicyPixels-0.3.1.1: Servant support for JuicyPixels
Safe HaskellSafe-Inferred
LanguageHaskell2010

Servant.JuicyPixels

Documentation

data JPEG (quality :: Nat) Source #

Instances

Instances details
(KnownNat quality, quality <= 100) => Accept (JPEG quality :: Type) Source # 
Instance details

Defined in Servant.JuicyPixels

Methods

contentType :: Proxy (JPEG quality) -> MediaType #

contentTypes :: Proxy (JPEG quality) -> NonEmpty MediaType #

(KnownNat quality, quality <= 100) => MimeRender (JPEG quality :: Type) DynamicImage Source # 
Instance details

Defined in Servant.JuicyPixels

Methods

mimeRender :: Proxy (JPEG quality) -> DynamicImage -> ByteString #

(KnownNat quality, quality <= 100) => MimeUnrender (JPEG quality :: Type) DynamicImage Source # 
Instance details

Defined in Servant.JuicyPixels

(KnownNat quality, quality <= 100, ColorSpaceConvertible a PixelYCbCr8) => MimeRender (JPEG quality :: Type) (Image a) Source # 
Instance details

Defined in Servant.JuicyPixels

Methods

mimeRender :: Proxy (JPEG quality) -> Image a -> ByteString #

(KnownNat quality, quality <= 100, ColorSpaceConvertible a PixelYCbCr8) => MimeRender (JPEG quality :: Type) (Image a, Metadatas) Source # 
Instance details

Defined in Servant.JuicyPixels

Methods

mimeRender :: Proxy (JPEG quality) -> (Image a, Metadatas) -> ByteString #

(KnownNat quality, quality <= 100) => MimeUnrender (JPEG quality :: Type) (DynamicImage, Metadatas) Source # 
Instance details

Defined in Servant.JuicyPixels