Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zelazna/epub_cover_extractor
A tool for getting the ebooks covers
https://github.com/zelazna/epub_cover_extractor
elixir-lang epub
Last synced: about 1 month ago
JSON representation
A tool for getting the ebooks covers
- Host: GitHub
- URL: https://github.com/zelazna/epub_cover_extractor
- Owner: zelazna
- License: apache-2.0
- Created: 2019-08-25T16:13:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-11T11:06:40.000Z (about 4 years ago)
- Last Synced: 2024-10-17T21:50:45.469Z (about 2 months ago)
- Topics: elixir-lang, epub
- Language: Elixir
- Homepage:
- Size: 9.66 MB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Extract cover from EPUB files. (Miscellaneous)
- fucking-awesome-elixir - epub_cover_extractor - Extract cover from EPUB files. (Miscellaneous)
- awesome-elixir - epub_cover_extractor - Extract cover from EPUB files. (Miscellaneous)
README
# EpubCoverExtractor
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fzelazna%2Fepub_cover_extractor%2Fbadge&style=for-the-badge)](https://actions-badge.atrox.dev/zelazna/epub_cover_extractor/goto)
A tool for getting the ebooks covers, the projet is WIP,
contributions are welcome.## Installation
Add `epub_cover_extractor` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:epub_cover_extractor, "~> 0.1.0"}
]
end
```## Documentation
The project documentation can be found [here](https://hexdocs.pm/epub_cover_extractor/api-reference.html) on Hex
### Quick Start
```elixir
{:ok, binary} = EpubCoverExtractor.get_cover("book.epub")
{:ok,
<<137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73,
72, 68, 82, 0, 0, 5, 130, 0, 0, 8, 202, 8, 6, 0, 0,
0, 43, 176, 122, 217, 0, 0, 0, 9, 112, 72, 89, 115,
0, 0, 14, 196, 0, 0, 14...>>}
File.write("cover.png", binary)
```