| Copyright | (c) 2021 The closed eye of love |
|---|---|
| License | BSD-3-Clause |
| Maintainer | Poscat <poscat@mail.poscat.moe>, berberman <berberman@yandex.com> |
| Stability | alpha |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Web.Pixiv.Utils
Description
Miscellaneous utilities.
Synopsis
- isSinglePageIllust :: Illust -> Bool
- extractHighestQualityImageUrl :: ImageUrls -> Maybe Text
- extractImageUrlsFromIllust :: Illust -> [Text]
- unzipArchive :: FilePath -> ByteString -> IO ()
- ugoiraMetadataToFFConcat :: UgoiraMetadata -> ByteString
Documentation
isSinglePageIllust :: Illust -> Bool Source #
Judges if an illustration has only one image.
extractHighestQualityImageUrl :: ImageUrls -> Maybe Text Source #
Extracts the url of the highest quality image.
extractImageUrlsFromIllust :: Illust -> [Text] Source #
Extracts all urls from an illustration, using extractHighestQualityImageUrl.
Arguments
| :: FilePath | destination directory |
| -> ByteString | zip archive |
| -> IO () |
Unzip a zip archive represented in ByteString to a directory.
ugoiraMetadataToFFConcat :: UgoiraMetadata -> ByteString Source #
Generates ffconcat meta file of an ugoira.