# @indexsoftware/image-helpers

> ## Install To install, run: ```bash npm install @indexsoftware/image-helpers ```

Latest version **1.3.0** (published 2021-03-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install @indexsoftware/image-helpers
pnpm add @indexsoftware/image-helpers
yarn add @indexsoftware/image-helpers
bun add @indexsoftware/image-helpers
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2021-03-18 |
| First published | 2021-03-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | daenrebel, localjoost, tychoindex, wmvandervalk |

## Links

- npm: https://www.npmjs.com/package/@indexsoftware/image-helpers
- npm.io page: https://npm.io/package/@indexsoftware/image-helpers

## Recent versions

- 1.3.0 (latest) — 2021-03-18
- 1.2.0 — 2021-03-16
- 1.0.0 — 2021-03-16

## README

# image-helpers

## Install
To install, run:
```bash
npm install @indexsoftware/image-helpers
```

## Usage
To use the image-helpers:
```js
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);
```

---
_Source: https://npm.io/package/@indexsoftware/image-helpers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
