# canvas-revert

> 一个将图片镜像翻转的小工具

Latest version **1.0.5** (published 2022-03-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install canvas-revert
pnpm add canvas-revert
yarn add canvas-revert
bun add canvas-revert
```

## 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.5 |
| Published | 2022-03-29 |
| First published | 2022-03-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | GuitarHusky |
| Maintainers | guitarhusky |

## Links

- npm: https://www.npmjs.com/package/canvas-revert
- npm.io page: https://npm.io/package/canvas-revert

## Recent versions

- 1.0.5 (latest) — 2022-03-29
- 1.0.4 — 2022-03-29

## README

![镜像图片](https://hbimg.huabanimg.com/542273a76b74609b6c9154480e8e0a4c2f42b6981ccd8-fNNSer_fw1200)

## 功能
一个将图片镜像翻转的小工具，内部使用canvas的矩阵换算。
在iOS15.0系统以前，Safari浏览器使用canvas.toDataURL()导出快照，图片是镜像倒立的，需要镜像翻转恢复，便可使用此工具
## 使用
```node
npm install canvas-revert
import rotateImg from 'canvas-revert'
let resImg = rotateImg(url||base64)
```
## 有问题反馈
在使用中有任何问题，欢迎反馈给我，可以用以下联系方式跟我交流

## 捐助开发者
在兴趣的驱动下,写一个`免费`的东西，有欣喜，也还有汗水，希望你喜欢我的作品，同时也能支持一下。

## 关于作者

```javascript
var author = {
  nickName: "GuitarHusky"
  tool: 'a canvas tool'
}
```

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