Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
Socket

newsifier-image-url-generator

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newsifier-image-url-generator

# Installation

Source
npmnpm
Version
1.0.14
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 13 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts