SkillAgentSearch skills...

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/Resamplex
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated1y ago
Forks0

Languages

C

Security Score

70/100

Audited on Nov 6, 2024

No findings