The major addition in 1.3 is the inclusion of a G’MIC tool. I really should have done this a long time ago, as G’MIC was the inspiration for rawproc’s toolchain organization. Now, all the richness of G’MIC is available to your rawproc toolchains! Note: To the rawproc builds G’MIC is a dynamic library, so libgmic.so.3 needs to be somewhere in your system’s library search path. Rather than a static link like I do for the other libraries, @afre’s feedback that he wanted to be able to update G’MIC independently resonated. This means you’ll have to install G’MIC prior to using the rawproc tool.
The other addition, corollary to the G’MIC tool, is a more general script tool. Does basically the same thing as the G’MIC tool, but is configurable to use any scripting image tool available on the computer. A bit clunkier than the G’MIC tool, it pukes a TIFF of the internal image, runs the script against that as a separate process, and sucks back in the output TIFF for the tool result. It requires a bit of configuration in the rawproc .conf file, which occurred to me as I wrote the release notes I hadn’t put any examples in the release .conf file. So, here’s what you need to use G’MIC and ImageMagick:
tool.script.gmic.channelformat=float
tool.script.gmic.command=/home/glenn/ImageStuff/gmic/src/gmic
tool.script.gmic.commandstring=[program] [infile] [script] output [outfile],float
tool.script.gmic.shell=wxcmd
tool.script.imagemagick.channelformat=16bit
tool.script.imagemagick.command=/usr/bin/convert
tool.script.imagemagick.commandstring=[program] [infile] [script] [outfile]
Note this difference - G’MIC has a tool.script.gmic.shell property, defined to be ‘wxcmd’, whereas ImageMagick doesn’t. This means that G’MIC scripts get a shell on the screen that displays the script progress, ImageMagick convert just runs as a single process. The ‘Output’ button on the script parameters pane will let you see the output for debugging.
In the commandstring property, the [ ] tokens are replaced by rawproc with the necessary values to run the script, I hope they’re self-explanatory.
This release represents a bit of sea change for rawproc, capabilities in which others have shown specific interest. These two new tools are a bit different, and I’m sure the thought I put into deploying them is woefully inadequate to the possible use cases. I’ll be interested in feedback from folk trying to use them, and I’ll readily turn a 1.3.1 and more to make them generally useful.
So, have at it!