Image Resizing Differences between Desktop and Mobile Uploads
A discussion on the varying image resizing behaviors between desktop and mobile uploads on Discourse has been initiated by Octoberon. They observed that uploading a 3MB image (4032x3024) via a computer resulted in downsizing to 1920x1440, while uploading the same image from an iPhone’s Photos app stored it at its original resolution.
Octoberon questioned this difference, prompting Lilly to share a relevant meta discussion on the topic. Falco explained that Discourse’s client-side image optimization, enabled by default, optimizes large images on the user’s device before uploading. However, this feature is disabled on Apple mobile devices due to browser engine bugs.
Falco’s explanation helped clarify the process for Octoberon, who expressed appreciation for the speedy response and the opportunity to learn more about client-side optimization.
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?
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.
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.