This question is actually not about coding but choosing the right method for a task. I don't know if it is against the rules of SO but here you go..
I once built a small CMS for a local newspaper which gave them the functionality of adding their posts along with a photo. Regarding the photo, they used to upload one single photo and I saved various versions of that photo to serve according to different templates they might choose (templates and not screen sizes!)
Now, I'm asked to renew this old system and I am faced with the dilemma of responsiveness / adaptiveness.
As far as my findings online, the next big thing is the <picture>
element. I have found many resources and just when I decided to go for it, I came accross this website. If you look at the source of any image, you will realize it has a querystring such as width=940&height=320&mode=crop&scale=both&meta=panoramic
When I resize the window it becomes something like width=300&height=200&mode=crop&scale=both&meta=square&anchor=topcenter
I believe this website is using Image Resizer and that depending on the screen size, one single photo is being processed on the fly by the server to output the new image.
What I don't understand is, which of these methods is actually better since the
picture
element still needs multiple images uploaded to the server whereas imageresizer needs only one and it crops-resizes the one suitable for the screen size. But on the other hand, with the picture
element the server does not get bombarded with requests to resize images but serves existing photos saving from processing and time?