muc temto funkcim nerozumim, mohl by mi nekdo napsat co mám dosadit za parametry, pokud chci z obrazku o velikosti 65×100px uříznout dolních 10px, abych dostal 65×90px. nepotrebuji skript s oteviranim obrazku, staci jeden radek (imagecopyresized($cil, $zdroj, ....tohlechcivedet...))
imagecopyresampled ( resource dst_image, resource src_image, int dst_x, int dst_y, int src_x, int src_y, int dst_w, int dst_h, int src_w, int src_h)
dst_image is the destination image, src_image is the source image identifier. If the source and destination coordinates and width and heights differ, appropriate stretching or shrinking of the image fragment will be performed. The coordinates refer to the upper left corner. This function can be used to copy regions within the same image (if dst_image is the same as src_image ) but if the regions overlap the results will be unpredictable.
aneb pro tvuj pripad:
imagecopyresampled ( resource dst_image, resource src_image, 0, 0, 0, 0, 65, 90,65, 100);
zdroj: <a href="http://cz.php.net/manual/en/function.imagecopyresampled.php">zdroj</a>