Boris Kuznetsov, one of Evrone’s leading programmers, developed Waffle, a library for loading and optimizing images for the Elixir language. Waffle is a continuation of an already unsupported library, the fork has undergone many updates and has become a functional tool.
How we improved the library
We have created documentation, described the URL generation process, storage directory configuration and the algorithm for performing other tasks. The developer now receives detailed instructions, code templates and functions.
The Evrone team has fixed the shortcomings of the original library and added the ability to integrate with many tools investor database in the Elixir ecosystem. For example, your team can include an additional Ecto interface package that simplifies database communication and cache cleaning tasks.
Waffle has two built-in storages – phone number list local and object Amazon S3. In addition, you can use alternative options, cloud storages such as Google Cloud, RackSpace, Microsoft Azure.
For instant optimization of uploaded files and image conversion, the library supports integration with editors, such as ImageMagick.
We’ve also added new functionality, now you can validate files based on content using Waffle.
How to integrate Waffle into your product?
You need to follow 3 simple steps:
- First, add the latest stable twd directory version of the library to your mix.exs file and dependencies for ExAws if needed.
- Then run mix deps.get in your shell to get the dependency.
- After installing Waffle, configure the storage provider.
- In some cases, additional configurations may be required.