Socket
Book a DemoInstallSign in
Socket

image-simple-resize

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-simple-resize

Resize images, optimize, convert to webp and deploy to AWS S3.

latest
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

Image simple resize

How to use

  • npm install -D
  • add image files to a directory.
  • import the package const imgSimpleResizer = require('image-simple-resize')
  • imgSimpleResizer function takes 2 arguments:
    • pathToImages: string use path.join(__dirname, path_to_your_images)
    • options: Options
      • awsConfig: AWSConfig {bucket: string; accessKeyId: string; secretAccessKey: string;}
      • imageSizes: ImageSizes {thumbnail?: number; product?: number; origin?: number;}
      • useWebp: boolean
  • see your optimized files in the AWS S3 bucket

FAQs

Package last updated on 10 Jun 2020

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