News for hackers. Stuff that matters.
Re:How to think about HTML responsive images by frankzander on Tuesday April 09, 2024 @02:49AM (#39976754)
To be honest ... this is IMHO by far one of the most complicated thing in the whole webdev area. I don't get it why ppl complain about how difficult CSS is ... but to foresee how an image behaves and find a good balance between size and file size is a hart thing to juggle with.

This article clarifies a lot of things for me so thx for that.

Re:How to think about HTML responsive images by omnimus on Tuesday April 09, 2024 @03:14AM (#39976890)
I dont think topic thst can be explained in one blogpost is the most complicated thing in webdev.

People often just dont understand srcset/sizes and try to do too much and make some kind of media queries logic instead of leaving all to browser.

Re:How to think about HTML responsive images by azangru on Tuesday April 09, 2024 @03:19AM (#39976919)
> I don't get it why ppl complain about how difficult CSS is ...

It's a huge language. There are so... many... properties.

Re:How to think about HTML responsive images by lobsterthief on Tuesday April 09, 2024 @08:42AM (#39978796)
Also, teaching non-engineers about the different file types to use (like not using PNGs for raster content) is another realm of complexity.

Optimizing images programmatically is easy. Converting them between PNG and JPG programmatically, along with determining when such a conversion should happen, is very difficult.