Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Writes the picture in WebP format to a container value which you can store in a container field.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
GraphicsMagick | 13.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
ImageRef | The image reference number. | 1 | |
Filename | The file name to use for the container. Default is "image.webp" |
"ball.webp" | Optional |
Returns a container value.
Convert to WebP:
# Load from container
Set Variable [ $Image ; Value: MBS("GMImage.NewFromContainer"; Image Scaling::InputImage) ]
# Scale the image by the size that we enter in the size field
If [ MBS("IsError") ]
Show Custom Dialog [ "Error" ; $Image ]
Exit Script [ Text Result: ]
Else
# Write image to container and set the Information text
Set Field [ Image Scaling::Result ; MBS("GMImage.WriteToWebPContainer"; $Image; "test.webp") ]
# Release image
Set Variable [ $r ; Value: MBS("GMImage.Free";$Image) ]
End If
This function checks for a license.
Created 23th March 2023, last changed 16th April 2023