serverless-image-handler icon indicating copy to clipboard operation
serverless-image-handler copied to clipboard

thumbor filters( format, watermark) are not working.

Open grendach opened this issue 7 years ago • 4 comments

I've tried to run and play with serverless-image-handler. What I've found is that some thumbor filters are not working as expected. For example:

  • filter filters:format(webp) doesn't want to format image into webp. When you will try to save formatted picture it will be still in origin format (*.jpg in my case)
  • filter filters:watermark(imageUrl, x, y, alpha [, w_ratio [, h_ratio]]) doesn't show watermark on my picture at all. I've compared serverless-image-handler setup with original thumbor installation( thumbor as docker image on my laptop) and above filters are working as expected. Would you be so kind to check if these filters working for you?

grendach avatar Jun 20 '19 06:06 grendach

Hey @grendach: thanks for the heads up on the mappings not working as expected for you. We'll look into this and make the necessary adjustments in an upcoming release!

hayesry avatar Jun 20 '19 12:06 hayesry

Hey @hayesry

Could you post an example of a native Sharp JSON object for watermarking an image as the Thumbor filter mapping doesn't seem to be working. How do you add the path to watermark image, x position, y position and transparency to the object?

abalsekar avatar Jul 22 '19 15:07 abalsekar

Hey @grendach: thanks for the heads up on the mappings not working as expected for you. We'll look into this and make the necessary adjustments in an upcoming release!

Hi, do you have any status please? The watermark filter doesn't work for me too. Thanks

TuNi54 avatar Jul 29 '19 20:07 TuNi54

We have updated our solution, and I believe your issue has been fixed. If you still see the issue with the latest version (v4.2), please feel free to reopen the issue.

For the way how you can create a watermark, you can refer to the implementation guide Appendix D: List of Supported Thumbor Filters.

You can also refer to the recent changes here.

beomseoklee avatar Feb 06 '20 21:02 beomseoklee