Skip to content

Commit

Permalink
Canvas module
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabwhy committed Mar 3, 2021
1 parent 96fe7ad commit 7ff359b
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion commands/image/caption.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ let { findImage, sendImage } = require("../../modules/utils.js")
var Jimp = require('jimp');

let { exec, jimpReadURL, readBuffer } = require("@frogebot/image")({ imageMagick: process.env.USE_IMAGEMAGICK, maxGifSize: process.env.MAX_GIF_SIZE, maxImageSize: process.env.MAX_IMAGE_SIZE })
let { canvasText, canvasRect } = require("../../modules/canvas.js")
let { canvasText, canvasRect } = require("@frogebot/canvas")

let procMsg
let imageUrl
Expand Down
2 changes: 1 addition & 1 deletion commands/image/caption2.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ let { findImage, sendImage } = require("../../modules/utils.js")
var Jimp = require('jimp');

let { exec, jimpReadURL, readBuffer } = require("@frogebot/image")({ imageMagick: process.env.USE_IMAGEMAGICK, maxGifSize: process.env.MAX_GIF_SIZE, maxImageSize: process.env.MAX_IMAGE_SIZE })
let { canvasText, canvasRect } = require("../../modules/canvas.js")
let { canvasText, canvasRect } = require("@frogebot/canvas")

let procMsg
let imageUrl
Expand Down
2 changes: 1 addition & 1 deletion commands/image/impact.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require("dotenv").config()
let { findImage, sendImage } = require("../../modules/utils.js")

let { jimpReadURL, execGM, gmToBuffer } = require("@frogebot/image")({ imageMagick: process.env.USE_IMAGEMAGICK, maxGifSize: process.env.MAX_GIF_SIZE, maxImageSize: process.env.MAX_IMAGE_SIZE })
let { canvasText, canvasWindow } = require("../../modules/canvas.js");
let { canvasText, canvasWindow } = require("@frogebot/canvas");

var gm = require('gm');
if(process.env.USE_IMAGEMAGICK == "true") {
Expand Down
2 changes: 1 addition & 1 deletion commands/image/matoran.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require("dotenv").config();
let { sendImage } = require("../../modules/utils.js");

let { gmToBuffer } = require("@frogebot/image")({ imageMagick: process.env.USE_IMAGEMAGICK, maxGifSize: process.env.MAX_GIF_SIZE, maxImageSize: process.env.MAX_IMAGE_SIZE })
let { canvasText } = require("../../modules/canvas.js");
let { canvasText } = require("@frogebot/canvas");

var gm = require("gm");
if (process.env.USE_IMAGEMAGICK == "true") {
Expand Down
2 changes: 1 addition & 1 deletion commands/image/motivate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require("dotenv").config()
let { findImage, sendImage } = require("../../modules/utils.js")

let { jimpReadURL, execGM, gmToBuffer } = require("@frogebot/image")({ imageMagick: process.env.USE_IMAGEMAGICK, maxGifSize: process.env.MAX_GIF_SIZE, maxImageSize: process.env.MAX_IMAGE_SIZE })
let { canvasText, canvasWindow } = require("../../modules/canvas.js");
let { canvasText, canvasWindow } = require("@frogebot/canvas");

var gm = require('gm');
if(process.env.USE_IMAGEMAGICK == "true") {
Expand Down
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"license": "ISC",
"dependencies": {
"@discordjs/opus": "^0.4.0",
"@frogebot/canvas": "^1.0.1",
"@frogebot/image": "^1.1.6",
"@frogebot/music": "^1.0.0",
"canvas": "^2.7.0",
Expand Down

0 comments on commit 7ff359b

Please sign in to comment.