One of the commits from a few days ago was a mistake
This commit is contained in:
		
							parent
							
								
									777b86e480
								
							
						
					
					
						commit
						e2a32a8c89
					
				
					 36 changed files with 70 additions and 37 deletions
				
			
		| 
						 | 
					@ -1,4 +1,3 @@
 | 
				
			||||||
const fs = require("fs");
 | 
					 | 
				
			||||||
const gm = require("gm").subClass({
 | 
					const gm = require("gm").subClass({
 | 
				
			||||||
  imageMagick: true
 | 
					  imageMagick: true
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
| 
						 | 
					@ -10,8 +9,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to add a 9GAG watermark!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to add a 9GAG watermark!`;
 | 
				
			||||||
  const watermark = "./assets/images/9gag.png";
 | 
					  const watermark = "./assets/images/9gag.png";
 | 
				
			||||||
  const data = gm(image.path).coalesce().out("null:").out(watermark).gravity("East").out("-layers", "composite").out("-layers", "optimize");
 | 
					  const data = gm(image.path).coalesce().out("null:").out(watermark).gravity("East").out("-layers", "composite").out("-layers", "optimize");
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(data, image.outputType),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `9gag.${image.outputType}`
 | 
					    name: `9gag.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,8 +11,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  gm(image.path).size(async (error, size) => {
 | 
					  gm(image.path).size(async (error, size) => {
 | 
				
			||||||
    if (error) throw error;
 | 
					    if (error) throw error;
 | 
				
			||||||
    const data = gm(image.path).coalesce().out("null:").out(watermark).gravity("North").resize(null, size.height).out("-layers", "composite").out("-layers", "optimize");
 | 
					    const data = gm(image.path).coalesce().out("null:").out(watermark).gravity("North").resize(null, size.height).out("-layers", "composite").out("-layers", "optimize");
 | 
				
			||||||
 | 
					    const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
    return message.channel.createMessage("", {
 | 
					    return message.channel.createMessage("", {
 | 
				
			||||||
      file: await gmToBuffer(data, image.outputType),
 | 
					      file: buffer,
 | 
				
			||||||
      name: `bandicam.${image.outputType}`
 | 
					      name: `bandicam.${image.outputType}`
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,8 +8,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  const image = await require("../utils/imagedetect.js")(message);
 | 
					  const image = await require("../utils/imagedetect.js")(message);
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to blur!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to blur!`;
 | 
				
			||||||
  const command = gm(image.path).blur(10);
 | 
					  const command = gm(image.path).blur(10);
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(command, image.outputType);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(command, image.outputType),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `blur.${image.outputType}`
 | 
					    name: `blur.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,8 +8,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  const image = await require("../utils/imagedetect.js")(message);
 | 
					  const image = await require("../utils/imagedetect.js")(message);
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to make blurple!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to make blurple!`;
 | 
				
			||||||
  const data = gm(image.path).threshold(75, true).out("+level-colors").out("\"#7289DA\",white");
 | 
					  const data = gm(image.path).threshold(75, true).out("+level-colors").out("\"#7289DA\",white");
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(data, image.outputType),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `blurple.${image.outputType}`
 | 
					    name: `blurple.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,8 +8,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  const image = await require("../utils/imagedetect.js")(message);
 | 
					  const image = await require("../utils/imagedetect.js")(message);
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to add radial blur!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to add radial blur!`;
 | 
				
			||||||
  const data = gm(image.path).coalesce().out("-radial-blur", 10);
 | 
					  const data = gm(image.path).coalesce().out("-radial-blur", 10);
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(data, image.outputType),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `circle.${image.outputType}`
 | 
					    name: `circle.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,8 +11,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  gm(image.path).size(async (error, size) => {
 | 
					  gm(image.path).size(async (error, size) => {
 | 
				
			||||||
    if (error) throw error;
 | 
					    if (error) throw error;
 | 
				
			||||||
    const data = gm(image.path).coalesce().out("null:").out(watermark).gravity("Center").resize(null, size.height).out("-layers", "composite").out("-layers", "optimize");
 | 
					    const data = gm(image.path).coalesce().out("null:").out(watermark).gravity("Center").resize(null, size.height).out("-layers", "composite").out("-layers", "optimize");
 | 
				
			||||||
 | 
					    const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
    return message.channel.createMessage("", {
 | 
					    return message.channel.createMessage("", {
 | 
				
			||||||
      file: await gmToBuffer(data, image.outputType),
 | 
					      file: buffer,
 | 
				
			||||||
      name: `deviantart.${image.outputType}`
 | 
					      name: `deviantart.${image.outputType}`
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,8 +8,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  const image = await require("../utils/imagedetect.js")(message);
 | 
					  const image = await require("../utils/imagedetect.js")(message);
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to explode!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to explode!`;
 | 
				
			||||||
  const data = gm(image.path).coalesce().implode([-2]);
 | 
					  const data = gm(image.path).coalesce().implode([-2]);
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(data, image.outputType),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `explode.${image.outputType}`
 | 
					    name: `explode.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,8 +8,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  const image = await require("../utils/imagedetect.js")(message);
 | 
					  const image = await require("../utils/imagedetect.js")(message);
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to flip!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to flip!`;
 | 
				
			||||||
  const command = gm(image.path).flip();
 | 
					  const command = gm(image.path).flip();
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(command, image.outputType);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(command, image.outputType),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `flip.${image.outputType}`
 | 
					    name: `flip.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,8 +8,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  const image = await require("../utils/imagedetect.js")(message);
 | 
					  const image = await require("../utils/imagedetect.js")(message);
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to flop!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to flop!`;
 | 
				
			||||||
  const command = gm(image.path).flop();
 | 
					  const command = gm(image.path).flop();
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(command, image.outputType);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(command, image.outputType),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `flop.${image.outputType}`
 | 
					    name: `flop.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,8 +11,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  gm(image.path).size(async (error, size) => {
 | 
					  gm(image.path).size(async (error, size) => {
 | 
				
			||||||
    if (error) throw error;
 | 
					    if (error) throw error;
 | 
				
			||||||
    const data = gm(image.path).coalesce().out("null:").out(watermark).gravity("NorthEast").resize(null, size.height).out("-layers", "composite").out("-layers", "optimize");
 | 
					    const data = gm(image.path).coalesce().out("null:").out(watermark).gravity("NorthEast").resize(null, size.height).out("-layers", "composite").out("-layers", "optimize");
 | 
				
			||||||
 | 
					    const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
    return message.channel.createMessage("", {
 | 
					    return message.channel.createMessage("", {
 | 
				
			||||||
      file: await gmToBuffer(data, image.outputType),
 | 
					      file: buffer,
 | 
				
			||||||
      name: `funky.${image.outputType}`
 | 
					      name: `funky.${image.outputType}`
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,8 +9,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to make a GameXplain thumbnail meme!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to make a GameXplain thumbnail meme!`;
 | 
				
			||||||
  const template = "./assets/images/gamexplain.png";
 | 
					  const template = "./assets/images/gamexplain.png";
 | 
				
			||||||
  const command = gm(template).background("white").out("null:").out("(").out(image.path).coalesce().out("-virtual-pixel", "transparent").resize("1181x571!").out(")").compose("over").gravity("Center").out("-geometry", "+0+40").out("-layers", "composite").out("-layers", "optimize");
 | 
					  const command = gm(template).background("white").out("null:").out("(").out(image.path).coalesce().out("-virtual-pixel", "transparent").resize("1181x571!").out(")").compose("over").gravity("Center").out("-geometry", "+0+40").out("-layers", "composite").out("-layers", "optimize");
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(command, image.outputType);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(command, image.outputType),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `gamexplain.${image.outputType}`
 | 
					    name: `gamexplain.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,8 +18,9 @@ exports.run = async (message) => {
 | 
				
			||||||
      gm(data2).flop().write(data, async (error) => {
 | 
					      gm(data2).flop().write(data, async (error) => {
 | 
				
			||||||
        if (error) throw error;
 | 
					        if (error) throw error;
 | 
				
			||||||
        const command = gm(data2).extent(size.width, size.height).out("null:").out(data).geometry(`+${size.width / 2}+0`).out("-layers", "Composite").out("-layers", "optimize");
 | 
					        const command = gm(data2).extent(size.width, size.height).out("null:").out(data).geometry(`+${size.width / 2}+0`).out("-layers", "Composite").out("-layers", "optimize");
 | 
				
			||||||
 | 
					        const buffer = await gmToBuffer(command, image.outputType);
 | 
				
			||||||
        return message.channel.createMessage("", {
 | 
					        return message.channel.createMessage("", {
 | 
				
			||||||
          file: await gmToBuffer(command, image.outputType),
 | 
					          file: buffer,
 | 
				
			||||||
          name: `haah.${image.outputType}`
 | 
					          name: `haah.${image.outputType}`
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,8 +9,9 @@ exports.run = async (message, args) => {
 | 
				
			||||||
  const template = "./assets/images/hbc.png";
 | 
					  const template = "./assets/images/hbc.png";
 | 
				
			||||||
  const cleanedMessage = args.join(" ").toLowerCase().replace(/\n/g, " ");
 | 
					  const cleanedMessage = args.join(" ").toLowerCase().replace(/\n/g, " ");
 | 
				
			||||||
  const command = gm(template).gravity("Center").font("./assets/hbc.ttf").out("-kerning", "-5").fill("white").pointSize(96).drawText(0, 0, cleanedMessage);
 | 
					  const command = gm(template).gravity("Center").font("./assets/hbc.ttf").out("-kerning", "-5").fill("white").pointSize(96).drawText(0, 0, cleanedMessage);
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(command);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(command),
 | 
					    file: buffer,
 | 
				
			||||||
    name: "homebrew.png"
 | 
					    name: "homebrew.png"
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,8 +18,9 @@ exports.run = async (message) => {
 | 
				
			||||||
      gm(data2).flip().write(data, async (error) => {
 | 
					      gm(data2).flip().write(data, async (error) => {
 | 
				
			||||||
        if (error) throw error;
 | 
					        if (error) throw error;
 | 
				
			||||||
        const command = gm(data2).extent(size.width, size.height).out("null:").out(data).geometry(`+0+${size.height / 2}`).out("-layers", "Composite").out("-layers", "Optimize");
 | 
					        const command = gm(data2).extent(size.width, size.height).out("null:").out(data).geometry(`+0+${size.height / 2}`).out("-layers", "Composite").out("-layers", "Optimize");
 | 
				
			||||||
 | 
					        const buffer = await gmToBuffer(command, image.outputType);
 | 
				
			||||||
        return message.channel.createMessage("", {
 | 
					        return message.channel.createMessage("", {
 | 
				
			||||||
          file: await gmToBuffer(command, image.outputType),
 | 
					          file: buffer,
 | 
				
			||||||
          name: `hooh.${image.outputType}`
 | 
					          name: `hooh.${image.outputType}`
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,8 +11,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  gm(image.path).size(async (error, size) => {
 | 
					  gm(image.path).size(async (error, size) => {
 | 
				
			||||||
    if (error) throw error;
 | 
					    if (error) throw error;
 | 
				
			||||||
    const data = gm(image.path).coalesce().out("null:").out(watermark).gravity("NorthWest").resize(null, size.height).out("-layers", "composite").out("-layers", "optimize");
 | 
					    const data = gm(image.path).coalesce().out("null:").out(watermark).gravity("NorthWest").resize(null, size.height).out("-layers", "composite").out("-layers", "optimize");
 | 
				
			||||||
 | 
					    const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
    return message.channel.createMessage("", {
 | 
					    return message.channel.createMessage("", {
 | 
				
			||||||
      file: await gmToBuffer(data, image.outputType),
 | 
					      file: buffer,
 | 
				
			||||||
      name: `hypercam.${image.outputType}`
 | 
					      name: `hypercam.${image.outputType}`
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,8 +11,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  gm(image.path).size(async (error, size) => {
 | 
					  gm(image.path).size(async (error, size) => {
 | 
				
			||||||
    if (error) throw error;
 | 
					    if (error) throw error;
 | 
				
			||||||
    const data = gm(image.path).coalesce().out("null:").out(watermark).gravity("South").resize(size.width, null).out("-layers", "composite").out("-layers", "optimize");
 | 
					    const data = gm(image.path).coalesce().out("null:").out(watermark).gravity("South").resize(size.width, null).out("-layers", "composite").out("-layers", "optimize");
 | 
				
			||||||
 | 
					    const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
    return message.channel.createMessage("", {
 | 
					    return message.channel.createMessage("", {
 | 
				
			||||||
      file: await gmToBuffer(data, image.outputType),
 | 
					      file: buffer,
 | 
				
			||||||
      name: `ifunny.${image.outputType}`
 | 
					      name: `ifunny.${image.outputType}`
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,8 +8,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  const image = await require("../utils/imagedetect.js")(message);
 | 
					  const image = await require("../utils/imagedetect.js")(message);
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to implode!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to implode!`;
 | 
				
			||||||
  const data = gm(image.path).implode([1]);
 | 
					  const data = gm(image.path).implode([1]);
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(data, image.outputType),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `implode.${image.outputType}`
 | 
					    name: `implode.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,8 +8,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  const image = await require("../utils/imagedetect.js")(message);
 | 
					  const image = await require("../utils/imagedetect.js")(message);
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to invert!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to invert!`;
 | 
				
			||||||
  const data = gm(image.path).negative();
 | 
					  const data = gm(image.path).negative();
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(data, image.outputType),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `invert.${image.outputType}`
 | 
					    name: `invert.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,8 +8,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  const image = await require("../utils/imagedetect.js")(message);
 | 
					  const image = await require("../utils/imagedetect.js")(message);
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to add more JPEG!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to add more JPEG!`;
 | 
				
			||||||
  const data = gm(image.path).setFormat("jpg").quality(1);
 | 
					  const data = gm(image.path).setFormat("jpg").quality(1);
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(data);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(data),
 | 
					    file: buffer,
 | 
				
			||||||
    name: "jpeg.jpg"
 | 
					    name: "jpeg.jpg"
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,8 +11,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  const template = "./assets/images/leak.png";
 | 
					  const template = "./assets/images/leak.png";
 | 
				
			||||||
  const command = gm(template).out("-background").out("white").out("-gravity").out("Center").out("(").out("-clone").out("0").out("(").out(image.path).out("-virtual-pixel").out("white").out("-resize").out("640x360!").rotate("white", 15).out(")").out("-geometry").out("+450-200").out("-composite").out(")").out("+swap").out("-composite").out("-alpha").out("remove").out("-alpha").out("off");
 | 
					  const command = gm(template).out("-background").out("white").out("-gravity").out("Center").out("(").out("-clone").out("0").out("(").out(image.path).out("-virtual-pixel").out("white").out("-resize").out("640x360!").rotate("white", 15).out(")").out("-geometry").out("+450-200").out("-composite").out(")").out("+swap").out("-composite").out("-alpha").out("remove").out("-alpha").out("off");
 | 
				
			||||||
  // const command = gm(template).out("-background", "white").gravity("Center").out("null:").out("(").out(path).out("-resize", "640x360!").out("-virtual-pixel", "white").rotate("white", 15).coalesce().geometry("+450-200").out(")").compose("over").out("-alpha", "remove").out("-alpha", "off").out("-layers", "composite");
 | 
					  // const command = gm(template).out("-background", "white").gravity("Center").out("null:").out("(").out(path).out("-resize", "640x360!").out("-virtual-pixel", "white").rotate("white", 15).coalesce().geometry("+450-200").out(")").compose("over").out("-alpha", "remove").out("-alpha", "off").out("-layers", "composite");
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(command);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(command),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `leak.${image.outputType}`
 | 
					    name: `leak.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -21,8 +21,9 @@ exports.run = async (message, args) => {
 | 
				
			||||||
        gm().out("-size", size.width).background("none").gravity("Center").out("(", "(").font("Impact").out("-pointsize", 40).out(`pango:<span foreground='white'>${bottomText ? bottomText.toUpperCase().replace(/&/g, "\\&").replace(/>/g, "\\>").replace(/</g, "\\<").replace(/"/g, "\\"").replace(/'/g, "\\'") : " "}</span>`).out(")", "(", "+clone").out("-channel", "A").out("-morphology", "EdgeOut", "Octagon", "+channel", "+level-colors", "black", ")").compose("DstOver").out(")", "-composite").write(file3, async (error) => {
 | 
					        gm().out("-size", size.width).background("none").gravity("Center").out("(", "(").font("Impact").out("-pointsize", 40).out(`pango:<span foreground='white'>${bottomText ? bottomText.toUpperCase().replace(/&/g, "\\&").replace(/>/g, "\\>").replace(/</g, "\\<").replace(/"/g, "\\"").replace(/'/g, "\\'") : " "}</span>`).out(")", "(", "+clone").out("-channel", "A").out("-morphology", "EdgeOut", "Octagon", "+channel", "+level-colors", "black", ")").compose("DstOver").out(")", "-composite").write(file3, async (error) => {
 | 
				
			||||||
          if (error) throw error;
 | 
					          if (error) throw error;
 | 
				
			||||||
          const data = gm(file).out("-coalesce").out("null:").gravity("North").out(file2).out("-layers", "composite").out("null:").gravity("South").out(file3).out("-layers", "composite").out("-layers", "optimize");
 | 
					          const data = gm(file).out("-coalesce").out("null:").gravity("North").out(file2).out("-layers", "composite").out("null:").gravity("South").out(file3).out("-layers", "composite").out("-layers", "optimize");
 | 
				
			||||||
 | 
					          const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
          return message.channel.createMessage("", {
 | 
					          return message.channel.createMessage("", {
 | 
				
			||||||
            file: await gmToBuffer(data, image.outputType),
 | 
					            file: buffer,
 | 
				
			||||||
            name: `meme.${image.outputType}`
 | 
					            name: `meme.${image.outputType}`
 | 
				
			||||||
          });
 | 
					          });
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,8 +9,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to make a Scott the Woz TV meme!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to make a Scott the Woz TV meme!`;
 | 
				
			||||||
  const template = "./assets/images/scott.png";
 | 
					  const template = "./assets/images/scott.png";
 | 
				
			||||||
  const command = gm(template).out("null:").out("(").out(image.path).coalesce().out("-virtual-pixel", "transparent").resize("415x234!").out("+distort", "Perspective", "0,0 129,187 415,0 517,182 415,234 517,465 0,234 132,418").out(")").compose("over").gravity("Center").geometry("-238-98").out("-layers", "composite").out("-layers", "optimize");
 | 
					  const command = gm(template).out("null:").out("(").out(image.path).coalesce().out("-virtual-pixel", "transparent").resize("415x234!").out("+distort", "Perspective", "0,0 129,187 415,0 517,182 415,234 517,465 0,234 132,418").out(")").compose("over").gravity("Center").geometry("-238-98").out("-layers", "composite").out("-layers", "optimize");
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(command, image.outputType);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(command, image.outputType),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `scott.${image.outputType}`
 | 
					    name: `scott.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,8 +8,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  const image = await require("../utils/imagedetect.js")(message);
 | 
					  const image = await require("../utils/imagedetect.js")(message);
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to sharpen!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to sharpen!`;
 | 
				
			||||||
  const command = gm(image.path).coalesce().sharpen(10);
 | 
					  const command = gm(image.path).coalesce().sharpen(10);
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(command, image.outputType);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(command, image.outputType),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `sharpen.${image.outputType}`
 | 
					    name: `sharpen.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,8 +11,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  gm(image.path).size(async (error, size) => {
 | 
					  gm(image.path).size(async (error, size) => {
 | 
				
			||||||
    if (error) throw error;
 | 
					    if (error) throw error;
 | 
				
			||||||
    const command = gm(image.path).coalesce().out("null:").out(watermark).gravity("Center").resize(null, size.height).out("-layers", "composite").out("-layers", "optimize");
 | 
					    const command = gm(image.path).coalesce().out("null:").out(watermark).gravity("Center").resize(null, size.height).out("-layers", "composite").out("-layers", "optimize");
 | 
				
			||||||
 | 
					    const buffer = await gmToBuffer(command, image.outputType);
 | 
				
			||||||
    return message.channel.createMessage("", {
 | 
					    return message.channel.createMessage("", {
 | 
				
			||||||
      file: await gmToBuffer(command, image.outputType),
 | 
					      file: buffer,
 | 
				
			||||||
      name: `shutterstock.${image.outputType}`
 | 
					      name: `shutterstock.${image.outputType}`
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,8 +13,9 @@ exports.run = async (message, args) => {
 | 
				
			||||||
  gm(474, 332).out("+size").background("none").gravity("Center").out("-pointsize", 72).out("-font", "Bitstream Vera Sans").out(`pango:<span foreground="white">${wrap(cleanedMessage, {width: 15, indent: ""})}</span>`).write(file, async (error) => {
 | 
					  gm(474, 332).out("+size").background("none").gravity("Center").out("-pointsize", 72).out("-font", "Bitstream Vera Sans").out(`pango:<span foreground="white">${wrap(cleanedMessage, {width: 15, indent: ""})}</span>`).write(file, async (error) => {
 | 
				
			||||||
    if (error) throw error;
 | 
					    if (error) throw error;
 | 
				
			||||||
    const command = gm(template).composite(file).gravity("Center").geometry("474x332+160+10");
 | 
					    const command = gm(template).composite(file).gravity("Center").geometry("474x332+160+10");
 | 
				
			||||||
 | 
					    const buffer = await gmToBuffer(command, "png");
 | 
				
			||||||
    return message.channel.createMessage("", {
 | 
					    return message.channel.createMessage("", {
 | 
				
			||||||
      file: await gmToBuffer(command, "png"),
 | 
					      file: buffer,
 | 
				
			||||||
      name: "sonic.png"
 | 
					      name: "sonic.png"
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,8 +22,9 @@ exports.run = async (message) => {
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      const numbers = (await util.promisify(exec)(`seq 0 2 ${value.Scene.length}`)).stdout.split("\n").join(",");
 | 
					      const numbers = (await util.promisify(exec)(`seq 0 2 ${value.Scene.length}`)).stdout.split("\n").join(",");
 | 
				
			||||||
      const data = gm().out("(").out(image.path).coalesce().out(")").out("-delete", numbers).out("-layers", "optimize");
 | 
					      const data = gm().out("(").out(image.path).coalesce().out(")").out("-delete", numbers).out("-layers", "optimize");
 | 
				
			||||||
 | 
					      const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
      return message.channel.createMessage("", {
 | 
					      return message.channel.createMessage("", {
 | 
				
			||||||
        file: await gmToBuffer(data, image.outputType),
 | 
					        file: buffer,
 | 
				
			||||||
        name: "speed.gif"
 | 
					        name: "speed.gif"
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,8 +8,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  const image = await require("../utils/imagedetect.js")(message);
 | 
					  const image = await require("../utils/imagedetect.js")(message);
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to stretch!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to stretch!`;
 | 
				
			||||||
  const data = gm(image.path).coalesce().resize("512x512!");
 | 
					  const data = gm(image.path).coalesce().resize("512x512!");
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(data, image.outputType),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `stretch.${image.outputType}`
 | 
					    name: `stretch.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,8 +8,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  const image = await require("../utils/imagedetect.js")(message);
 | 
					  const image = await require("../utils/imagedetect.js")(message);
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to swirl!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to swirl!`;
 | 
				
			||||||
  const data = gm(image.path).coalesce().swirl(180);
 | 
					  const data = gm(image.path).coalesce().swirl(180);
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(data, image.outputType),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `swirl.${image.outputType}`
 | 
					    name: `swirl.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,8 +10,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  gm(image.path).coalesce().command("montage").out("-duplicate").out(24).tile("5x5").geometry("+0+0").stream("miff", async (error, output) => {
 | 
					  gm(image.path).coalesce().command("montage").out("-duplicate").out(24).tile("5x5").geometry("+0+0").stream("miff", async (error, output) => {
 | 
				
			||||||
    if (error) throw error;
 | 
					    if (error) throw error;
 | 
				
			||||||
    const data = gm(output).coalesce().resize("800x800>");
 | 
					    const data = gm(output).coalesce().resize("800x800>");
 | 
				
			||||||
 | 
					    const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
    return message.channel.createMessage("", {
 | 
					    return message.channel.createMessage("", {
 | 
				
			||||||
      file: await gmToBuffer(data, image.outputType),
 | 
					      file: buffer,
 | 
				
			||||||
      name: `tile.${image.outputType}`
 | 
					      name: `tile.${image.outputType}`
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,8 +9,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to make a Trump meme!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to make a Trump meme!`;
 | 
				
			||||||
  const template = "./assets/images/trump.png";
 | 
					  const template = "./assets/images/trump.png";
 | 
				
			||||||
  const command = gm(template).background("white").out("null:").out("(").out(image.path).coalesce().out("-virtual-pixel", "transparent").resize("365x179!").out("+distort", "Perspective", "0,0 207,268 365,0 548,271 365,179 558,450 0,179 193,450").out(")").compose("over").gravity("Center").geometry("-217-135").out("-layers", "composite").out("-layers", "optimize");
 | 
					  const command = gm(template).background("white").out("null:").out("(").out(image.path).coalesce().out("-virtual-pixel", "transparent").resize("365x179!").out("+distort", "Perspective", "0,0 207,268 365,0 548,271 365,179 558,450 0,179 193,450").out(")").compose("over").gravity("Center").geometry("-217-135").out("-layers", "composite").out("-layers", "optimize");
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(command, image.outputType);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(command, image.outputType),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `trump.${image.outputType}`
 | 
					    name: `trump.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,8 +18,9 @@ exports.run = async (message) => {
 | 
				
			||||||
      gm(data2).flop().write(data, async (error) => {
 | 
					      gm(data2).flop().write(data, async (error) => {
 | 
				
			||||||
        if (error) throw error;
 | 
					        if (error) throw error;
 | 
				
			||||||
        const command = gm(data2).extent(size.width, size.height).out("null:").out(data).geometry(`+${size.width / 2}+0`).out("-layers", "Composite").out("-layers", "optimize");
 | 
					        const command = gm(data2).extent(size.width, size.height).out("null:").out(data).geometry(`+${size.width / 2}+0`).out("-layers", "Composite").out("-layers", "optimize");
 | 
				
			||||||
 | 
					        const buffer = await gmToBuffer(command, image.outputType);
 | 
				
			||||||
        return message.channel.createMessage("", {
 | 
					        return message.channel.createMessage("", {
 | 
				
			||||||
          file: await gmToBuffer(command, image.outputType),
 | 
					          file: buffer,
 | 
				
			||||||
          name: `waaw.${image.outputType}`
 | 
					          name: `waaw.${image.outputType}`
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,8 +10,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  gm(image.path).coalesce().resize(128).stream("miff", async (error, output) => {
 | 
					  gm(image.path).coalesce().resize(128).stream("miff", async (error, output) => {
 | 
				
			||||||
    if (error) throw error;
 | 
					    if (error) throw error;
 | 
				
			||||||
    const data = gm(output).coalesce().virtualPixel("tile").matteColor("none").out("-background", "none").resize("512x512!").out("-distort").out("Perspective").out("0,0,57,42 0,128,63,130 128,0,140,60 128,128,140,140");
 | 
					    const data = gm(output).coalesce().virtualPixel("tile").matteColor("none").out("-background", "none").resize("512x512!").out("-distort").out("Perspective").out("0,0,57,42 0,128,63,130 128,0,140,60 128,128,140,140");
 | 
				
			||||||
 | 
					    const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
    return message.channel.createMessage("", {
 | 
					    return message.channel.createMessage("", {
 | 
				
			||||||
      file: await gmToBuffer(data, image.outputType),
 | 
					      file: buffer,
 | 
				
			||||||
      name: `wall.${image.outputType}`
 | 
					      name: `wall.${image.outputType}`
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,8 +9,9 @@ exports.run = async (message) => {
 | 
				
			||||||
  if (image === undefined) return `${message.author.mention}, you need to provide an image to make a "who did this" meme!`;
 | 
					  if (image === undefined) return `${message.author.mention}, you need to provide an image to make a "who did this" meme!`;
 | 
				
			||||||
  const template = "./assets/images/whodidthis.png";
 | 
					  const template = "./assets/images/whodidthis.png";
 | 
				
			||||||
  const command = gm(template).coalesce().out("null:").out(image.path).gravity("Center").resize("374x374>").out("-layers", "composite").out("-layers", "optimize");
 | 
					  const command = gm(template).coalesce().out("null:").out(image.path).gravity("Center").resize("374x374>").out("-layers", "composite").out("-layers", "optimize");
 | 
				
			||||||
 | 
					  const buffer = await gmToBuffer(command, image.outputType);
 | 
				
			||||||
  return message.channel.createMessage("", {
 | 
					  return message.channel.createMessage("", {
 | 
				
			||||||
    file: await gmToBuffer(command, image.outputType),
 | 
					    file: buffer,
 | 
				
			||||||
    name: `wdt.${image.outputType}`
 | 
					    name: `wdt.${image.outputType}`
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,8 +11,9 @@ exports.run = async (message) => {
 | 
				
			||||||
    if (error) throw error;
 | 
					    if (error) throw error;
 | 
				
			||||||
    if (size.width > 10000) return `${message.author.mention}, this image is too wide!`;
 | 
					    if (size.width > 10000) return `${message.author.mention}, this image is too wide!`;
 | 
				
			||||||
    const data = gm(image.path).coalesce().resize(`${(size.width * 19) / 2}x${size.height / 2}!`);
 | 
					    const data = gm(image.path).coalesce().resize(`${(size.width * 19) / 2}x${size.height / 2}!`);
 | 
				
			||||||
 | 
					    const buffer = await gmToBuffer(data, image.outputType);
 | 
				
			||||||
    return message.channel.createMessage("", {
 | 
					    return message.channel.createMessage("", {
 | 
				
			||||||
      file: await gmToBuffer(data, image.outputType),
 | 
					      file: buffer,
 | 
				
			||||||
      name: `wide.${image.outputType}`
 | 
					      name: `wide.${image.outputType}`
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,8 +18,9 @@ exports.run = async (message) => {
 | 
				
			||||||
      gm(data2).flip().write(data, async (error) => {
 | 
					      gm(data2).flip().write(data, async (error) => {
 | 
				
			||||||
        if (error) throw error;
 | 
					        if (error) throw error;
 | 
				
			||||||
        const command = gm(data2).extent(size.width, size.height).out("null:").out(data).geometry(`+0+${size.height / 2}`).out("-layers", "Composite").out("-layers", "optimize");
 | 
					        const command = gm(data2).extent(size.width, size.height).out("null:").out(data).geometry(`+0+${size.height / 2}`).out("-layers", "Composite").out("-layers", "optimize");
 | 
				
			||||||
 | 
					        const buffer = await gmToBuffer(command, image.outputType);
 | 
				
			||||||
        return message.channel.createMessage("", {
 | 
					        return message.channel.createMessage("", {
 | 
				
			||||||
          file: await gmToBuffer(command, image.outputType),
 | 
					          file: buffer,
 | 
				
			||||||
          name: `woow.${image.outputType}`
 | 
					          name: `woow.${image.outputType}`
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -21,7 +21,6 @@ const typeCheck = async (image, gifv = false) => {
 | 
				
			||||||
      return {
 | 
					      return {
 | 
				
			||||||
        type: imageType.ext,
 | 
					        type: imageType.ext,
 | 
				
			||||||
        data: imageBuffer,
 | 
					        data: imageBuffer,
 | 
				
			||||||
        url: image,
 | 
					 | 
				
			||||||
        outputType: imageType.ext === "mp4" ? "gif" : imageType.ext,
 | 
					        outputType: imageType.ext === "mp4" ? "gif" : imageType.ext,
 | 
				
			||||||
        path: path
 | 
					        path: path
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue