# @ciscospark/helper-image

> [![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)

Latest version **1.52.2** (published 2019-05-01) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @ciscospark/helper-image
pnpm add @ciscospark/helper-image
yarn add @ciscospark/helper-image
bun add @ciscospark/helper-image
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.52.2 |
| Published | 2019-05-01 |
| First published | 2016-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 7 |
| Unpacked size | 50.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 205 |
| Author | Saurabh Jain |
| Maintainers | adamweeks, mattnorris, webex-jenkins |

## Links

- npm: https://www.npmjs.com/package/@ciscospark/helper-image
- Repository: https://github.com/webex/spark-js-sdk/tree/master/packages/node_modules/@ciscospark/helper-image
- npm.io page: https://npm.io/package/@ciscospark/helper-image

## Dependencies (7)

- [gm](https://npm.io/package/gm.md) ^1.23.0
- [exif](https://npm.io/package/exif.md) ^0.6.0
- [envify](https://npm.io/package/envify.md) ^4.1.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [mime-types](https://npm.io/package/mime-types.md) ^2.1.15
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.23.0
- [@ciscospark/http-core](https://npm.io/package/@ciscospark/http-core.md) 1.52.2

## Recent versions

- 1.52.2 (latest) — 2019-05-01
- 1.52.1 — 2019-04-30
- 1.52.0 — 2019-04-26
- 1.50.19 — 2019-04-09
- 1.50.18 — 2019-04-04
- 1.50.17 — 2019-04-03
- 1.50.16 — 2019-04-02
- 1.50.15 — 2019-04-01
- 1.50.13 — 2019-03-28
- 1.50.12 — 2019-03-27
- 1.50.11 — 2019-03-27
- 1.50.6 — 2019-03-15
- 1.50.3 — 2019-03-13
- 1.50.2 — 2019-03-08
- 1.50.1 — 2019-03-07
- … 120 more at https://npm.io/package/@ciscospark/helper-image/versions

## README

# @ciscospark/helper-image

[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)

> Helpers for rotating images and creating their thumbnails. Mostly browser-only.

- [Install](#install)
- [Usage](#usage)
- [Contribute](#contribute)
- [Maintainers](#maintainers)
- [License](#license)

## Install

```bash
npm install --save @ciscospark/helper-image
```

## Usage

### `drawImage(options)`

Draws the image on the canvas so that the thumbnail could be generated.

### `updateImageOrientation(file)`

Updates the image file with exif information, required to correctly rotate the image activity

### `readExifData(file, buf)`

Adds exif orientation information on the image file

### `orient(options, file)`

Rotates/flips the image on the canvas as per exif information

## Maintainers

This package is maintained by [Cisco Webex for Developers](https://developer.webex.com/).

## Contribute

Pull requests welcome. Please see [CONTRIBUTING.md](https://github.com/webex/spark-js-sdk/blob/master/CONTRIBUTING.md) for more details.

## License

© 2016-2018 Cisco and/or its affiliates. All Rights Reserved.

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