This article is second part of Elixir Phoenix models with images. Last time I described how we can save and manage our images. Today we want to get and cache resized copies for our images.
Today I’m going to talk about elixir and phoenix framework. It’s my first post about them and today I would like to tell you how did I solve quite common problem for web development – serving images for your domain models.
In my app – users have avatars, companies have logos and any other model can have referring image. I need to have ability to save images for my models. I want to have ability to save them to AWS S3 and locally(in future I want to add new providers).