flac-picture-0.1.0: Support for writing picture to FLAC metadata blocks with JuicyPixels

Copyright© 2017 Mark Karpov
LicenseBSD 3 clause
MaintainerMark Karpov <markkarpov@openmailbox.org>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Codec.Audio.FLAC.Metadata.Picture

Description

Juicy-Pixels-powered helpers to read/write images to FLAC metadata blocks. For maximal player support, use PNG or JPEG (we don't provide helpers for other formats at the time anyway).

Synopsis

Documentation

retrieveImage :: PictureType -> FlacMeta (Either String DynamicImage) Source #

Read specific picture from FLAC metadata as DynamicImage.

writeJpegPicture Source #

Arguments

:: PictureType

Type of picture we're writing

-> Word8

Quality factor, see encodeJpegAtQuality

-> Image PixelYCbCr8

The picture to write

-> FlacMeta () 

Write the given image into FLAC metadata block corresponding to specific PictureType.

writePngPicture Source #

Arguments

:: PictureType

Type of picture we're writing

-> Image PixelRGB8

The picture to write

-> FlacMeta () 

Write the given image into FLAC metadata block corresponding to specific PictureType.