Resamplex
Resamplex is a NON-ImageMagick supervised image resizer for Elixir that is based on evadne/supervised-scaler and depends on libvips.
Install / Use
/learn @pmarreck/ResamplexREADME
Resamplex
Resamplex is a supervised image resizer that is based on evadne/supervised-scaler (specifically its "resampler" dependency) and depends on libvips (https://jcupitt.github.io/libvips/). NOTE: Absolutely NO use of ImageMagick or GraphicsMagick!
Installation
If available in Hex, the package can be installed
by adding resamplex to your list of dependencies in mix.exs:
def deps do
[
{:resamplex, "~> 0.1.0"}
]
end
Usage
{:ok, path_to_converted_temp_file} = Resamplex.request("path/to/file.(jpg|png)", maxWidth, maxHeight)
Input file can be jpg or png (and possibly others such as pdf or webm, haven't tested) Output is always jpg currently. Quality cannot yet be specified.
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/resamplex.
Related Skills
node-connect
341.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.6kCommit, push, and open a PR
