# the-resize

> Resize image files

Latest version **1.0.9** (published 2019-01-18) · MIT license · 0 weekly downloads

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

## Install

```sh
npm install the-resize
pnpm add the-resize
yarn add the-resize
bun add the-resize
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2019-01-18 |
| First published | 2018-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 7 |
| Unpacked size | 349.2 KB |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| Author | okunishinishi |
| Maintainers | okunishinishi |
| Keywords | the |

## Links

- npm: https://www.npmjs.com/package/the-resize
- Repository: https://github.com/the-labo/the-resize
- Homepage: https://github.com/the-labo/the-resize#readme
- Issues: https://github.com/the-labo/the-resize/issues
- npm.io page: https://npm.io/package/the-resize

## Dependencies (7)

- [asfs](https://npm.io/package/asfs.md) ^2.0.3
- [aglob](https://npm.io/package/aglob.md) ^3.0.1
- [sharp](https://npm.io/package/sharp.md) ^0.21.2
- [amkdirp](https://npm.io/package/amkdirp.md) ^2.0.0
- [the-tmp](https://npm.io/package/the-tmp.md) ^1.0.6
- [filecopy](https://npm.io/package/filecopy.md) ^4.0.1
- [the-file-util](https://npm.io/package/the-file-util.md) ^1.1.3

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 1.0.9 (latest) — 2019-01-18
- 1.0.7 — 2018-11-06
- 1.0.5 — 2018-11-02
- 1.0.4 — 2018-10-30
- 1.0.3 — 2018-10-29
- 1.0.2 — 2018-10-29
- 1.0.1 — 2018-10-29
- 1.0.0 — 2018-10-29

## README

the-resize
==========

<!---
This file is generated by the-tmpl. Do not update manually.
--->

<!-- Badge Start -->
<a name="badges"></a>

[![Build Status][bd_travis_shield_url]][bd_travis_url]
[![npm Version][bd_npm_shield_url]][bd_npm_url]
[![JS Standard][bd_standard_shield_url]][bd_standard_url]

[bd_repo_url]: https://github.com/the-labo/the-resize
[bd_travis_url]: http://travis-ci.org/the-labo/the-resize
[bd_travis_shield_url]: http://img.shields.io/travis/the-labo/the-resize.svg?style=flat
[bd_travis_com_url]: http://travis-ci.com/the-labo/the-resize
[bd_travis_com_shield_url]: https://api.travis-ci.com/the-labo/the-resize.svg?token=
[bd_license_url]: https://github.com/the-labo/the-resize/blob/master/LICENSE
[bd_npm_url]: http://www.npmjs.org/package/the-resize
[bd_npm_shield_url]: http://img.shields.io/npm/v/the-resize.svg?style=flat
[bd_standard_url]: http://standardjs.com/
[bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg

<!-- Badge End -->


<!-- Description Start -->
<a name="description"></a>

Resize image files

<!-- Description End -->


<!-- Overview Start -->
<a name="overview"></a>



<!-- Overview End -->


<!-- Sections Start -->
<a name="sections"></a>

<!-- Section from "doc/guides/01.Installation.md.hbs" Start -->

<a name="section-doc-guides-01-installation-md"></a>

Installation
-----

```bash
$ npm install the-resize --save
```


<!-- Section from "doc/guides/01.Installation.md.hbs" End -->

<!-- Section from "doc/guides/02.Usage.md.hbs" Start -->

<a name="section-doc-guides-02-usage-md"></a>

Usage
---------

```javascript
'use strict'

const { TheResize } = require('the-resize')

async function tryExample () {
  const resize = new TheResize({
    width: 200,

    fit: 'inside',
    height: 200
  })
  // Resize image to size fit inside 200x200
  await resize.convert('src01.png', 'dest01.png')
}

tryExample().catch((err) => console.error(err))

```


<!-- Section from "doc/guides/02.Usage.md.hbs" End -->

<!-- Section from "doc/guides/10.API Guide.md.hbs" Start -->

<a name="section-doc-guides-10-a-p-i-guide-md"></a>

API Guide
-----

+ [the-resize@1.0.9](./doc/api/api.md)
  + [create(args)](./doc/api/api.md#the-resize-function-create)
  + [TheResize](./doc/api/api.md#the-resize-class)


<!-- Section from "doc/guides/10.API Guide.md.hbs" End -->


<!-- Sections Start -->


<!-- LICENSE Start -->
<a name="license"></a>

License
-------
This software is released under the [MIT License](https://github.com/the-labo/the-resize/blob/master/LICENSE).

<!-- LICENSE End -->


<!-- Links Start -->
<a name="links"></a>

Links
------

+ [THE Labo][t_h_e_labo_url]

[t_h_e_labo_url]: https://github.com/the-labo

<!-- Links End -->

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