-
Notifications
You must be signed in to change notification settings - Fork 5
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
Watermark with Resize #4
Comments
Just do it in two locations with rewrite |
Please @TrurlMcByte , could you give me an example? location ~ "^/media/(?\d+)-w/(?.+)$" { server {
} I dont know where I could add the watermark on the resized image :( Thank you so much! |
Use proxy_pass to server itself (or nginx cluster) |
Hi, is there a way to add a watermark and resize the image at the same time?
When "image_filter watermark" stands below "image_filter resize", the image cant resize.
When "image_filter resize" stands below "image_filter watermarks", the image dont show the watermark.
Code:
alias /home/ubuntu/SERVER/uploads/$image; image_filter_interlace on; image_filter resize $width -; image_filter_jpeg_quality 75; image_filter_buffer 12M; image_filter watermark /path/logo.png center;
Thank you!
ps: Sorry for bad english.
The text was updated successfully, but these errors were encountered: