#Wagtail Images ZeroDivisionError

17 messages ยท Page 1 of 1 (latest)

sudden chasm
#

Hi. Hope you are well. When I try to upload an .jpg image to my Django Wagtail dashboard, I can see in the media folder the image gets uploaded, but when I then try to access the images tab I get the error in this paste:
https://dpaste.com/8WXHFX55Y
If you know, why this is happening, please do help me. I have spent quite a while trying to figure it out

jagged axle
#

is it any jpg image, or one spesific one? The traceback makes me think the image itself in invalid in some way

sudden chasm
#

Also thank you for taking the time to help me ๐Ÿ™

jagged axle
sudden chasm
jagged axle
#

looks to work as an image here.

#

if you look in the media folder on the server and do sha1sum <theimagefile> what is the result ?

#

should be 4bb96713680551d3b06ae68b4dd948dd4a8ec027

sudden chasm
#

I get this:
4bb96713680551d3b06ae68b4dd948dd4a8ec027 20241112_084126.jpeg

I have tried creating a new Wagtail project and testing it. I still got the same error

sudden chasm
jagged axle
#

no, i mean it just works as an image ๐Ÿค”

#

I doubdt that there is something wrong with wagtail, i think that image is just corrupt in some way. Just opening in an image editor and saving as a new image might make it work ๐Ÿค”

sudden chasm
jagged axle
#

exactly

sudden chasm
#

My issue is just that this is a website for a client who previously was using Wordpress.
The image worked just fine using Wordpress. So how certain are you that the issue is the image is corrupt.
If he tries to upload other images and experiences the same problem, it is going to be very awkward

jagged axle
#

I am going to say i am 80% sure?