Lasso Soft Inc. > Home

[Image->Save]

Converts and saves the image to a file in a format defined by the file extension. A -Quality parameter specifies the image compression ratio (integer value of 1-100) used when saving to JPEG or GIF format.

  • Syntax
  • Parameters
[Image Variable->(Save: '/folder/image.jpg', -Quality=100)]
Optional Parameters
-Quality Specifies the image compression ratio (integer value of 1-100) used when saving to JPEG format. JPEG quality conversion defaults to 75 if no -Quality parameter is specified.
Examples

To save a defined image variable to file:

Use the [Image->Save] tag on a defined image variable, specifying the desired image name, path, and format.

[Var: 'MyImage' =(Image: 'image.jpg')]
[$MyImage->(Save: '/images/image.jpg', -Quality=75)]

To convert an image file from one format to another:

Use the [Image->Save] tag on a defined image variable, changing the image file extension to the desired image format. A -Quality parameter value of 100 specifies that the resulting JPEG file will be saved at the highest-quality resolution.

[Var: 'MyImage' =(Image: '/images/image.gif')]
[$MyImage->(Save: '/images/image.jpg', -Quality=100)]

Use the [Image->Save] tag on a defined image variable, changing the existing image file name to the desired image file name.

[Var: 'MyImage' =(Image: '/images/image.gif')]
[$MyImage->(Save: '/images/image.jpg', -Quality=100)]
Tag Link [Image->Save] Category Image
Type Member Data Source Any
Support Preferred Version 7.0
Output Type None Security File
Implementation 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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft