1.0.22 • Published 1 year ago
newsifier-image-url-generator v1.0.22
newsifier-resizer-image-func
Installation
$ npm install newsifier-image-url-generator
Usage
const { Resizer } = require('newsifier-image-url-generator');
let resizer = new Resizer("imgproxy","https://r.testifier.nl");
resizer.resize( "https://s3-newsifier.ams3.digitaloceanspaces.com/androidworld.newsifier.com/images/2020-10/DKoidc0T3T1KvYC2stChcX9zwmjKj1pgmg3hXzGBDQXM8RG_7JjgiuS0CLOh8DUa7asw512_k5KzyAq-5f9b228de7c68" , {"w":500,"h":200,"watermark":"Pro text"} );
resize
takes 2 params as the following- image_url : the origin url of the image - required.
- render_options : object contains the rendering options - optional.
- w : width - optional
- h : height - optional
- watermark : watermark text - optional
1.0.18
1 year ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.22
1 year ago
1.0.21
1 year ago
1.0.20
1 year ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago