/functions.inc.phpAptana Cloud Sample Application - Image Manipulation Demo Functions
This file contains all the function definitions for the sample application.
SITE_ROOT = dirname(__FILE__).'/'
(line 17)
The document site root
array
$valid_files
(line 25)
Valid file extensions for uploaded images
Generates a "Polaroid" of an Image
This function will take an image file, scale it down to no wider than 450 pixels, rotate it randomly, and then apply a "polaroid" type effect to it with a drop-shadow. It then returns the manipulated file name.
Because of the effects applied during the manipulation, the returned file is always a PNG image (for transparency support).
Returns the Extension of a File
Uploads an Image to the Uploads Folder
This function is pretty straight-forward. It does a few simple things:
Documentation generated on Tue, 07 Oct 2008 15:23:01 -0700 by phpDocumentor 1.4.2