I'm redesigning all my web pages so they'll display in mobile devices (responsive design). Accordingly, I need to strip the width and height attributes out of all my image scripts.
But rather than simply delete the width and height attributes, I'd like to append them AFTER the image script, as in the second example below. It would be much easier working with images if I knew their default size.
<img class="Animals" src="/images/Animals/Horse.jpg" width="300" height="212" alt="Horse">
<img class="Animals" src="/images/Animals/Horse.jpg" alt="Horse"><!--300X212-->
I'm working with PHP and can use either Dreamweaver or TextWrangler for search-and-replace operations.