@indexsoftware/image-helpers
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

image-helpers

Install

To install, run:

npm install @indexsoftware/image-helpers

Usage

To use the image-helpers:

import ImageHelpers from '@indexsoftware/image-helpers'

const ih = new ImageHelpers();
ih.maxWidth = 1024;
ih.maxHeight = 900;

// Load the image
ih.load(files[0]);

// Get the image base64
console.log(ih.imageDataUrl);
// Get the image base64 size
console.log(ih.imageDataUrlSize);
// Get the image blob
console.log(ih.imageObjectUrl);

// Get the original file
console.log(ih.file);

Readme

Keywords

none

Package Sidebar

Install

npm i @indexsoftware/image-helpers

Weekly Downloads

2

Version

1.3.0

License

ISC

Unpacked Size

6.63 kB

Total Files

8

Last publish

Collaborators

  • joostindex
  • tychoindex
  • wmvandervalk