# trippyshift

> use graphicsmagic to overlay a second copy at a random offset using the Add comosition. It looks trippy.

Latest version **1.0.1** (published 2014-08-28) · ISC license · 0 weekly downloads

## Install

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

## 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 | 2014-08-28 |
| First published | 2014-08-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dan Flettre |
| Maintainers | flet |
| Keywords | trippy, shift, revisit.link, revisitor, graphicsmagick, image, manipulate |

## Links

- npm: https://www.npmjs.com/package/trippyshift
- Repository: https://github.com/Flet/trippyshift
- Issues: https://github.com/Flet/trippyshift/issues
- npm.io page: https://npm.io/package/trippyshift

## Dependencies (2)

- [gm](https://npm.io/package/gm.md) ^1.16.0
- [temp](https://npm.io/package/temp.md) ^0.8.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) — 2014-08-28
- 1.0.0 — 2014-08-26

## README

trippyshift
===========

This module takes a buffer holding an image and uses graphicsmagick to overlay an offset second copy of the image while applying the "Add" composite operator.

install:
```
npm install trippyshift --save
```

usage:
```
var fs = require('fs'),
    trippyshift = require('trippyshift');


var wooo;
fs.readFile('./file.jpg', function (err, data) {
    wooo = data;
    trippyshift({}, data, writeToDestination);
});

function writeToDestination(err, trippedOutBuf) {
    if (err) throw err;
    fs.writeFileSync('./output.jpg', trippedOutBuf);
};
```

an `options` object with `shiftXMaxPercent` and/or shiftYMaxPercent can be passed in optionally as the first argument.

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