Tag Link | [Image] | Category | Image |
---|---|---|---|
Type | Process | Source Available | No |
Support | Preferred | Version | 7.0 |
Change | Unchanged | Data Source | Any |
Output Type | None | Security | Tag |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0 |
For Lasso to be able to edit an image via LassoScript, an image file or image data must first be cast as a Lasso image variable using the [Image] tag. Once a variable has been set to an image data type, various Image member tags can be used to manipulate the image. Once the image file is manipulated, it can either be served directly to the client browser, or it can be saved to disk on the Web server.
Requires either the name and path of an image file, or a binary data string to initialize an image. Once an image is cast as an object, it may be edited and saved using [Image] member tags.
Because the [Image] tags are based on ImageMagick, Lasso Professional 7 supports reading and manipulating over 88 major file formats (not including sub
Lasso is certified to work with the following iage formats out of the box without additional components installed: BMP, CMYK, GIF, JPEG, PNG, PSD, RBG, and TIFF.
[var:'Image' = (Image: '/folder/file.jpg')]
[var:'Image' = (Image:
Required Parameters | |
---|---|
'File Path' | Path to image file on the server. Required if |
Optional Parameters | |
-Binary | Creates an image file from binary image data. Requires a valid binary string for a supported image format. Required if a file path or |
-Base64 | Creates an image file from Base64 |
-Info | Retrieves all attributes on an image without reading the pixel data. Allows for better performance and less memory usage when dealing with larger image files. |
The [Image] tag that was formerly available in Lasso Web Data Engine 3.x has been replaced by [Image_URL].
To initialize an image from binary image data:
Lasso can create an image from a binary string for a valid image type using the [Image] tag with the
[Var:'Binary'=(Include_Raw: 'image.jpg')]
[Var:'MyImage3'=(Image:
[$MyImage3->(Save:'image.jpg')]
To cast an image file as an LDML object:
Use the [Image] to initialize an image file using the
[Var:'MyImage2'=(Image: '/images/largeimage.jpg',
To cast an image file as an LDML object:
Use the [Image] to initialize an image file so it can be manipulated by Lasso.
[Var:'MyImage1'=(Image: '/images/image.jpg')]