django-cms / django-filer

File and Image Management Application for django
https://django-filer.readthedocs.io/
Other
1.73k stars 574 forks source link

Optional SVG support with easy-thumbnails #1449

Closed marcosguedes closed 4 months ago

marcosguedes commented 4 months ago

Hi there, maybe this is awkward because everyone is trying very hard to support SVG. Is it any way possible to create some sort of optional flag to disable easy-thumbnails[svg] and use easy-thumbnails instead?

My use case is shared hosting servers with permission issues regarding C compilers (gcc). easy-thumbnails[svg] installs reportlab as a dependency, which requires gcc to install, and it breaks throwing error: command '/usr/bin/gcc' failed with exit code 1

marcosguedes commented 4 months ago

I guess it's impossible seeing the abstract models mentions VILImage, which is imported from a version of easy-thumbnails with SVG included.

https://github.com/django-cms/django-filer/blob/b0f39ab39da19bd382cf9975e733dd0b1abe9299/filer/models/abstract.py#L10

Guess I'll have to spin my own personal fork. Hurray for opensource!