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

Copyright© 2017 Mark Karpov
LicenseBSD 3 clause
MaintainerMark Karpov <markkarpov92@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Codec.Audio.FLAC.Metadata.Picture

Description

Juicy-Pixels-powered helpers to read/write images to FLAC metadata blocks. For best 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 type of picture from FLAC metadata as a 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.