NewsFeaturesDownloadsDevelopmentSupportAbout Us

Gallery_resizer


Classes

class  GalleryAbstractResizer
class  GalleryGDResizer
class  GalleryImageMagickResizer
class  GalleryNullResizer
class  GalleryResizer
class  GdDetector

Detailed Description

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 thumbnail_method and thumbnail_format and load the appropiate thumbnail generator class.

Example usage:

  $generator = new GalleryResizer( "/tmp/image.jpg" );
  if( $generator->generate( "/tmp/image_thum.jpg", 120, 120 ))
     print("Thumbnail generated ok!" );
  else
     print( "There was an error generating the thumbnail" );