Autor Zpráva
viliam22
Profil
Mohol by mi niekdo povedat preco mi nejdu tieto dva skripty?

1.


<?php
// header ("Content-type: images/jpeg");
$width = 100; $height = 100;
$image = ImageCreate ($width, $height);
$background_color = ImageColorAllocate ($images, 255, 255, 255);

$ellipse_color = ImageColorAllocate ($images, 0, 0, 255);
ImageFilledEllipse ($image, 50, 50, 80, 50, $ellipse_color);
ImageJpeg ($image);
?>


2.


<?php

/* We load a small GIf file to be expanded into a larger file and calculate
the width and height of the image */
$size = GetImageSize("small.gif");
$im_in = ImageCreateFromGif("small.gif");

/* Set the height and width of the output image to four times
those of the input */
$im_out = ImageCreate($size[0] * 4, $size[1] * 4);

// Now to copy the smaller image, but four times larger
ImageCopyResized($im_out, $im_in, 0, 0, 0, 0, $size[0] * 4, $size[1] * 4,
$size[0], $size[1]);
ImageGif($im_out, "large.gif");
ImageDestroy($im_in);
ImageDestroy($im_out);
?>

<IMG SRC="small.gif" BORDER=0>
<IMG SRC="large.gif" BORDER=0>


DIKY
WertriK
Profil
....

$background_color = ImageColorAllocate ($images, 255, 255, 255);



$ellipse_color = ImageColorAllocate ($images, 0, 0, 255);

...
YoSarin
Profil
a to druhé ti nejspíš nefunguje proto, že nemáš na serveru nahrané ty obrázky...
Joker
Profil
Já vím, co tomu je ... je to rozbitý ;)

Narážím na to, že "nejde to" nebo "nefunguje to" není zrovna moc konkrétní popis problému. Pro příště by bylo fajn napsat alespoň jakou chybu to hází.
viliam22
Profil
diky WertriK
Toto téma je uzamčeno. Odpověď nelze zaslat.

0