Thumbnex
Elixir library to generate thumbnails from images and videos.
Documentation: https://hexdocs.pm/thumbnex/
Examples
Create a regular thumbnail:
Thumbnex.create_thumbnail("/path/to/input.mp4", "/path/to/output.jpg", max_width: 200, max_height: 200)Create a lightweight animated GIF preview:
Thumbnex.animated_gif_thumbnail("/path/to/input.mp4", "/path/to/output.gif", frame_count: 4, fps: 1)Prerequisites
Installation
-
Add
thumbnexto your list of dependencies inmix.exs:
```elixir
def deps do
[{:thumbnex, "~> 0.2.3"}]
end
```-
Ensure
thumbnexis started before your application:
```elixir
def application do
[applications: [:thumbnex]]
end
```Release notes
See the changelog for changes between versions.
License
Thumbnex source code is licensed under the MIT License.