Problem:
When uploading an image from Strapi (the Media Library (UI)) it shows me the error: VipsJpeg: Premature end of input file.
I tried to change the format from jpg to png but it still shows the same error. On the other hand, I was testing with other images (jpg/png format). and it uploads correctly.
I would like to know the reason for the error, and if there is any solution. I will appreciate your answer
Uploading image to strapi: Media Library
Image Info
- JPEG image - 19 KB
- Dimensions: 750 × 938
Error:
Error: VipsJpeg: Premature end of input file
config/plugins.js
Default configuration, provided by strapi
module.exports = ({ env }) => ({
upload: {
config: {
breakpoints: {
xlarge: 1920,
large: 1000,
medium: 750,
small: 500,
xsmall: 64,
},
},
},
});
