[ class tree: core ] [ index: core ] [ all elements ]

Procedural File: functions-image.php

Source Location: /functions-image.php

Page Details

image processing functions

Constants
MAX_SIZE  [line 14]

MAX_SIZE = 3000

[ Top ]


Functions
cacheImage  [line 144]

Creates the cache folder version of the image, including watermarking

Parameters:
string   $newfilename:  the name of the file when it is in the cache
string   $imgfile:  the image name
array   $args:  the cropping arguments
bool   $allow_watermark:  set to true if image may be watermarked
string   $theme:  the current theme
string   $album:  the album containing the image


void cacheImage( string $newfilename, string $imgfile, array $args, [bool $allow_watermark = false], string $theme, string $album  )

[ Top ]
getImageRotation  [line 469]
Parameters:
   $imgfile: 


void getImageRotation( $imgfile  )

[ Top ]
imageDebug  [line 46]

Prints debug information from the arguments to i.php.

Parameters:
string   $album:  alubm name
string   $image:  image name
array   $args:  size/crop arguments
string   $imgfile:  the filename of the image


void imageDebug( string $album, string $image, array $args, string $imgfile  )

[ Top ]
imageError  [line 23]

If in debug mode, prints the given error message and continues; otherwise redirects to the given error message image and exits; designed for a production gallery.

Parameters:
$errormessage   $errormessage:  string the error message to print if $_GET['debug'] is set.
$errorimg   $errorimg:  string the filename of the error image to display for production. Defaults to 'err-imagegeneral.png'. Images should be located in /zen/images .


void imageError( $errormessage $errormessage, [$errorimg $errorimg = 'err-imagegeneral.png']  )

[ Top ]
iptc_make_tag  [line 121]

iptc_make_tag() function by Thies C. Arntzen

Parameters:
$rec   $rec: 
$data   $data: 
$value   $value: 


void iptc_make_tag( $rec $rec, $data $data, $value $value  )

[ Top ]
propSizes  [line 88]

Calculates proprotional width and height Used internally by cacheImage

Returns array containing the new width and height

Parameters:
int   $size: 
int   $width: 
int   $height: 
int   $w: 
int   $h: 
int   $thumb: 
int   $image_use_side: 
int   $dim: 


array propSizes( int $size, int $width, int $height, int $w, int $h, int $thumb, int $image_use_side, int $dim  )

[ Top ]


Documentation generated on Tue, 20 Dec 2011 16:07:19 +0100 by phpDocumentor 1.4.3