AutoFixImageSize Icon

AutoFixImageSize

By Gerrit van (gerritvanaaken)

AutoFixImageSize first screenshot

Auto-detects every img element and checks if the width/height attributes match the physical size of the image file. Generates a correctly sized version of the image (via phpThumbOf) and fixes the src attributes. Works especially well with TinyMCE’s image insertion.

Use the forum for feedback: http://modxcms.com/forums/index.php?topic=63212

phpThumbOf is required! http://modx.com/extras/package/phpthumbof

Gerrit van


New in AutoFixImageSize 1.0.2

1.0.2 pl (2013-01-21)

– Bugfix: Get along with inline styles, additionally to HTML attributes

1.0.1 pl (2012-01-30)

– Bugfix: Get along with changed phpthumb paths in MODX 2.2

1.0.0 pl (2011-06-20)

– Improvement: Leaves wrong aspect ratios untouched, as this would be standard browser behavior

– Improvement: Ignores all dynamically generated images (all filenames with GET parameters)

1.0.0 rc3 (2011-06-13)

– Bugfix: Tolerates space characters in filename

1.0.0 rc2 (2011-06-02)

– Improvement: Resize also if only one parameter (width or height) is given

1.0.0 rc1 (2011-05-30)

– Bugfix: Skip external images, which cannot be processed via phpthumbof

1.0.0 beta3 (2011-05-20)

– Bugfix: Better RegEx for identifying image elements

1.0.0 beta2 (2011-05-20)

– Use basepath instead of $SERVER["DOCUMENTROOT"] => more reliable

1.0.0 beta1 (2011-05-02)

– Bugfix: Now replacing only respective img src values, not _every instance of matching file name

1.0.0 alpha1 (2011-04-08)

– Initial release

More

Information

Released
June 13, 2011
Supported Versions
2.2 – Current
Downloads
14,237
License
GPLv2