io ho avuto il tuo stesso problema qualche giorno fa ma sn riuscito a risolverlo..
esiste un modo molto che nn implica l'uso del php però su firefox e opera funziona invece cn internet explorer no..consiste nel fissare una dimensione e porre l'altra auto...ad esempio:
[img]img/immagine.jpg[/img]
per risorverlo ho dovuto creare un file php ("resize.php") scrivendo:
Codice PHP:
<?php
$maxx = $_GET["maxx"];
$maxy = $_GET["maxy"];
$source_image_URL = $_GET["src"];
$source_image = imagecreatefromjpeg($source_image_URL);
list($width, $height) = getimagesize($source_image_URL);
$percent1 = $width / $maxx;
$percent2 = $height / $maxy;
$percent = max($percent1,$percent2);
$new_eight = round($height /$percent);
$new_width = round($width /$percent);
$dest_image = imagecreatetruecolor($new_width, $new_eight);
imagecopyresampled ($dest_image, $source_image, 0, 0, 0, 0,
$new_width, $new_eight, $width, $height);
header("Content-type: image/jpeg");
imagejpeg($dest_image);
imagedestroy($dest_image);
imagedestroy($source_image);
?>
nel codice html, è sufficiente fare:
[img]resize.php?resize.php?src=img/immagine.jpg&maxx=300&maxy=500[/img]
in questo modo l'immagine ridimensionata menterrà le stesse proporzioni dell'immagine originale
funziona anche su internet explorer