You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement sharp on my backend system, when i want to create thumbnail for images [jpeg, jpg,png]
I will be attaching the code section below, i have used mime-type to verify my file, mime lookup gives value of image/jpeg
and the file exist for sure. but still its giving me image input not supported, what is the possible issue?
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this question
this is the error i am getting, what are the possible reasons?
and how to debug?
Error in generating thumbnail Error: Input file contains unsupported image format
at Sharp.toFile (/Users/saurabh/Desktop/daakia-backend-nodejs/node_modules/sharp/lib/output.js:90:19)
at uploadChatAttachmentFileToAzure (/Users/saurabh/Desktop/daakia-backend-nodejs/middlewares/uploadToAzure.js:153:60)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Middleware_Common_Object.<anonymous> (/Users/saurabh/Desktop/daakia-backend-nodejs/middlewares/uploadToAzure.js:233:30)
Please ensure there are no networking-related errors or race conditions in your code. If you're still having problems, please provide a sample image that allows someone else to consistently reproduce.
What are you trying to achieve?
I am trying to implement sharp on my backend system, when i want to create thumbnail for images [jpeg, jpg,png]
I will be attaching the code section below, i have used mime-type to verify my file, mime lookup gives value of image/jpeg
and the file exist for sure. but still its giving me image input not supported, what is the possible issue?
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this question
The text was updated successfully, but these errors were encountered: