Skip to content

Commit e8f663e

Browse files
committed
fix: input buffer has corrupt header
1 parent 13e1d44 commit e8f663e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • source/new-image-handler/src/processor/image

source/new-image-handler/src/processor/image/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class ImageProcessor implements IProcessor {
6767
act.beforeNewContext.bind(act)(ctx, params);
6868
}
6969
const { buffer, headers } = await bufferStore.get(uri);
70-
const image = sharp(buffer, { animated: ctx.features[Features.ReadAllAnimatedFrames] });
70+
const image = sharp(buffer, { failOnError: false, animated: ctx.features[Features.ReadAllAnimatedFrames] });
7171
const metadata = await image.metadata();
7272

7373
if ('gif' === metadata.format) {

0 commit comments

Comments
 (0)