Este mod está de puta madre combinado con otros,pero tiene un fallo: redimensiona la imagen a un ancho o alto fijo, pero la proporción del lado no redimensionado se queda igual, osea que si por ejemplo quiero que las imágenes no superen los 700 px de ancho lo que ocurre es que la imagen no superará esa medida, pero el alto de la imagen queda igual, no redimensiona la imagen proporcionalmente. Para evitar este fallo es mejor hacer esto en functions.php:
1. 'Go to includes/functions.php'
Find:
if ($image_info = @getimagesize($src, $info)) {
$width_height = " ".$image_info[3];
$width = $image_info[0];
$height = $image_info[1];
Add after:
unset($resized);
if ($width > 620)
{
$new_limit = "624";
$limit_var = "width";
$resized = 1;
}
else
{
$new_limit = $image_info[0];
$limit_var = "width";
$resized = 0;
}
Find:
"&mode=".$mode : ""))."\">".$media_icon."</a>";
}
$width_height = "";
$width = "";
$height = "";
Add after:
$limit_var = "";
$new_limit = "";
Find:
$site_template->register_vars(array(
"media_src" => $media_src,
"media_icon" => $media_icon,
"image_name" => $image_name,
"width_height" => $width_height,
"width" => $width,
"height" => $height,
Add after:
"new_limit" => $new_limit,
"resized" => $resized,
"limit_var" => $limit_var,
Lo he cogido de otro post. En medi/jpg.html hay que poner esto:
<img src="{media_src}" border="0" alt="{image_name}" {limit_var}="{new_limit}" />
Siendo {limit_var}="{new_limit}" la parte que nos interesa.
Saludos
javi