blueshoes php application framework and cms            core_gfx
[ class tree: core_gfx ] [ index: core_gfx ] [ all elements ]

Class: Bs_ImageUtil

Source Location: /core/gfx/Bs_ImageUtil.class.php

Class Overview

Bs_Object
   |
   --Bs_ImageUtil

ImageUtil class.


Author(s):

Version:

  • 4.3.$Revision: 1.3 $ $Date: 2003/10/29 17:48:37 $

Copyright:

  • blueshoes.org

Methods


Inherited Variables

Inherited Methods

Class: Bs_Object

Bs_Object::Bs_Object()
Bs_Object::getErrors()
Basic error handling: Get *all* errors as string array from the global Bs_Error-error stack.
Bs_Object::getLastError()
Basic error handling: Get last error string from the global Bs_Error-error stack.
Bs_Object::getLastErrors()
Basic error handling: Get last errors string array from the global Bs_Error-error stack sinc last call of getLastErrors().
Bs_Object::persist()
Persists this object by serializing it and saving it to a file with unique name.
Bs_Object::setError()
Basic error handling: Push an error string on the global Bs_Error-error stack.
Bs_Object::toHtml()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::toString()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::unpersist()
Fetches an object that was persisted with persist()

Class Details

[line 29]
ImageUtil class.

functionality:

  • create thumbnails (from jpg's)
missing:
  • gif support (if gd/php supports it)

dependencies: none




Tags:

pattern:  singleton: (pseudostatic)
todo:  see above
access:  public
version:  4.3.$Revision: 1.3 $ $Date: 2003/10/29 17:48:37 $
copyright:  blueshoes.org
author:  andrej arn <at blueshoes dot org>


[ Top ]


Class Methods


constructor Bs_ImageUtil [line 35]

Bs_ImageUtil Bs_ImageUtil( )

constructor



[ Top ]

method getImgInfoType [line 99]

string getImgInfoType( int $number)

returns the image type



Tags:

access:  public


Parameters:

int   $number  

[ Top ]

method resizeToFile [line 51]

bool resizeToFile( string $sourcefile, int $thumbWidth, int $thumbHeight, string $targetfile, int $jpegqual)

resizeToFile resizes a picture and writes it to the harddisk.



Tags:

return:  TRUE
access:  public


Parameters:

string   $sourcefile   = the filename of the picture that is going to be resized
int   $thumbWidth   = X-Size of the target picture in pixels
int   $thumbHeight   = Y-Size of the target picture in pixels
string   $targetfile   = The name under which the resized picture will be stored
int   $jpegqual   = The Compression-Rate that is to be used

[ Top ]


Documentation generated on Mon, 29 Dec 2003 21:11:18 +0100 by phpDocumentor 1.2.3