rawproc 1.3 on Github

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!

8 Likes

Thanks again for doing this, as I said before it saved me a ton of time. I’ve been using the script version for a while now rather than linked lib, so will give that another trial when I can.

G’MIC seems like a really natural fit for rawproc, it’s a good combination!

1 Like

The linked lib version works fine (built from source anyway), but I did have to explicitly load both the most recent update file and my personal/local file to the selected script. So here’s how it looks:

m /home/username/.config/gmic/update301.gmic
m /home/username/.gmic
gcd_mycommand
n 0,1

If you use the “script” method instead, that is not necessary. Maybe @David_Tschumperle has advice about how that could be handled when using libgmic?

Cripes, @garagecoder, your last post made me think through the build process, and the Windows executable shouldn’t work if there’s no libgmic.so.3 available. It does run, however, which means that --enable-gmic was not in the ./configure invocation. Sure 'nuf, libgmic doesn’t show up in the ldd list.

This is going to be interesting to resolve, as my windows build chain is totally static… So, for the time being, the 1.3 Windows installer and .zip executable don’t have the gmic tool…

Ah, well it’s not total disaster since the script option is there. It’s been an extremely long time since I did windows build with libgmic and I don’t use windows any more (for home stuff anyway), so I’m not much help with that. And to tell the truth, I’m glad not to try!

P.S. the Appimage works fine for me too

1 Like

Oh bother. One of these days, I will find time to assist if you need MS-land testing.

1 Like