| Copyright | © 2017 Mark Karpov |
|---|---|
| License | BSD 3 clause |
| Maintainer | Mark Karpov <markkarpov92@gmail.com> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
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).
- retrieveImage :: PictureType -> FlacMeta (Either String DynamicImage)
- writeJpegPicture :: PictureType -> Word8 -> Image PixelYCbCr8 -> FlacMeta ()
- writePngPicture :: PictureType -> Image PixelRGB8 -> FlacMeta ()
Documentation
retrieveImage :: PictureType -> FlacMeta (Either String DynamicImage) Source #
Read specific type of picture from FLAC metadata as a DynamicImage.
Arguments
| :: PictureType | Type of picture we're writing |
| -> Word8 | Quality factor, see |
| -> Image PixelYCbCr8 | The picture to write |
| -> FlacMeta () |
Write the given image into FLAC metadata block corresponding to
specific PictureType.
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.