ok... New version is out...
SuperSizer
Package: RC0.x
Version: RC0.8
• filter- NEGATE, GRAYSCALE, BRIGHTNESS, CONTRAST, COLORIZE, EDGEDETECT, EMBOSS, GAUSSIAN_BLUR, SELECTIVE_BLUR, MEAN_REMOVAL, SMOOTH, PIXELATE
• Massive improvement of the overall quality of the processes image and smaller overall file sizes
• Did I mention filters!!!
Also it's been well tested by many people and sites.
For those that don't want to scorll back to see what all you get in this plug-in here is the uptodate list...
path - Image full pathname eg: uploads/images/test.jpg or $entry->logo_path in Company Directory etc...
rootUrl (optional) - supersizer creates a temp director in the upload folder. If you move the path to the uplaod to a subdomain you may guide the output with this.
Exapmle: you changed $config['uploads_path'] = '/var/www/vhosts/domain.org/httpdocs/uploads';
to $config['uploads_path'] = '/var/www/vhosts/domain.org/subdomains/media/httpdocs/uploads';
now the uploads url would not work as it would be
http://www.domain.org/uploads
So it can be changed here to media.domain.org/uploads (NOTE: watch your / )
For an example visit
http://www.northcentralidaho.org/SERVIC ... HANTS.html and drill down to a company to which you'll see images coming from the subdomain
cacheBuster (optional) Default:false - This is to instantly uncache an image on the client side after a new uploaded photo is SuperSized... ie: Canyon House.-w150-h0-p0.jpg?1255225007 ( true/false )
Protect (optional) Default:false - Don't resize if smaller.. ie: don't size up if true ( true/false )
Quality (optional) Default:85 - Resize image at set Quality(NOTE: 1-100 ).
class (optional) - Add a class
alt (optional) - Add an alt
id (optional) - Add an id
title (optional) - Add a title
stripTag (optional) Default:false - stripTag take a full img tag passed in by the param path="" and makes it usable for SuperSizer ( true/false )
URL (optional) - just sizes and outputs the url. you could use this in and XML output, lets say to make a map icon for CGGoogleMaps thru a CGFeedmaker output of a kml/xml
noOutPut (optional) Default:false - just sizes the image. This is good for galleries ( true/false )
Prefix (optional) - Add a Prefix to the temp file name
Suffix (optional) - Add a Suffix to the temp file name
Subdir (optional) - Create Subfolders -- Organize your photos from within the SuperSizerTmp folder ( Subdir=$oneuser.id or Subdir="foo/bar")
filter (optional) - EX: filter="NEGATE"
NEGATE - Reverses all colors of the image.
GRAYSCALE - Converts the image into grayscale.
BRIGHTNESS - Changes the brightness of the image. Use farg1 to set the level of brightness. (1-200)
CONTRAST - Changes the contrast of the image. Use arg1 to set the level of contrast.(-100 - 100)
COLORIZE - Use farg1 , farg2 and farg3 in the form of red , blue , green and farg4 for the alpha channel. The range for each color is 0 to 255. Alpha channel, A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent
EDGEDETECT - Uses edge detection to highlight the edges in the image.
EMBOSS- Embosses the image.
GAUSSIAN_BLUR - Blurs the image using the Gaussian method.
SELECTIVE_BLUR - Blurs the image.
MEAN_REMOVAL - Uses mean removal to achieve a "sketchy" effect.
SMOOTH - Makes the image smoother. Use farg1 to set the level of smoothness(1 - 100) 1 is full weigth of the smoothing where 100 you'd notice almost nothing.
PIXELATE - Applies pixelation effect to the image, use farg1 to set the block size in pixels and farg2 whether to use advanced pixelation effect or not (defaults to FALSE), to set the pixelation effect mode.
farg1 (optional) - First argument for the filters
farg2 (optional) - Second argument for the filters
farg3 (optional) - Third argument for the filters
farg4 (optional) - Fourth argument for the filters
percentage (optional) - Resize image in percent of original eg. 50%.
width (optional) - Resize image on width and height will resize accordingly to keep aspect ratio
height (optional) - Resize image on height and width will resize accordingly to keep aspect ratio
Assign (optional) - Assign the output (return the smarty assignment) Use in conjunction with out without URL
debugIT (optional) Default:false - Get an array of the pre and post images... the original and the resized ( true/false ) This information is required for any support