Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

imange

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imange

An all in one solution for image manipulation for discord.js and eris devs.

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
2
Weekly downloads
 
Created
Source

imange

A powerfull module that allow you to generate awesome images. This is an extension to discord-image-generation with a bunch more functions. :P

You can download it from npmjs.

Configuration

First install it using either

npm i imange --save

or

yarn add imange

Now create a script in your discord.js project with the name of the image effect you want to have for eg: bobross.js

Now make your usual command handler stuff and then import imange and discord's Message Attachment as so:

const imange = require("imange")
const { MessageAttachment } = require("discord.js")

Then add the effect itself:

const img = await new imange.[[EFFECT]]().getImage(
    message.author.displayAvatarURL(
        { 
         dynamic: false,
         format: "png" 
        }
    )
);
const attach = new MessageAttachment(img, "[[EFFECT]].png");
return message.channel.send(attach);

Replace the [[EFFECT]] with the name of one of the effects stated below Eg:

const img = await new imange.Ad().getImage(
    message.author.displayAvatarURL(
        { 
         dynamic: false,
         format: "png" 
        }
    )
);
const attach = new Discord.MessageAttachment(img, "ad.png");
return message.channel.send(attach);

Result: Image Eg

Some effects require more than one input for these you will have to give it more of them as such:

const img = await new imange.DoubleStonk().getImage(
    message.author.displayAvatarURL(
        {
         dynamic: false,
         format: "png" 
        },
    message.mentions.users.first().displayAvatarURL(
        {
         dynamic: false,
         format: "png" 
        }
)
const attach = new Discord.MessageAttachment(img, "ad.png");
return message.channel.send(attach);

Note how the DoubleStonk().getImage has been provided with two user avatars!

Result: Image Eg

All of the effects

Effect List

TypeNo. images requiredEffect Name
PNG1Ad
PNG1Affect
PNG1Approved
PNG1Beautiful
PNG1Biden
PNG1Trump
PNG1Bobross
PNG1Captcha
PNG1ConfusedStonk
PNG2DoubleStonk
PNG1NotStonk
PNG1Stonk
PNG1Facepalm
PNG1Hitler
PNG1Jail
PNG1Karaba
PNG2Kiss
PNG1ConfusedStonk
PNG1Mms
PNG1Money
PNG3Podium
PNG1Poutine
PNG1Rip
PNG2Spank
PNG1Tattoo
PNG1Thomas
PNG1Trash
PNG1Wanted
PNG1Crush
PNG1Delete
PNG1DiscordBlack
PNG1DiscordBlue
PNG2Bat Slap
PNG2Bed
PNG3Distracted
TEXT0LisaPresentation
GIF1Trigger
GIF2Blink
FILTERS1Blur
FILTERS1Gay
FILTERS1Greyscale
FILTERS1Invert
FILTERS1Lesbian
FILTERS1Nonbinary
FILTERS1Sepia

Keywords

FAQs

Package last updated on 10 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc