phpDocumentor sf-active
base_classes
[ class tree: sf-active ] [ index: sf-active ] [ all elements ]

Class: Image

Source Location: /classes/image_class.inc

Class Image

Class Overview

deals with image compression and resizing of images published in articles and events.

This class will create a thumbnail of an image according to the values set in the sfactive.cfg file. if a an images' size is bigger then certain values, we also create a mid size version to be used in the articles/events page.

if the filesize is higher then defined in the configuration, the image will be compressed.

Located in /classes/image_class.inc [line 28]



		
		
		
		

Methods

[ Top ]
Method Summary
Image   Image()   class constructor. does nothing.
void   change_size_from_old()   creates midsize and thumbnail images from an image given it's address, year and month.
void   validate_image()   validates an image. will create a thumbnail and midsize when needed given an image_address and extension.

[ Top ]
Methods
Constructor Image  [line 34]

  Image Image( )

class constructor. does nothing.



[ Top ]
change_size_from_old  [line 215]

  void change_size_from_old( string $image_address, string $year, string $month  )

creates midsize and thumbnail images from an image given it's address, year and month.

creates midsize and thumbnail images from an image given it's address, year and month. this is used when we regenerate old articles when we upgrade sites.

Parameters:
string   $image_address:  filepath of the image
string   $year:  string with the year in yyyy format
string   $month:  string with the month in mm format


[ Top ]
validate_image  [line 45]

  void validate_image( string $image_address, sring $image_ext  )

validates an image. will create a thumbnail and midsize when needed given an image_address and extension.

Parameters:
string   $image_address:  filepath of the image
sring   $image_ext:  the extension of the image.


[ Top ]

Documentation generated on Tue, 24 Jun 2008 01:03:36 -0700 by phpDocumentor 1.3.0RC3