filestack/filestack-python

Add Minify CSS task

bkwi opened this issue · 2 comments

bkwi commented

New minify_css task should be added to ImageTransformationMixin

Filestack docs can be found here

This task takes two arguments: level and gzip.
It should be implemented similarly to resize, crop or rotate.

Expected usage:

filelink.minify_css()
filelink.minify_css(level=1, gzip=False)

Tests are required.

For reference, please see PR #38

Is the filelink a Client object? Can the link to the css file that needs to be minified, be outside of filestack.com, or should it belong to this domain exclusively?

bkwi commented

@KIRA009 Filelink and Client objects are not the same.

Link to css file does not have to be a filestack.com url, something like this will work:

https://cdn.filestackcontent.com/API_KEY/minify_css/https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.css

Please see how other tasks are implemented.