Quote:
Originally Posted by sparklywater
If you make the change please let me know how I can edit my current installation for the new setting. It would particularly improve the 'lightbox' display of images.
|
If you want to make the change yourself, try the following:
edit includes/lcal_links_resize.php
find, around line 145:
Code:
$thumb_w = ($old_x >= $old_y ? (int) ($size) : (int) ($size*$old_x/$old_y));
if ($thumb_w>$old_x) {
$thumb_w = $old_x;
}
$thumb_h = (int) ($thumb_w*($old_y/$old_x));
if you want to force the pictures to be the defined height, replace these lines by:
Code:
$thumb_h = $size;
$thumb_w = (int) $size * $old_x/$old_y;
ditto, to force the width:
Code:
$thumb_w = $size;
$thumb_h = (int) $size * $old_y/$old_x;