Page Blocks

Hosting sponsored by:

Point In Space

 

API: Img

Filename:
fwpImg_resize

Released With:
5.0.0

Current Version:
1.1.1

Status: Active

Min Lasso Tested: 8.1.0

Max Lasso Tested: 8.5.3

Related:

Still don't get it?

Check out the talk list archives, or join and ask your questions.

Documentation Error or Request?

Email documentation corrections or comments

API Reference

fwpImg_resize (Tag)

Description

Uses ImageMagick and PassThru to resize a specified image file.

Use this custom tag format, or the fwp_imageFile custom type format.

Syntax

fwpImg_resize:
   -srcfile = path,
   -destfile = path,
   -width = integer

Parameters & Member Tags

-srcFile - required : a qualified pathname to the image file to be resized

-destFile - required : a qualified pathname for the new resized image file

-width - required : the width in pixels of the new image file

Examples

fwpImg_resize:
   -srcfile = ($c_gPath->'uploads') + $fileName + $fileExt,
   -destfile = ($c_gPath->'uploads') + $fileName + 'Sm' + $fileExt,
   -width = 180;

© 2002-2012, pageblocks.org