I want to add a custom function to scan my website and automatically insert image size attributes that are missing on my pages.
For example, if there is an image on one of my pages that looks like the following:
<img src="https://link.to/sum/img.jpg" alt="Image Title">
If img.jpg
actual size is 150x50 px, the function would pick up on that and insert the proper width
and height
tags:
<img width="150" height="50" src="https://link.to/sum/img.jpg" alt="Image Title">