[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/gallery/resizers/ -> galleryresizer.class.php (sommaire)

\defgroup Gallery_resizer Please use the proxy class GalleryResizer that should be used to generate thumbnails, instead of using directly classes such as GalleryGdResizer or GalleryImageMagickResizer. This class will check from the configuration the values of the parameters <b>thumbnail_method</b> and <b>thumbnail_format</b> and load the appropiate thumbnail generator class.

Poids: 149 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 2 fois
Nécessite: 0 fichiers

Définit 1 class

GalleryResizer:: (3 méthodes):
  GalleryResizer()
  getThumbnailFormat()
  generate()


Classe: GalleryResizer  - X-Ref

\ingroup Gallery_resizer

Takes care of generating, storing and retrieving thumbnails.

Supports several methods for the generation of thumbnails and can support as
many as needed. It also supports caching of thumbnails so that they don't have
to be generated after each request.
GalleryResizer( $image )   X-Ref
Constructor. Creates a Thumbnail object from the given image file.

param: image An Image object
param: generatorMethod Optional parameter specifying which

getThumbnailFormat()   X-Ref
returns the format that will be used/has been used to generate a thumbnail.

return: Returns one of:

generate( $outFile, $width = GALLERY_DEFAULT_THUMBNAIL_WIDTH, $height = GALLERY_DEFAULT_THUMBNAIL_HEIGHT, $keepAspectRatio = true )   X-Ref
Generates a thumbnail.

param: outFile
param: width The width of the thumbnail
param: height The height of the thumbnail
param: keepAspectRatio whether thumbnails should keep their aspect ratio (even though the final size
return: the path to the thumbnail that was generated or empty if error



Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics