15.6.2 • Published 4 years ago

@the-/resize v15.6.2

Weekly downloads
216
License
MIT
Repository
github
Last release
4 years ago

@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

15.6.2

4 years ago

15.6.1

4 years ago

15.5.4

4 years ago

15.5.3

4 years ago

15.5.1

4 years ago

15.4.16

4 years ago

15.4.15

4 years ago

15.4.14

4 years ago

15.4.10

5 years ago

15.4.0

5 years ago

15.2.3

5 years ago

15.2.2

5 years ago

15.2.0

5 years ago

15.1.4

5 years ago

15.1.3

5 years ago

15.1.2

5 years ago

15.1.0

5 years ago

15.0.3

5 years ago