Gimp-Forum.net
Batch Processing from saved Curve - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+--- Thread: Batch Processing from saved Curve (/Thread-Batch-Processing-from-saved-Curve)



Batch Processing from saved Curve - aKAndrew1234 - 06-26-2019

I am trying to batch process some files, using the Python console
PHP Code:
GIMP 2.10.2 Python Console
Python 2.7.12 
(default, Feb 17 201816:52:07
[
GCC 6.2.0]
cur '/home/back-office/.var/app/org.gimp.GIMP/config/GIMP/2.10/curves/26-06-2019'
dir '/home/back-office/Desktop/Old_Desktop/Desktop/image_works/newimages'
ext '.JPG'
pdb.python_fu_CurveBatch(dirextcur
using this I get an error...

PHP Code:
Curve Warning
/home/back-office/Desktop/Old_Desktop/Desktop/image_works/newimages
don
't have files to handle 
Files are located in the folders with upper case .JPG any pointers to what could be going wrong ?


RE: Batch Processing from saved Curve - Kevin - 06-26-2019

A hint when asking questions about script/plugins, supply the source of the script/plugin as otherwise you make us search the internet for random information that might apply.

With that said, the following is based on the assumption that the "CurveBatch" you're talking about is from here: http://gimpfr.org/contrib_photolabo.php#CurveBatch

You need to specify the file extension as JPG not .JPG


RE: Batch Processing from saved Curve - aKAndrew1234 - 06-28-2019

Thank you for your response, I thought this was part of core GIMP batch mode, not a plugin. I couldn't get the plugin to work with 2.10, so looked into command line batch mode. I have been able to edit the code in the plugin to work with 2.10.

In the script file http://gimpfr.org/contrib_photolabo.php#CurveBatch on line 54 it needed to be changed to :

PHP Code:
Line 54 

if lines[0] == "# GIMP curves tool settings\n":

change to

if 
lines[0] == "# GIMP 'Curves' settings\n"

As the new GIMP Curve export file has changed the title of the file within the curve file.