As far as I can tell, when I replace an image with another image using your plugin, the plugin does not change the IMG width and height values in the HTML code – is that correct?
So for example, if I have an image that is 300×60, and I insert this into a page, the page will use this HTML:
<img width="300" height="60" src="http://www.example.com/image.jpg">
And if I use your plugin to replace this image with another one that is bigger, and I select the option “Replace the file, use new file name and update all links”, the plugin will replace the file and update the links for sure, but I think it won’t update the width= and height= values – right? At least I found this to be the case just now when I tried it.
Is there any chance that you can make your plugin also update the width/height values in the HTML at the same time that it updates the file links, on each page? Surely if the plugin can update the file links, it can update the width/height too?
BTW I’m not talking about thumbnails, but about the full-sized version of the image. (Maybe this could be an option – the user who replaces the image, can have a check-box there (disabled by default) which would tell the plugin to also update the width/height values in the HTML. Then the user can decide if this is necessary or not, or whether it might break something else).
What do you think?
- The topic ‘Updating width/height in the HTML’ is closed to new replies.