Skip to content

Commit

Permalink
🐛 Fix(custom): fix file convert bug of HEIC file
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuingsmile committed Nov 11, 2024
1 parent bc67b90 commit 9362aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Lifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export class Lifecycle extends EventEmitter {
}
if (isNeedCompress(compressOptions, extention)) {
ctx.log.info(compressMsg)
if (!itemIsUrl && (extention === '.heic' || extention === '.heif')) {
if (!itemIsUrl && (extention.toLowerCase() === '.heic' || extention.toLowerCase() === '.heif')) {
const heicResult = await heicConvert({
buffer: fileBuffer,
format: 'JPEG',
Expand Down

0 comments on commit 9362aad

Please sign in to comment.