There's a problem in the way "Maintain aspect ratio" works. Instead of resizing the two dimensions proportionally, it was trying to apply the absolute change to the other dimension. The result is, ironically, a distorted image :-s
To fix that, use the following JavaScript code to replace the corresponding functions in properties.js.
/**
* Maintain the width aspect ratio.
*/
function resizew(form, orig_width, orig_height) {
if (form['edit-aspect'].checked == false) return null;
form['edit[height]'].value = Math.round(orig_height*form['edit[width]'].value/orig_width);
}
/**
* Maintain the height aspect ratio.
*/
function resizeh(form, orig_width, orig_height) {
if (form['edit-aspect'].checked == false) return null;
form['edit[width]'].value = Math.round(orig_width*form['edit[height]'].value/orig_height);
}
Hope this helps.
Comments
Comment #1
matt westgate commentedCommitted to CVS. Thanks!
Comment #2
(not verified) commented