/var-www-hotglue/hotglue.org-test/dev/module_image.inc.php File Reference

Go to the source code of this file.

Functions

 _gd_available ()
 _gd_get_imagesize ($f)
 image_alter_render_early ($args)
 image_alter_save ($args)
 image_delete_object ($args)
 image_has_reference ($args)
 image_render_object ($args)
 image_render_page_early ($args)
 is_ani ($filename)
 image_resize ($args)
 image_save_state ($args)
 image_serve_resource ($args)
 image_snapshot_symlink ($args)
 image_upload ($args)

Function Documentation

_gd_available (  ) 

return if GD image functions are available

Returns:
bool

Definition at line 24 of file module_image.inc.php.

_gd_get_imagesize ( f  ) 

return the width and height of an image file

Parameters:
string $f filename
Returns:
array with width and height in pixels

Definition at line 37 of file module_image.inc.php.

image_alter_render_early ( args  ) 

implements alter_render_early

see image_render_object()

Definition at line 53 of file module_image.inc.php.

image_alter_save ( args  ) 

implements alter_save

see image_save_state()

Definition at line 176 of file module_image.inc.php.

image_delete_object ( args  ) 

implements delete_object

Definition at line 214 of file module_image.inc.php.

image_has_reference ( args  ) 

implements has_reference

Definition at line 240 of file module_image.inc.php.

image_render_object ( args  ) 

implements render_object

Definition at line 266 of file module_image.inc.php.

image_render_page_early ( args  ) 

implements render_page_early

Definition at line 305 of file module_image.inc.php.

image_resize ( args  ) 

resize an image object

this function drops the reference to any currently resized version, saves the resized image together with the original image in the page's shared folder and updates the object file to use the resized version.

Parameters:
array $args arguments key 'name' name of the objects key 'width' width in px key 'height' height in px
Returns:
array response true if the client is advised to reload the image, false if not

Definition at line 360 of file module_image.inc.php.

image_save_state ( args  ) 

implements save_state

Definition at line 524 of file module_image.inc.php.

image_serve_resource ( args  ) 

implements serve_resource

Definition at line 566 of file module_image.inc.php.

image_snapshot_symlink ( args  ) 

implements snapshot_symlink

see snapshot() in module_glue.inc.php

Definition at line 621 of file module_image.inc.php.

image_upload ( args  ) 

implements upload

Definition at line 683 of file module_image.inc.php.

is_ani ( filename  ) 

determine if file is animated gif

function takes filename and returns 'true' if the file header contains multiple frames: * a static 4-byte sequence () * 4 variable bytes * a static 2-byte sequence () (some variants may use ?)

based on: http://www.php.net/manual/en/function.imagecreatefromgif.php#104473

Definition at line 335 of file module_image.inc.php.

Generated on Wed Jul 11 19:43:16 2012 for hotglue by  doxygen 1.6.3