Fixed issue with ImageMagick not properly outputting JPGs
This commit is contained in:
parent
ac47394ca2
commit
230502c274
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ const typeCheck = async (image, gifv = false) => {
|
||||||
await writeFile(path, imageBuffer);
|
await writeFile(path, imageBuffer);
|
||||||
return {
|
return {
|
||||||
data: imageBuffer,
|
data: imageBuffer,
|
||||||
type: imageType.ext === "mp4" ? "gif" : imageType.ext,
|
type: imageType.ext !== "mp4" ? (imageType.ext === "jpg" ? "jpeg" : imageType.ext) : "gif",
|
||||||
path: path
|
path: path
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
@ -75,4 +75,4 @@ module.exports = async (cmdMessage) => {
|
||||||
// if there's no urls then check the embeds
|
// if there's no urls then check the embeds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue