BenMorel
BenMorel

Reputation: 36514

Thumbor focal() filter not taken into account

I'm trying to replicate the example of the focal() docs.

When going to the URL:

http://localhost:8888/unsafe/400x100/filters:focal(146x206:279x360)/https%3A%2F%2Fgithub.com%2Fthumbor%2Fthumbor%2Fraw%2Fmaster%2Fexample.jpg

I'm supposed to get this picture as a result:

enter image description here

But I'm getting instead:

enter image description here

Which is the same as if I removed the /filters:focal(146x206:279x360) part, so it looks like it's simply ignored.

What am I doing wrong? I'm using Thumbor 6.4.2.

Upvotes: 2

Views: 161

Answers (2)

cweiske
cweiske

Reputation: 31088

We had this problem with thumbor 6.7.5 - focal points did not have any effect.

The source of the problem was that our thumbor configuration file did not enable the thumbor.filters.focal filter, only the extract_focal filter.

Upvotes: 0

BenMorel
BenMorel

Reputation: 36514

This seemed to be an issue with this particular Thumbor version.

Upgrading to 6.7.0 fixed the problem.

Upvotes: 1

Related Questions