Open mgrzeca opened 5 months ago
Error occurs because this image is a PNG image but the extension is *.jpeg. When you rename file as .png or convert it to real .jpeg then everything is working.
The library for creating image in the memory cannot recognise that image as jpeg and returns exception. Maybe I can try first with user extension of the file and if library fails then I can rename it (from jpeg to png or from png to jpeg) and try again. But I'm not sure about this yet.
OK, my bad...
Why won't you let the underlying image library detect the image type on its own?
I will try to figure out something here. I'm not sure that I want to support all of these types: bmp, gif, jpg, png, tiff, tga, wbmp, webp. On the other hand, it is better to support more than less 🤔.
The above error occurs when attempting to upload certain images as an avatar or profile header. I'm attaching a sample avatar that triggers this error.