# tasvir

> Bulk image manipulation tool

Latest version **1.0.1** (published 2015-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install tasvir
pnpm add tasvir
yarn add tasvir
bun add tasvir
```

Provides the command `tasvir`.

## 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.0.1 |
| Published | 2015-10-15 |
| First published | 2015-10-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Turan Rustamli |
| Maintainers | trustamli |
| Keywords | images, utils, processing, crop, resize, static |

## Links

- npm: https://www.npmjs.com/package/tasvir
- Repository: https://github.com/rustamli/tasvir
- Homepage: http://rustam.li
- Issues: https://github.com/rustamli/tasvir/issues
- npm.io page: https://npm.io/package/tasvir

## Dependencies (3)

- [glob](https://npm.io/package/glob.md) ^5.0.15
- [jimp](https://npm.io/package/jimp.md) ^0.2.8
- [tinify](https://npm.io/package/tinify.md) ^1.1.1

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-10-15
- 1.0.0 — 2015-10-13

## README

# tasvir

Bulk image manipulation tool

## Installation

```
npm install tasvir -g
```

## Running

Normal mode:

```
tasvir
```

Overwrite mode (will force tinification):

```
tasvir overwrite
```

## Sample configuration file:

**tasvir.config.js**

```javascript

module.exports = {
  prefixSeparator: '--',

  tinify: {
    enabled: true,
    apiKey: '<YOUR-KEY>',
    saveOriginal: true,
    originalPrefix: 'orig',
  },

  paths: [
    'static/images/*'
  ],

  rules: [
    {
      chain: [
        { apply: 'resize', params: [ 600, 'AUTO' ] },
        { apply: 'write', prefix: 'w600' }
      ]
    },
    {
      chain: [
        { apply: 'cover', params: [ 300, 300 ] },
        { apply: 'write', prefix: 'sq' }
      ]
    }
  ]
};

```

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