# html-load-image

> ## Overview

Latest version **1.4.0** (published 2022-11-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install html-load-image
pnpm add html-load-image
yarn add html-load-image
bun add html-load-image
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2022-11-09 |
| First published | 2021-12-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | sura0111 |

## Links

- npm: https://www.npmjs.com/package/html-load-image
- Repository: https://github.com:sura0111/html-load-image
- Homepage: https://github.com/sura0111/html-load-image
- Issues: https://github.com/sura0111/html-load-image/issues
- npm.io page: https://npm.io/package/html-load-image

## Dependencies (1)

- [blueimp-load-image](https://npm.io/package/blueimp-load-image.md) ^5.16.0

## Recent versions

- 1.4.0 (latest) — 2022-11-09
- 1.3.9 — 2022-11-09
- 1.3.8 — 2022-11-09
- 1.3.7 — 2022-11-09
- 1.3.5 — 2022-10-20
- 1.3.4 — 2021-12-07
- 1.3.3 — 2021-12-07
- 1.3.2 — 2021-12-07
- 1.3.1 — 2021-12-07
- 1.3.0 — 2021-12-05
- 1.2.0 — 2021-12-05
- 1.1.0 — 2021-12-05
- 1.0.0 — 2021-12-05

## README

# HTML Load Image Package

## Overview

This package is to get the image files as dataURLs from `Event` or `DragEvent`. It's using blueimp-load-image package as a dependency.

## Install

```sh
yarn add html-load-image
```

## Definitions

```ts
type getImage = (event: Event, options?: LoadImageOptions) => Promise<string>

type getImages = (event: Event, options?: LoadImagesOptions) => Promise<string[]>

type LoadImageOptions = Omit<BlueImpLoadImageOptions, 'orientation' | 'meta' | 'canvas'>

interface LoadImagesOptions extends LoadImageOptions {
  maxLoadImageCount: number
}
```

## Usage

```ts
const image = await getImage(event)
const images = await getImages(event, { maxLoadImageCount: 5 })
```

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