Skip to content

Thumbor URL "filters" changes from 3.1.1 to 4.2 #187

@Furytron

Description

@Furytron

Hi all,

I upgraded from 3.1.1 to 4.2 to begin some local testing since I found out that S3 paths could be followed in 4.2 for Thumbor URLs. I noticed that the supported URL format seems to have changed between the versions. Just wondering if this was something that was planned or a possible oversight or a bug maybe?

These URLs would have worked on 3.1.1. Notice that the filter rules are chained with a ":" colon delimiter.

  1. https://cloudfront.net/filters:quality(80):blur(11)/path/to/file/cat.jpg
  2. https://cloudfront.net/fit-in/300x300/filters:rotate(90):convolution(1;2;1;2;4;2;1;2;1,3,false)/path/to/file/cat.jpg

After upgrading to 4.2 using the Cloudformation template the above 2 URLs no longer work. The first URL needs to have an extra "filters:" keyword before the "blur". The documentation does reflect this change. however, if you had a lot of filters in the URL, it would be unnecessarily long since it needs to include the keyword "filters:" for each one. It seems kind of redundant to specify the "filters" keyword for each filter in the URL. The Thumbor documentation also has examples of filter chaining, which leads me to think its a bug or something.

The fixed first URL:

  1. https://cloudfront.net/filters:quality(80)/filters:blur(11)/path/to/file/cat.jpg

For the second link, the "convolution" filter doesn't appear to work from what I have tried. Not sure if I have the filter wrong, but I am using the same one from the documentation. I can see that its mapped in the Thumbor mapping code, so not sure whats wrong. I can open up a new issue for that if you think its necessary.

  1. https://cloudfront.net/fit-in/300x300/filters:rotate(90)/filters:convolution(1;2;1;2;4;2;1;2;1,3,false)/path/to/file/cat.jpg

Any help would be appreciated! Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions