Regarding my request for help figuring out how to configure the result I want to get, I think I need these

{
“source”: {
“url”: “<image_url>”
}
}
and
{
“resize”: {
“method”: “thumb”,
“width”: 512,
“height”: 512
}
}
and
{
“convert”: { “type”: “image/webp” }
}
but I don’t know the proper syntax to combine them, along with the code to indicate the source. Should I stack the scripts like that, or nest them somehow?