Ticket #963: imagemodifier.patch
| File imagemodifier.patch, 1.6 kB (added by Surfoo, 14 months ago) |
|---|
-
lib/jelix/utils/jImageModifier.class.php
24 24 */ 25 25 static protected $transformParams = array('width', 'height', 'maxwidth', 'maxheight', 'zoom', 'alignh', 26 26 'alignv', 'ext', 'quality', 'shadow', 'scolor', 'sopacity', 'sblur', 27 'soffset', 'sangle', 'background' );27 'soffset', 'sangle', 'background', 'omo'); 28 28 29 29 /** 30 30 * params associated with html equivalent attributes … … 34 34 static protected $attributeParams = array('alt', 'class', 'id', 'style', 'longdesc', 'name', 'ismap', 'usemap', 35 35 'title', 'dir', 'lang', 'onclick', 'ondblclick', 'onmousedown', 36 36 'onmouseup', 'onmouseover', 'onmousemove', 'onmouseout', 'onkeypress', 37 'onkeydown', 'onkeyup' );37 'onkeydown', 'onkeyup', 'width', 'height'); 38 38 39 39 40 40 /** … … 104 104 foreach($params as $key => $value) { 105 105 if( in_array($key, jImageModifier::$transformParams)) { 106 106 $chaine .= $key.$value; 107 } else { 107 } 108 if( in_array($key, jImageModifier::$attributeParams)) { 108 109 // attribute params are just transmitted back 109 110 $att[$key] = $value; 110 111 }
