We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74b2628 commit d3928d0Copy full SHA for d3928d0
README.md
@@ -55,6 +55,19 @@ pb().rotate(90).blur(10).build({
55
path: 's3://mybucket/myimage.png',
56
baseUrl: 'https://my-imgproxy-instance.example.com',
57
});
58
+
59
+// You can clone the current configuration for templating / reuse
60
+const template = pb().rotate(90);
61
+const copy = template.clone();
62
63
+// To remove a modifier, use the `unset` function
64
+const t = pb().rotate(90).blur(10);
65
+t.unset('rotate');
66
67
+// ... Or you can replace the previous setting by calling the
68
+// modifier again
69
+const t = pb().rotate(90).blur(10); // rotate: 90, blur: 10
70
+t.rotate(34); // rotate: 34, blur: 10
71
```
72
73
## Supported Imgproxy Transformations
0 commit comments