-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with thumbor.filters.fill #12
Comments
Same problem here. When i switch to the video engine, then the following call fails with the same error message:
Just to be sure, the image referenced here is a @elefante where you ever able to figure this out? |
This is the stacktrace I'm getting
The filter fill appears to call |
I'm also having this issue. Any work-around? |
I finally understand what is happening with this project. Here is the environment variables according to the documentation at https://thumbor-video-engine.readthedocs.io/en/latest/
I changed the environment variables to include the filters I need when manipulating images in the default thumbor engine
Also, I had to use a fork of this project. The fork is at this link: https://github.com/eighteen73/thumbor-video-engine |
@elefante That Eighteen73 fork is mine, I have submitted a PR to get this fixed in this repo. |
Is #23 actually the same problem? |
I see the issue. It stems from the fact that the fill filter re-instantiates the engine here Normally, the engine has enough information to determine whether it's being used for an image or video, and so it is able to dispatch the method call to self.image_engine or self.video_engine, respectively. But it lacks that context in the fill filter function. Having the base video engine extend the PIL engine causes failures elsewhere. The solution might be to have certain methods default to using the image_engine. I'll take a closer look at this. |
First I would like to thank you for your project!
I have a problem when I try to use the filter thumbor.filters.fill. For some reason it doesn't work. When I go back to using the default engine, the filter works without problems.
I am using the minimalcompact/thumbor image, from hub.docker.com
Here's an example of what's happening
https://example.com/0x0:192x192/260x260/filters:still():format(jpeg):quality(10):fill(blue,1)/example.png
Here is the filter configuration of my container:
['thumbor_video_engine.filters.format','thumbor_video_engine.filters.still','thumbor.filters.fill',]
The log from container after access the URL
Thank you for your help!
Best regards!
The text was updated successfully, but these errors were encountered: