You are here

using normalmap plug-in for a batch process

Hi,
I'm trying to automate a process where I run Gimp from the command line to take an input image, use the normalMap plugin to convert it into a normal map, and then save it out. But try as I might, I can not get the batch process to work.

Using the normalMap plug-in manually inside Gimp works fine.
The normalMap plugin I'm using is from: http://code.google.com/p/gimp-normalmap/
And I'm using it on Linux

This is my simple script:
----------------------------
(define (normalMap-fbx-conversion fileName
newFileName
nscale)
(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE fileName fileName)))
(drawable (car (gimp-image-get-active-layer image))))
(plug-in-normalmap RUN-NONINTERACTIVE image drawable 0 0.0 nscale 0 0 0 0 0 0 0 0 0.0 drawable )
(gimp-file-save RUN-NONINTERACTIVE image drawable newFileName newFileName)
(gimp-image-delete image)
))
----------------------------
Then I run gimp from the command line and get it into console mode, and use the following line:
> (normalMap-fbx-conversion "/tmp/bubble.jpg" "/tmp/bubble_Normal.jpg" 2.0)

The error message I get is:
----------------------------
../gimp/lin64/2.6.6/lib/gimp/2.0/plug-ins/normalmap: error while loading shared libraries: libgimpconfig-2.0.so.0: cannot open shared object file: No such file or directory
Error: Procedure execution of plug-in-normalmap failed on invalid input arguments: Procedure 'plug-in-normalmap' returned no return values
----------------------------

Anyone know what I could do?

The usage for normalMap is:
(plug-in-normalmap run-mode image drawable filter minz scale wrap height-source alpha conversion dudv xinvert yinvert swapRGB contrast alphamap)

Here's the params in detail:

Subscribe to Comments for "using normalmap plug-in for a batch process"