Forum Moderators: coopster
using exif_thumbnail() to resize
<?php
$width='400';
$height='200';
$type="jpg";
$image = exif_thumbnail('1.jpg', $width, $height, $type);
header("Content-Type: image/jpeg");
echo $image;
?>
To get a specific size, you can either style it using CSS to a specific size (result may be pixelated in some browsers, notably IE):
echo '<img src="'.$image_path.'" style="width: '.$new_width.'px; height: '.$new_height.'px;" />
Or, you need to actually generate the image smaller using the image functions [us.php.net], particularly imagecopyresampled [php.net].