@the-/resize

15.6.2 • Public • Published

@the-/resize

npm Version

Resize image files

Installation

$ npm install @the-/resize --save

Usage

'use strict'

const { TheResize } = require('@the-/resize')

async function tryExample() {
  const resize = new TheResize({
    fit: 'inside', // 'cover','contain','fill', 'inside' or 'outside'

    height: 200,
    width: 200,
  })
  // Resize image to size fit inside 200x200
  await resize.convert('src01.png', 'dest01.png')
}

tryExample().catch((err) => console.error(err))

API Guide

See API Guide for more detail

License

This software is released under the MIT License.

Links

/@the-/resize/

    Package Sidebar

    Install

    npm i @the-/resize

    Weekly Downloads

    20

    Version

    15.6.2

    License

    MIT

    Unpacked Size

    89.2 kB

    Total Files

    16

    Last publish

    Collaborators

    • okunishinishi