Answer the question
In order to leave comments, you need to log in
How to drop images on the fly in Symfony?
I am writing an API for a service. There are objects for which you need to give an image: a link to the original and a list of links to previews of various sizes. The image files themselves are stored in s3. Previews, respectively, should be stored there. How to organize it in a normal way? It is also desirable that you can easily delete unused preview types.
For Django, there is such a wonderful library as sorl-thumbnail , which allows you to conveniently manage image thumbnails. It stores the "image-preview type" matches in the cache, which is very convenient, because you do not need to make a slower request to s3 to check if the preview exists. Is there an equivalent for Symfony?
Looked towards the LiipImagineBundle, but I didn’t quite understand whether it is possible to make friends with Symfony5, and is this bundle generally suitable for my task?
Answer the question
In order to leave comments, you need to log in
LiipImagineBundle should be fine, judging by the task description. It is also recommended by Symfony. here is the dock . with version 5.0 will work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question