Image Resizing - Desktop vs Mobile Differences

I’ve been taking a closer look at how Discourse deals with image uploads. I think I have a reasonable grasp of the relvevant settings now. While experimenting with a 3MB image with a resolution of 4032x3024 I noticed that uploading via a computer resulted in an image downsized to 1920x1440 but when I uploaded the same photo from the Photos app on an iPhone it was stored the image at 4032x3024.

Why is there a difference between the desktop and mobile uploads?

1 Like

i think this is discussed here

2 Likes

When Discourse detects a large enough image it triggers Client side image optimization enabled by default to optimize the image on the user device before uploading it.

This works on every device, be it mobile or desktop, except for Apple mobile devices were a series of bugs in the only browser engine allowed made we disable this feature there.

3 Likes

Thanks for the speedy explanations. I’d made some progress towards understanding what is going on with the client-side optimisation but the blog post has brought it together. Every day is a school day.

2 Likes