[ Index ]
 

Code source de Plume CMS 1.2.2

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/manager/inc/ -> class.thumbnail.php (sommaire)

(pas de description)

Poids: 273 lignes (7 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

thumbnail:: (7 méthodes):
  thumbnail()
  getName()
  getPath()
  getSize()
  create()
  gd_version()
  _resampleBicubic()


Classe: thumbnail  - X-Ref

Class to manage the thumbnails
It provides also a static method to get the gd library version.

thumbnail($thumbdir = '')   X-Ref
Init the thumbnail class.


getName($img, $w=0, $h=0)   X-Ref
Get the name of a thumbnail from the image name, the image
name can include a path this is just a md5() operation.
If the height and the width are given, the info is used to
generate the name, else not.


getPath($img, $w=0, $h=0)   X-Ref
Get the path to the thumbnail.


getSize()   X-Ref
Get the size of the last created thumbnail
return the same results as the builtin getimagesize PHP function.


create($src, $dst, $w=120, $h=200)   X-Ref
Create thumbnail of an image, proportions are kept.

param: string Path to source image
param: string Path to the thumbnail image
param: int Max width of the thumbnail
param: int Max height of the thumbnail
return: bool Success or not

gd_version()   X-Ref
Get the current GD version. Need the output buffering functions.


_resampleBicubic(&$dst, &$src, $dstx, $dsty, $srcx, $srcy, $w, $h, $zoomX, $zoomY = '')   X-Ref
Resample the image
http://www.php.net/manual/en/function.imagecopyresized.php




Généré le : Mon Nov 26 11:57:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics