Skip to content

Commit

Permalink
match image/heic for conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
f0x52 committed Oct 20, 2024
1 parent 4f19a7d commit 9d6dc83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/plugins/uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class SharpDiskStorage implements multer.StorageEngine {
const outStream = fs.createWriteStream(finalPath);
outStream.on("error", callback);

if (file.mimetype === "image/heif") {
if (file.mimetype === "image/heif" || file.mimetype === "image/heic") {
const converterStream = sharp()
.rotate()
.toFormat("jpeg");
Expand Down

0 comments on commit 9d6dc83

Please sign in to comment.