Retroactively apply new Add Image code to existing images?
-
Here is an example of the html code produced by ‘Add an Image’ before and after the recent changes. Both include a thumbnail image linked to the original, larger image.
BEFORE:
<a title="file_name.jpg" href="http://www.example.com/files/2008/04/file_name.jpg"><img src="http://www.example.com/files/2008/04/file_name.thumbnail.jpg" alt="file_name.jpg" /></a>AFTER:
<a href="http://www.example.com/files/2008/04/file_name.jpg"><img class="alignnone size-thumbnail wp-image-128" height="96" alt="file_name.jpg" src="http://www.example.com/files/2008/04/file_name.jpg?w=128" width="128" /></a>In the BEFORE example the Add an Image function automatically created a thumbnail image which used the original file’s name with ‘.thumbnail’ added just before the file’s extension (.jpg). These thumbnail files are, correctly IMO, excluded from the Media Library.
The AFTER (current) Add an Image function does not appear to create any thumbnail image but produces code which is likely interpretted during a page load i.e. thumbnail images are possibly created ‘on the fly’.
I prefer the new Add an Image function’s code, but image containing posts that I made prior to this change still use the old markup.
Can WordPress.com run a script to convert the old image code in prior posts to new code?
This may even help to free up disk space if the .thumbnail.jpg files are then deleted.
I like code consistency across my posts so that’s why I’m asking.
- The topic ‘Retroactively apply new Add Image code to existing images?’ is closed to new replies.