Use LiipImagineBundle to Resize Image after Upload?

后端 未结 5 450
梦毁少年i
梦毁少年i 2020-12-02 21:08

I\'m using the LiipImagineBundle with Symfony 2.1 and would like to resize user uploaded images upon upload before saving them to the permanent filesystem location (to strip

5条回答
  •  清歌不尽
    2020-12-02 21:31

    I've written a bundle that solves exact this problem. While VichUploaderBundle provides easy uploading using ORM's Lifecycle callbacks, LiipImagine does a great job at resizing.

    Here is the combination of it: https://github.com/RSSfeed/VichImagineBundle

    See the short readme on how to implement it in only few minutes.

提交回复
热议问题