Fixed deepfry

This commit is contained in:
Essem 2021-08-08 22:46:10 -05:00
parent cb3afa0050
commit cbc2918228
No known key found for this signature in database
GPG Key ID: 7D497397CC3A2A8C
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@ const ImageCommand = require("../../classes/imageCommand.js");
class DeepfryCommand extends ImageCommand {
static description = "Deep-fries an image";
static aliases = ["fry", "jpeg2", "nuke"];
static aliases = ["fry", "jpeg2", "nuke", "df"];
static noImage = "You need to provide an image to fry!";
static command = "deepfry";

View File

@ -27,7 +27,8 @@ Napi::Value Deepfry(const Napi::CallbackInfo &info) {
for (Image &image : coalesced) {
Blob temp;
image.level(QuantumRange / 2, QuantumRange / 2);
image.colorSpace(Magick::sRGBColorspace);
image.level(QuantumRange * 0.25, QuantumRange * 0.60);
image.quality(1);
image.magick("JPEG");
image.write(&temp);