<?php $url = 'http://i-serwis2.action.pl/'; $filename = 'Pictures/KOM/KOH/KOMAAAKOH0397/1.jpg'; $width = 480; $height = 480; { $source = imagecreatefromjpeg($filename); imagejpeg($source, null, 10); } else { $dir = '/'; { $dir .= $value . '/'; } if ($width/$height > $fwidth/$fheight) { $newheight = $height; } else { $newwidth = $width; } $thumb = imagecreatetruecolor($newwidth, $newheight); $source = imagecreatefromjpeg($url.$filename); imagecopyresampled($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $fwidth, $fheight); imagejpeg($thumb, $filename, 100); } ?>
Miniaturka ładowana z dysku lokalnego ma celowo ustawioną jakość na 10% żeby było wiadomo czy jest to miniaturka lokalna czy zdalna.

//EDIT
Dałem po prostu na końcu
.
<?php ... } ?>
