Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
GMImage.WriteToWebPContainer
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 |
Parameters
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 |
Result
Returns a container value.
Description
Writes the picture in WebP format to a container value which you can store in a container field.We store WebP as FILE containers, so no preview in FileMaker. We tried to include a preview JPEG, but FileMaker won't show it.
See also GMImage.WriteToFile, GMImage.WriteToJPEGContainer, GMImage.WriteToPNGContainer, GMImage.WriteToBMPContainer and GMImage.WriteToGIFContainer.
Examples
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
See also
- GMImage.Free
- GMImage.New
- GMImage.NewFromContainer
- GMImage.WriteToBMPContainer
- GMImage.WriteToContainer
- GMImage.WriteToGIFContainer
- GMImage.WriteToJPEGContainer
- GMImage.WriteToPDFContainer
- GMImage.WriteToPNGContainer
- GMImage.WriteToTiffContainer
Release notes
- Version 13.2
- Added GMImage.WriteToWebPContainer function.
Blog Entries
This function checks for a license.
Created 23th March 2023, last changed 16th April 2023