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);
|
||||
return {
|
||||
data: imageBuffer,
|
||||
type: imageType.ext === "mp4" ? "gif" : imageType.ext,
|
||||
type: imageType.ext !== "mp4" ? (imageType.ext === "jpg" ? "jpeg" : imageType.ext) : "gif",
|
||||
path: path
|
||||
};
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue