If you've got php with the gd or gd2 libraries installed you can sort this out in no time, there have been loads of threads on here about it - This is my own routine for resizing to a jpeg from a png, gif or jpg as input to a limited size, just modify it to your own needs. I think there's enough info there for it to be easily modded
function resize_jpeg($fileName, $newX, $newY, $fixedAspect=0, $quality=50, $outfile='')
{
$picInf=getimagesize ($fileName);
//this works a treat
if($picInf[0]<=$newX && $picInf[1]<=$newY && $outfile) //it's already small enough
{
return move_uploaded_file ( $fileName, $outfile );
}
switch( $picInf['mime'] )
{
case 'image/gif':
$im=imagecreatefromgif( $fileName );
break;
case 'image/jpeg':
$im=imagecreatefromjpeg( $fileName );
break;
case 'image/png':
$im=imagecreatefrompng( $fileName ) ;
}
if( @!$im ) return NULL;
if($fixedAspect) //have to fit in that box, baby
{
$xRatio=(float) imagesx($im)/$newX;
$yRatio=(float) imagesy($im)/$newY;
if( $xRatio > $yRatio )
{
$newY=imagesy($im) / $xRatio; //scale to X
}
else
{
$newX=imagesx($im) / $yRatio; //scale to Y
}
}
$im2=imagecreatetruecolor($newX, $newY);
imagecopyresampled($im2, $im, 0, 0, 0, 0, $newX, $newY, imagesx($im), imagesy($im) );
imagejpeg($im2, $outfile, $quality);
imagedestroy($im);
imagedestroy($im2);
return 1;
}