# cheems-image-generation

> Offical Image Generation Module For Cheems Bot :)

Latest version **1.0.7** (published 2021-12-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install cheems-image-generation
pnpm add cheems-image-generation
yarn add cheems-image-generation
bun add cheems-image-generation
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2021-12-12 |
| First published | 2021-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 617.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | HawzaJS |
| Maintainers | hamzawastaken |
| Keywords | discord, image gen, image generation, manipulation, cheems |

## Links

- npm: https://www.npmjs.com/package/cheems-image-generation
- Repository: https://github.com/HawzaJS/cheems-image-generation
- Homepage: https://github.com/HawzaJS/cheems-image-generation#readme
- Issues: https://github.com/HawzaJS/cheems-image-generation/issues
- npm.io page: https://npm.io/package/cheems-image-generation

## Dependencies (2)

- [jimp](https://npm.io/package/jimp.md) ^0.16.1
- [canvas](https://npm.io/package/canvas.md) ^2.8.0

## 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.7 (latest) — 2021-12-12
- 1.0.6 — 2021-12-12
- 1.0.5 — 2021-12-12
- 1.0.4 — 2021-12-12
- 1.0.3 — 2021-12-12
- 1.0.2 — 2021-12-12

## README

# cheems-image-generation

simple image generation module.



# Download

You can download it from <a href="https://www.npmjs.com/package/cheems-image-generation">npmjs</a>.

```cli
npm i cheems-image-generation
```

# Configuration

The first step is to import the module in your code.

```js
const cheems = require("cheems-image-generation");
```

Then you have to request your image and send it as an attachement.

```js
// Import the discord.js library.
const { Client, MessageAttachment } = require("discord.js")


const cheems = require("cheems-image-generation");
> You can also destructure to avoid repeating cheems


Client.on("message", async (message) => {
    if (message.content === "!gay") {
        let avatar = message.author.displayAvatarURL({ dynamic: false, format: 'png' });
        // Make the image
        let img = await new cheems.gay().getImage(avatar)
        // Add the image as an attachement
        let image = new MessageAttachment(img, "delete.png");;
        message.channel.send(image)
    }
})

// Log in to the bot
Client.login("bot.token.lol")
````

# Available images


## Filters

- ``new cheems.Blur().getImage(`<Avatar>`);``

![America]()

- ``new cheems.Gay().getImage(`<Avatar>`);``

![Gay]()

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