# grunt-graphics

> Manage images

Latest version **0.1.5** (published 2015-07-20) · 0 weekly downloads

## Install

```sh
npm install grunt-graphics
pnpm add grunt-graphics
yarn add grunt-graphics
bun add grunt-graphics
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2015-07-20 |
| First published | 2015-05-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 7 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Gabriel Bull |
| Maintainers | gabrielbull |
| Keywords | image, assets, graphics, jpeg, jpg, gif, png |

## Links

- npm: https://www.npmjs.com/package/grunt-graphics
- Repository: https://github.com/gabrielbull/grunt-graphics
- Homepage: https://github.com/gabrielbull/grunt-graphics#readme
- Issues: https://github.com/gabrielbull/grunt-graphics/issues
- npm.io page: https://npm.io/package/grunt-graphics

## Dependencies (7)

- [gm](https://npm.io/package/gm.md) ^1.17.0
- [tmp](https://npm.io/package/tmp.md) 0.0.25
- [glob](https://npm.io/package/glob.md) ^5.0.3
- [async](https://npm.io/package/async.md) ^0.9.0
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.0
- [grunt-git](https://npm.io/package/grunt-git.md) ^0.3.4
- [imagemagick](https://npm.io/package/imagemagick.md) ^0.1.3

## 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

- 0.1.5 (latest) — 2015-07-20
- 0.1.4 — 2015-07-17
- 0.1.2 — 2015-07-13
- 0.1.1 — 2015-05-05
- 0.1.0 — 2015-05-05

## README

# grunt-graphics

[![Build Status](https://travis-ci.org/gabrielbull/grunt-graphics.svg)](https://travis-ci.org/gabrielbull/grunt-graphics)

## Getting Started

Example config

```js
grunt.initConfig({
    graphics: {
        assets: {
            src: "assets/**/*"
        }
    }
});
```

Example file in assets directory

File `assets/images.js`:

```js
module.exports = [
    {
        options: [
            {suffix: '@1x', width: 768},
            {suffix: '@2x', width: (768 * 2)},
            {suffix: '@3x', width: (768 * 3)}
        ],
        files: {
            "dist/images/image-output.png": "src/image-source.psd"
        }
    }
];
```

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