Can't add icon and banner

not sure if the error is on my end, but when I try to add an icon or a banner, this error shows up

SyntaxError: Unexpected token '<', " <he"... is not valid JSON

How do I fix this?

2 points · 8 comments · view on lemmy.world

8 Comments

sunaurus@lemm.ee · 1 pts · 3y (5 replies)

Hey! At the moment, image uploads are limited to 100kb. How big are your images?

JohnnyEnzyme@lemm.ee · 1 pts · 3y (4 replies)

I'm having a similar issue here with avatar upload, but in my case I get "Unexpected token 'R' Request er is not valid JSON."

I did resize the image downwards multiple times, in JPG format. Last one I tried was 100x100 in size, 15k, and still got the same message.

I'd also like to know what the visual limits are for avatars, and visual / size limits for banners. Thanks!

EDIT: If it helps, I found this dev / admin response.

sunaurus@lemm.ee · 2 pts · 3y (3 replies)

Hey, can you share the image that you're trying to upload? You could e-mail it to me at

I’d also like to know what the visual limits are for avatars, and visual / size limits for banners. Thanks!

Generally, images that are too big in dimensions should get resized automatically.

JohnnyEnzyme@lemm.ee · 1 pts · 3y (2 replies)

SENT!

Thank you so much, @sunaurus@lemm.ee, for looking in to this business.

sunaurus@lemm.ee · 2 pts · 3y (1 reply)

Interesting, I am able to upload this image:

Perhaps it was some kind of temporary network issue? Could you try uploading it one more time?

JohnnyEnzyme@lemm.ee · 1 pts · 3y

Oh wow, now THAT one worked. oO

So maybe-- go WebP, not JPG??

Let me test this a bunch more tomorrow and give you my findings, @sunaurus@lemm.ee.

Thank you so much for being a boss admin!