Skip to content

Commit 3a5f983

Browse files
committed
update watermark doc
1 parent 246a901 commit 3a5f983

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

files/etc/nginx/sites-enabled/server.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ server {
246246
image_filter rotate $rotate;
247247

248248
image_filter resize $width $height;
249+
250+
# use watermark directive last
251+
# image_filter watermark /path/to/watermark.png [ bottom-right (default) | top-left | top-right | bottom-left | center ];
252+
249253
}
250254

251255
location /cmd/crop {
@@ -267,6 +271,10 @@ server {
267271

268272
image_filter_crop_offset $crop_offx $crop_offy;
269273
image_filter crop $width $height;
274+
275+
# use watermark directive last
276+
# image_filter watermark /path/to/watermark.png [ bottom-right (default) | top-left | top-right | bottom-left | center ];
277+
270278
}
271279

272280
location @handle_redirect {

0 commit comments

Comments
 (0)