Back to Phoca Cart project (class list)

Class PhocacartImageMagic - list of methods

Copyright: Copyright (C) Jan Pavelka https://www.phoca.cz
License: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 and later
Located at: Phocacart/image/magic.php
Project: Phoca Cart

Method Summary

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 $manager = '', 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
Show source code of this method: imageMagic Source Code

public static
(mixed $image1, mixed $dst, mixed $src, mixed $fileOut, mixed $jfile_thumbs, mixed &$errorMsg)

Show source code of this method: doWebpCopy Source Code