You can test out this extension right away!
- Create an operations list, for example:
const operations = [
{
operation: 'input',
type: 'url',
url: 'https://images.unsplash.com/photo-1663659552548-25d7771802c9?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=774&q=80',
},
{
operation: 'grayscale',
},
{
operation: 'output',
format: 'webp',
},
];
- Stringify and encode the list:
encodeURIComponent(JSON.stringify(operations));
- Call the deployed
process
Cloud Function:
The result will be a grayscaled version of the image, in WebP format.
See the official documentation for more information on using the extension, including the full list of supported operations you can use.
As a best practice, you can monitor the activity of your installed extension, including checks on its health, usage, and logs.