WYSIWYG Image Size Processor
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
This module will process all the images in the 'body' fields for entities of your choice, and add the width and height attributes.
This is meant as a helper module for the AMP (Accelerated Mobile Pages) Project. In order for AMP to process images correctly, and convert the <img> tags to <amp-img>, it requires the "width" and "height" attributes on each <img> tag first.
Drupal is not currently including these attributes on images added via the body field, and manually adding them by going into the source view on the body field is tedious and time consuming, especially if you have hundreds of nodes and blocks already.
This module will automatically add the width and height attributes on entity save and update. It will also do a bulk operation when you run update.php.
