Proportional Image Scaling

0

When a user inserts an image using the visual editor, WordPress automatically sets the width and height attributes on the image tag. Unfortunately, when the images’ width is larger th

Version
Last updated
Active installations
WordPress Version
Tested up to
Rating
Total ratings
Tag
This plugin is outdated and might not be supported anymore.

Description

When a user inserts an image using the visual editor, WordPress automatically sets the
width and height attributes on the image tag. Unfortunately, when the images’ width is
larger than the CSS “max-width” value, the width is capped but the height is not
affected, leading to distorted images.
This plugin either removes all height and width tags from images of a given class
(resulting in a correct “max-width” behavior) or scales them to a given width to assist
browsers in creating the layout.

Known Limiations

  • Currently, only pixel values are supported when scaling.