Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sorl-thumbnail: upgrading to new version

I recall there was a discussion on the future of sorl-thumbnail and big changes coming; now that page is gone… I'm glad that the project is still being actively maintained, but I can't find any mention of backwards-compatibility problem in documentation.

So, what do I need to do in order to update old sorl (v3.2.5) to current version (which is 10.12.1)? Do I need to fix, say, template tag usage or settings?

like image 921
Anton Strogonoff Avatar asked Oct 13 '22 19:10

Anton Strogonoff


1 Answers

sorl-thumbnail 10+ is very different from version 3.2.5-. It will require you to rewrite everything that uses sorl-thumbnail if you want to upgrade. However difficult and time consuming this might seem, its usually not such a big job. I have upgraded from the old version to new in numerous projects, some of them very big and ut has been a pretty simple and fairly quick job. Most of all, it has been worth it considering the new features with storage support, quality images using pgmagick and easy admin integration just to name a few. As mentioned the other route is probably to use easy-thumbnail which still has alot in common with the old sorl-thumbnail.

like image 139
sorl Avatar answered Nov 04 '22 00:11

sorl