1.0.22 • Published 3 years ago

newsifier-image-url-generator v1.0.22

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.15

3 years ago

1.0.14

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago