Article Preview
Buy Now
Instant purchase and download via GumRoad!
FEATURE
Image Batcher
Use XojoScript to Batch Process Images
Issue: 23.1 (January/February 2025)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 43,029
Starting Page Number: 25
Article Number: 23104
Resource File(s):
project 23104.zip Updated: 2025-01-09 23:32:32
Related Web Link(s):
http://imageplay.sourceforge.net
http://imageplay.sourceforge.net
http://www.xdevmag.com/browse/21.1/21106/
Excerpt of article text...
Batch processing images is nothing new. I often have a bunch of images I want to do something with, whether it's resizing them, converting them to a new file format, or even making some common adjustments.
While one can use tools like Adobe Photoshop or other image editors for this, I've often thought that being able to
script such edits would be the ultimate in power. (Before you say it, yes, I know that one can use Photoshop Automations, Apple Shortcuts, and even specific apps like Retrobatch. But isn't rolling your own solutions with Xojo more fun?)While working on the previous issue's testing of Xojo's new preemptive threading feature, my thoughts crystallized that combining it with XojoScript image processing would make my scriptable image batcher possible. This has birthed this issue's Batch Image Processor.
While it's useful today, be aware that this is version 0.5—it's just the tip of the iceberg of what I'd like to do in the future. I'll get more into that later, and I'd love your feedback on where you'd see this going. But for now, let's get started.
Building the App
The idea of the app is simple and consists of three parts:
...End of Excerpt. Please purchase the magazine to read the full article.