Re: Add image file processor (resize image files)
Posted: Wed Aug 17, 2022 5:45 am
OK, I've got it working well enough now that I'm happy enough to deploy it. I've worked out how to attach it as a file this time (no idea how I didn't see that before...
So, I've gone with what steinar has suggested and added a Stills decoder and a Resize node (again, how did I not find that before) and that's done the trick.
I've now got a workflow that:
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.
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.