AutoFixImageSize 1.0.2-pl

AutoFixImageSize 1.0.2-pl

Released Jan 21, 2013 by gerritvanaaken

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

Download 12kb (5370 downloads)
Downloads: 14,061
License: GPLv2
Requires Revolution 2.0.x or greater
Supports mysql,sqlsrv

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

Installation Instructions

Install via package management and be happy!

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 base_path instead of $_SERVER["DOCUMENT_ROOT"] => 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

Version Released Author Downloads
9 Versions 1 Contributors 14,079 Downloads
1.0.1-pl Jan, 30 2012 gerritvanaaken 3,245
1.0.0-pl Jun, 20 2011 gerritvanaaken 2,866
1.0.0-rc3 Jun, 13 2011 gerritvanaaken 379
1.0.0-rc2 Jun, 02 2011 gerritvanaaken 412
1.0.0-rc1 May, 30 2011 gerritvanaaken 331
1.0.0-beta3 May, 20 2011 gerritvanaaken 383
1.0.0-beta1 May, 04 2011 gerritvanaaken 503
1.0.0-alpha1 Apr, 08 2011 gerritvanaaken 594