@@ -22,26 +22,26 @@ import pb from '@bitpatty/imgproxy-url-builder';
2222pb ().rotate (90 ).blur (10 ).build ();
2323
2424// The transformer params with the target image
25- // Returns /rot:90/bl:10/bXlpbWFnZS5wbmc
25+ // Returns /rot:90/bl:10/czM6Ly9teWJ1Y2tldC9teWltYWdlLnBuZw
2626pb ().rotate (90 ).blur (10 ).build ({
27- path: ' myimage.png' ,
27+ path: ' s3://mybucket/ myimage.png' ,
2828});
2929
3030// You can disable path encoding by setting 'plain' to true
31- // Returns rot:90/bl:10/plain/myimage.png
31+ // Returns / rot:90/bl:10/plain/s3://mybucket /myimage.png
3232pb ().rotate (90 ).blur (10 ).build ({
33- plain: true
34- path : ' myimage.png' ,
33+ plain: true ,
34+ path: ' s3://mybucket/ myimage.png' ,
3535});
3636
3737// To sign your URL provide the key and salt
3838// The path is required to sign your URL!
39- // Returns /G-Rj8JZAxQSnYcMNXMNrhkGaid3d7NfjaBJNuaV4ebA /rot:90/bl:10/bXlpbWFnZS5wbmc
39+ // Returns /TXf2QXtZkU-ULvrg0pLDqJlWUb7XdHkXD0h6NFWD-mo /rot:90/bl:10/czM6Ly9teWJ1Y2tldC9teWltYWdlLnBuZw
4040pb ()
4141 .rotate (90 )
4242 .blur (10 )
4343 .build ({
44- path: ' myimage.png' ,
44+ path: ' s3://mybucket/ myimage.png' ,
4545 signature: {
4646 key: ' a91bdcda48ce22cd7d8d3a0eda93' ,
4747 salt: ' a91bdcda48ce22cd7d8d3a0eda93' ,
5050
5151// To automatically prepend the imgproxy URL
5252// provide it as the 'baseUrl' setting
53- // Returns https://my-imgproxy-instance.example.com/rot:90/bl:10/bXlpbWFnZS5wbmc
53+ // Returns https://my-imgproxy-instance.example.com/rot:90/bl:10/czM6Ly9teWJ1Y2tldC9teWltYWdlLnBuZw
5454pb ().rotate (90 ).blur (10 ).build ({
55- path: ' myimage.png' ,
55+ path: ' s3://mybucket/ myimage.png' ,
5656 baseUrl: ' https://my-imgproxy-instance.example.com' ,
5757});
5858```
0 commit comments