На iplot.ru все работало (пока он не полетел)
Вот код:
<?php
$filename=$_GET['ia'];
header('Content-type: image/jpeg');
list($width, $height) = getimagesize($filename);
$new_w=$_GET['rax'];
if($new_w=='all')
{
$new_w=$width;
}
$new=$width / $new_w;
$new_h=$height / $new;
$imp=imagecreatetruecolor($new_w, $new_h);
$image=imagecreatefromjpeg($filename);
imagecopyresampled($imp, $image, 0, 0, 0, 0, $new_w, $new_h, $width, $height);
$fn='log.png';
list($w, $h) = getimagesize($fn);
$new_ww=$new_w;
if($new_w>1500)
{
$new_ww=1500;
}
$nw=$new_ww / 4;
$n=$w / $nw;
$nh=$h / $n;
$im=imagecreatefrompng($fn);
imagecopyresampled($imp, $im, $new_w - $nw, $new_h - $nh, 0, 0, $nw, $nh, $w, $h);
imagejpeg($imp, null, 100);
?>