For Lasso to be able to edit an image via LDML, an image file or image data must first be cast as an LDML 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-formats). A comprehensive list of supported image formats can be found at the following URL. http://www.imagemagick.com/www/formats.html
Lasso Professional 7 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: -Binary: 'Binary String')]
Lasso can create an image from a binary string for a valid image type using the [Image] tag with the -Binary parameter. The image is initialized and created in memory only until it is saved using the [Image->Save] tag described later.
[Var:'Binary'=(Include_Raw: 'image.jpg')]
[Var:'MyImage3'=(Image: -Binary=$Binary)]
[$MyImage3->(Save:'image.jpg')]
Use the [Image] to initialize an image file using the -Info parameter for increased performance with larger files.
[Var:'MyImage2'=(Image: '/images/largeimage.jpg', -Info)]
Use the [Image] to initialize an image file so it can be manipulated by Lasso.
[Var:'MyImage1'=(Image: '/images/image.jpg')]
Tag Link | [Image] | Category | Image |
---|---|---|---|
Type | Process | Data Source | Any |
Support | Preferred | Version | 7.0 |
Output Type | None | Security | Tag |
Implementation | LCAPI | Sets | Lasso 7.0 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft