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
Image Variable->save('/folder/image.jpg', -Quality=100)
  • Beginner

To save a defined image variable to file:

Use the [image->save] method on an image variable, specifying the desired image name, path, and format.


local(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] method 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.


local(myImage = image('image.gif'))
#myImage->save('/images/image.jpg', -Quality=100)

Recent Comments

No Comments found

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