Skip to content

Commit 925201f

Browse files
committed
watermark_text docs and spec
1 parent 01f61ec commit 925201f

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ builder.url_for("http://images.example.com/images/image2.jpg")
225225
- [unsharpening](https://docs.imgproxy.net/generating_the_url?id=unsharpening) _(pro)_
226226
- [watermark](https://docs.imgproxy.net/generating_the_url?id=watermark)
227227
- [watermark_url](https://docs.imgproxy.net/generating_the_url?id=watermark-url) _(pro)_
228+
- [watermark_text](https://docs.imgproxy.net/generating_the_url?id=watermark-text) _(pro)_
228229
- [style](https://docs.imgproxy.net/generating_the_url?id=style) _(pro)_
229230
- [jpeg_options](https://docs.imgproxy.net/generating_the_url?id=jpeg-options) _(pro)_
230231
- [png_options](https://docs.imgproxy.net/generating_the_url?id=png-options) _(pro)_

lib/imgproxy.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def configure
8787
# @option options [String] :unsharpening supported only by imgproxy pro
8888
# @option options [Hash|Array|Float|String] :watermark
8989
# @option options [String] :watermark_url supported only by imgproxy pro
90+
# @option options [String] :watermark_text supported only by imgproxy pro
9091
# @option options [String] :style supported only by imgproxy pro
9192
# @option options [Hash|Array|String] :jpeg_options supported only by imgproxy pro
9293
# @option options [Hash|Array|String] :png_options supported only by imgproxy pro

lib/imgproxy/options_aliases.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module Imgproxy
2727
unsharpening: :ush,
2828
watermark: :wm,
2929
watermark_url: :wmu,
30+
watermark_text: :wmt,
3031
style: :st,
3132
jpeg_options: :jpego,
3233
png_options: :pngo,

spec/imgproxy_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
scale: 0.1,
9494
},
9595
watermark_url: "https://images.test/wm.svg",
96+
watermark_text: "the watermark",
9697
style: "color: rgba(255, 255, 255, .5)",
9798
jpeg_options: {
9899
progressive: true,
@@ -156,6 +157,7 @@
156157
"ush:always",
157158
"wm:0.5:noea:10:5:0.1",
158159
"wmu:aHR0cHM6Ly9pbWFnZXMudGVzdC93bS5zdmc",
160+
"wmt:dGhlIHdhdGVybWFyaw",
159161
"st:Y29sb3I6IHJnYmEoMjU1LCAyNTUsIDI1NSwgLjUp",
160162
"jpego:1:0:1:0:1:5",
161163
"pngo:0:1:128",
@@ -203,6 +205,7 @@
203205
"unsharpening:always",
204206
"watermark:0.5:noea:10:5:0.1",
205207
"watermark_url:aHR0cHM6Ly9pbWFnZXMudGVzdC93bS5zdmc",
208+
"watermark_text:dGhlIHdhdGVybWFyaw",
206209
"style:Y29sb3I6IHJnYmEoMjU1LCAyNTUsIDI1NSwgLjUp",
207210
"jpeg_options:1:0:1:0:1:5",
208211
"png_options:0:1:128",

0 commit comments

Comments
 (0)