Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ImagePreviewDriver types whitelist #609

Open
MicrowaveDev opened this issue Jan 23, 2023 · 0 comments
Open

Make ImagePreviewDriver types whitelist #609

MicrowaveDev opened this issue Jan 23, 2023 · 0 comments

Comments

@MicrowaveDev
Copy link
Member

ImagePreviewDriver.processByStream
geesome | There was an uncaught error Error: Expected one of: heic, heif, avif, jpeg, jpg, png, raw, tiff, tif, webp, gif, jp2, jpx, j2k, j2c for format but received jpe of type string
geesome | at Object.invalidParameterError (/geesome-node/node_modules/sharp/lib/is.js:124:10)
geesome | at Sharp.toFormat (/geesome-node/node_modules/sharp/lib/output.js:255:14)
geesome | at ImagePreviewDriver. (/geesome-node/app/modules/drivers/preview/image.ts:37:10)
geesome | at step (/geesome-node/app/modules/drivers/preview/image.ts:53:23)
geesome | at Object.next (/geesome-node/app/modules/drivers/preview/image.ts:34:53)
geesome | at /geesome-node/app/modules/drivers/preview/image.ts:28:71
geesome | at new Promise ()
geesome | at __awaiter (/geesome-node/app/modules/drivers/preview/image.ts:24:12)
geesome | at ImagePreviewDriver.processByStream (/geesome-node/app/modules/drivers/preview/image.ts:73:16)
geesome | at ImagePreviewDriver. (/geesome-node/app/modules/drivers/abstractDriver.ts:42:36)
geesome | /geesome-node/node_modules/node-mediainfo/lib/MediaInfoWasm.js:19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant