When it comes to certain images, I find that scaling them based on the page size is the best way to make them responsive.
<img class="img_scale" src="img.png" alt"this img doesn't have width and height
definition">
In my CSS:
.img_scale{width:100%; height:100%; margin:0 auto; height:auto !important;}
This approach works well for most images, but may not be ideal for billboard backgrounds or images in non-flexible boxes. I prefer to avoid using jQuery plug-ins for this purpose.
However, there are concerns about performance issues and repainting when scaling images. How do you handle these challenges? Are there any solutions to improve performance while scaling images?