Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/talklittle/thumbnex
Elixir library to create thumbnails from images and video screenshots.
https://github.com/talklittle/thumbnex
Last synced: about 1 month ago
JSON representation
Elixir library to create thumbnails from images and video screenshots.
- Host: GitHub
- URL: https://github.com/talklittle/thumbnex
- Owner: talklittle
- License: mit
- Created: 2016-08-17T18:26:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-30T22:38:18.000Z (6 months ago)
- Last Synced: 2024-10-19T06:09:04.657Z (about 2 months ago)
- Language: Elixir
- Homepage: https://hexdocs.pm/thumbnex/
- Size: 271 KB
- Stars: 72
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Create thumbnails from images and video screenshots. (Images)
- fucking-awesome-elixir - thumbnex - Create thumbnails from images and video screenshots. (Images)
- awesome-elixir - thumbnex - Create thumbnails from images and video screenshots. (Images)
README
# Thumbnex
[![Build Status](https://github.com/talklittle/thumbnex/actions/workflows/ci.yml/badge.svg)](https://github.com/talklittle/thumbnex/actions?query=workflow%3ACI)
[![Module Version](https://img.shields.io/hexpm/v/thumbnex.svg)](https://hex.pm/packages/thumbnex)Elixir library to generate thumbnails from images and videos.
Documentation: https://hexdocs.pm/thumbnex/
## Installation
Add `:thumbnex` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:thumbnex, "~> 0.5.1"}
]
end
```## Prerequisites
* [ImageMagick](https://imagemagick.org)
* [FFmpeg](https://ffmpeg.org)## Release notes
See the [changelog](./CHANGELOG.md) for changes between versions.
## Examples
Create a regular thumbnail:
```elixir
Thumbnex.create_thumbnail(
"/path/to/input.mp4",
"/path/to/output.jpg",
max_width: 200,
max_height: 200
)
```Create a lightweight animated GIF preview:
```elixir
Thumbnex.animated_gif_thumbnail(
"/path/to/input.mp4",
"/path/to/output.gif",
frame_count: 4,
fps: 1
)
```## Copyright and License
Copyright (c) 2024 Andrew Shu
Thumbnex source code is licensed under the [MIT License](./LICENSE.md).