File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11{
2- "owner" : " 6285xxxxxxxx " ,
2+ "owner" : " 6285221100126 " ,
33 "owner_name" : " Wildan Izzudin" ,
44 "database" : " data" ,
55 "limit" : 15 ,
Original file line number Diff line number Diff line change 3131 "baileys" : " ^7.0.0-rc.3" ,
3232 "cfonts" : " 3.1.1" ,
3333 "html-entities" : " ^2.5.2" ,
34+ "jimp" : " ^0.22.12" ,
3435 "node-cron" : " ^3.0.0" ,
3536 "node-gtts" : " ^2.0.2" ,
3637 "translate-google-api" : " 1.0.4"
Original file line number Diff line number Diff line change 1- import Jimp from 'jimp'
21
32export const run = {
43 usage : [ 'setcover' ] ,
@@ -35,6 +34,7 @@ export const run = {
3534 */
3635const cropToLandscapeBuffer = async ( inputBuffer , aspectRatio = 16 / 9 , quality = 50 ) => {
3736 try {
37+ const Jimp = ( await import ( 'jimp' ) ) . default
3838 const image = await Jimp . read ( inputBuffer )
3939 const { width, height } = image . bitmap
4040 const currentAspectRatio = width / height
Original file line number Diff line number Diff line change 11import baileys from '../../lib/engine.js'
22const { S_WHATSAPP_NET } = baileys
3- import Jimp from 'jimp'
43
54export const run = {
65 usage : [ 'setpp' ] ,
@@ -44,6 +43,7 @@ export const run = {
4443}
4544
4645async function generate ( media ) {
46+ const Jimp = ( await import ( 'jimp' ) ) . default
4747 const jimp = await Jimp . read ( media )
4848 const min = jimp . getWidth ( )
4949 const max = jimp . getHeight ( )
You can’t perform that action at this time.
0 commit comments