public static bool
(mixed $fileIn, mixed $fileOut = null, mixed $width = null, mixed $height = null, mixed $crop = null, mixed $typeOut = null, mixed $watermarkParams = array(), mixed $frontUpload = 0, mixed &$errorMsg = '')
need GD library (first PHP line WIN: dl("php_gd.dll"); UNIX: dl("gd.so");
www.boutell.com/gd/
interval.cz/clanky/php-skript-pro-generovani-galerie-obrazku-2/
cz.php.net/imagecopyresampled
www.linuxsoft.cz/sw_detail.php?id_item=871
www.webtip.cz/art/wt_tech_php/liquid_ir.html
php.vrana.cz/zmensovani-obrazku.php
diskuse.jakpsatweb.cz/
Parameters
- string $fileIn Vstupni soubor (mel by existovat)
- string $fileOut Vystupni soubor, null ho jenom zobrazi (taky kdyz nema pravo se zapsat :)
- int $width Vysledna sirka (maximalni)
- int $height Vysledna vyska (maximalni)
- bool $crop Orez (true, obrazek bude presne tak velky), jinak jenom Resample (udane maximalni rozmery)
- int $typeOut IMAGETYPE_type vystupniho obrazku
Returns
- bool Chyba kdyz vrati false