I've now got a workflow that:
- Watches the folder C:\image resizer
- Picks up files only in subfolders named like a resolution through regex matching (e.g. C:\image resizer\1920x1080)
- Sets the new image width and height to fit within that resolution while respecting the original aspect ratio (uses regex to get the two resolutions from the folder name)
- Resizes the image and outputs it to C:\image resizer\output in .png format for .png originals, and .jpg format for all other image files
- Deletes the originals
I wouldn't say no to a new "image resize" node or an update to work with .heic files, but this is now deployed and working well enough. Thanks for your help.