David’s Batch Processor is a simple GUI based plug-in for GIMP that allows you to perform a number of processing tasks (like resizing, changing orientation, batch file renaming) to a large number (or small number) of pictures at once. If you upload photos to the web, you do this all the time. If you don’t have millions of dollars to buy PhotoShop (or ethical problems with ‘borrowing’ it), then GIMP is a pretty good solution.

I had some trouble finding (clear) instructions on how to install the plug-in, so after some trial and error (and a lot of help from my own personal tech support guru, Steve) it’s now up and running. Here are some simple instructions to get it installed in one quick run.

I did the following in Ubuntu Linux (both in Edgy Eft and Fesity Fawn) and it worked just fine.

1. Download the tgz file to your desktop.
2. Open a terminal, and run the following:

sudo apt-get install libgimp2.0-dev gcc cpp g++

3. You may be prompted for a Yes/No answer here (confirming the use of hard drive space). Just type ‘y’ and hit enter. Then, enter the following:

cd /usr/src/

4. In the next command, substitute “[username]” with your username. Then continue, entering the following commands in turn each time you get a fresh command prompt.

sudo tar -xvzf /home/[username]/Desktop/dbpSrc-1-1-5.tgz
cd dbp-1.1.5
make
make install

5. Once all that is done, open up GIMP and go to [UPDATE Jan.2012: Filters>>Batch Process] . From the dropdown, select Batch Process and the world is your oyster!

Let me know if this works well for you.

44 Responses to “Installing “David’s Batch Processor” for GIMP in Ubuntu Linux”
  1. Does this mean that we are closer to seeing the great series of pics of Felicity falling off the rock wall?

  2. Mere days, my good friend. They should be up this weekend.

  3. Worked great for me.

    Thanks

    SneakPeak

  4. i need instructions for fedora / redhat based distros

    plz, just did fresh f11 install and i have all materials, the gimp-devel package, the gimp itself and all the gcc and GTK+ shizz but the makefiles aren’t working for me…

  5. I think it worked… that means you saved the day!!! btw, current version is 1.1.9 so that changes the commands, but if I figured it out, anyone else should be able to. Thanks a bunch!

  6. @Aaron: I was able to get this working on my F10 install by making sure I had all the proper packages (sounds like you have done that). The gimp-devel one was the only one I had to add.

    The only other difference is that I had to run the ‘make’ as the su and then I could run ‘make install’ as my normal user.

  7. I have tried the above but it is not working for me. When I do the Make command I get:

    g++ -o dbp -Wall -O2 -I. *.cc -D_REENTRANT -I/usr/include/gimp-2.0 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpconfig-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -DGTK_DISABLE_DEPRECATED
    dbp.cc: In function ‘void query()’:
    dbp.cc:82: warning: deprecated conversion from string constant to ‘gchar*’
    dbp.cc:82: warning: deprecated conversion from string constant to ‘gchar*’
    gui.cc: In constructor ‘Dbp::GtkCBBase::GtkCBBase(GtkObject*, std::string)’:
    gui.cc:71: error: ‘GtkSignalFunc’ was not declared in this scope
    gui.cc:71: error: expected `;’ before ‘fn’
    gui.cc:72: error: argument of type ‘void (Dbp::GtkCBBase::)()’ does not match ‘void (*)()’
    gui.cc: In member function ‘GtkObject* Dbp::Gui::add(Dbp::ControlLayout&, const std::string&, float&, float, float, int)’:
    gui.cc:120: error: ‘GtkSignalFunc’ was not declared in this scope
    gui.cc: In member function ‘GtkObject* Dbp::Gui::add(Dbp::ControlLayout&, const std::string&, gdouble&, float, float, int)’:
    gui.cc:133: error: ‘GtkSignalFunc’ was not declared in this scope
    gui.cc: In member function ‘void Dbp::Gui::add(Dbp::ControlLayout&, const std::string&, int&, int, int)’:
    gui.cc:144: error: ‘GtkSignalFunc’ was not declared in this scope
    gui.cc: In member function ‘void Dbp::Gui::addItem(GtkWidget*, std::string, int*, int&)’:
    gui.cc:162: error: ‘GtkSignalFunc’ was not declared in this scope
    gui.cc: In static member function ‘static GtkWidget* Dbp::Gui::checkButtonFor(bool&)’:
    gui.cc:225: error: ‘GtkSignalFunc’ was not declared in this scope
    gui.cc: In member function ‘virtual GtkWidget* Dbp::RenameGui::build()’:
    gui.cc:846: error: ‘gtk_file_selection_new’ was not declared in this scope
    gui.cc:849: error: ‘GtkFileSelection’ was not declared in this scope
    gui.cc:849: error: ‘fs’ was not declared in this scope
    gui.cc:849: error: ‘GTK_FILE_SELECTION’ was not declared in this scope
    gui.cc:857: error: ‘gtk_file_selection_hide_fileop_buttons’ was not declared in this scope
    gui.cc: In member function ‘void Dbp::RenameGui::okDirSelector()’:
    gui.cc:952: error: ‘GTK_FILE_SELECTION’ was not declared in this scope
    gui.cc:952: error: ‘gtk_file_selection_get_filename’ was not declared in this scope
    gui.cc: In member function ‘virtual GtkWidget* Dbp::OutputGui::build()’:
    gui.cc:1016: warning: dereferencing type-punned pointer will break strict-aliasing rules
    gui.cc: In member function ‘virtual GtkWidget* Dbp::DbpGui::build()’:
    gui.cc:1112: error: ‘GTK_SIGNAL_FUNC’ was not declared in this scope
    op.cc: In member function ‘virtual bool Dbp::InputOp::execute(int&, int&, Dbp::Location&)’:
    op.cc:127: error: ‘strcpy’ was not declared in this scope
    make: *** [dbp] Error 1

    So then I try the Make Install command and I get:

    g++ -o dbp -Wall -O2 -I. *.cc -D_REENTRANT -I/usr/include/gimp-2.0 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpconfig-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -DGTK_DISABLE_DEPRECATED
    dbp.cc: In function ‘void query()’:
    dbp.cc:82: warning: deprecated conversion from string constant to ‘gchar*’
    dbp.cc:82: warning: deprecated conversion from string constant to ‘gchar*’
    gui.cc: In constructor ‘Dbp::GtkCBBase::GtkCBBase(GtkObject*, std::string)’:
    gui.cc:71: error: ‘GtkSignalFunc’ was not declared in this scope
    gui.cc:71: error: expected `;’ before ‘fn’
    gui.cc:72: error: argument of type ‘void (Dbp::GtkCBBase::)()’ does not match ‘void (*)()’
    gui.cc: In member function ‘GtkObject* Dbp::Gui::add(Dbp::ControlLayout&, const std::string&, float&, float, float, int)’:
    gui.cc:120: error: ‘GtkSignalFunc’ was not declared in this scope
    gui.cc: In member function ‘GtkObject* Dbp::Gui::add(Dbp::ControlLayout&, const std::string&, gdouble&, float, float, int)’:
    gui.cc:133: error: ‘GtkSignalFunc’ was not declared in this scope
    gui.cc: In member function ‘void Dbp::Gui::add(Dbp::ControlLayout&, const std::string&, int&, int, int)’:
    gui.cc:144: error: ‘GtkSignalFunc’ was not declared in this scope
    gui.cc: In member function ‘void Dbp::Gui::addItem(GtkWidget*, std::string, int*, int&)’:
    gui.cc:162: error: ‘GtkSignalFunc’ was not declared in this scope
    gui.cc: In static member function ‘static GtkWidget* Dbp::Gui::checkButtonFor(bool&)’:
    gui.cc:225: error: ‘GtkSignalFunc’ was not declared in this scope
    gui.cc: In member function ‘virtual GtkWidget* Dbp::RenameGui::build()’:
    gui.cc:846: error: ‘gtk_file_selection_new’ was not declared in this scope
    gui.cc:849: error: ‘GtkFileSelection’ was not declared in this scope
    gui.cc:849: error: ‘fs’ was not declared in this scope
    gui.cc:849: error: ‘GTK_FILE_SELECTION’ was not declared in this scope
    gui.cc:857: error: ‘gtk_file_selection_hide_fileop_buttons’ was not declared in this scope
    gui.cc: In member function ‘void Dbp::RenameGui::okDirSelector()’:
    gui.cc:952: error: ‘GTK_FILE_SELECTION’ was not declared in this scope
    gui.cc:952: error: ‘gtk_file_selection_get_filename’ was not declared in this scope
    gui.cc: In member function ‘virtual GtkWidget* Dbp::OutputGui::build()’:
    gui.cc:1016: warning: dereferencing type-punned pointer will break strict-aliasing rules
    gui.cc: In member function ‘virtual GtkWidget* Dbp::DbpGui::build()’:
    gui.cc:1112: error: ‘GTK_SIGNAL_FUNC’ was not declared in this scope
    op.cc: In member function ‘virtual bool Dbp::InputOp::execute(int&, int&, Dbp::Location&)’:
    op.cc:127: error: ‘strcpy’ was not declared in this scope
    make: *** [dbp] Error 1

    What am I doing wrong. Everything seems to be working up to the make command

  8. Are you using the new version? Try downloading it here:
    http://www.ozemail.com.au/~hodsond/dbpSrc-1-1-9.tgz

    After that, try following the instructions above but using ‘1.1.9’ instead of ‘1.1.5’ everywhere.

    There have been some GTK related fixes in the more recent versions.

  9. thanks to you and later posts this Linux newbie was able to install the plugin with no hassles and it works great.

  10. This almost worked for me, using karmic. A coulpe of variations I had to do though.

    1. Had to install libgimp2.0-dev separately using sudo aptitude install libgimp2.0-dev – for some reason doing it with g++ at start didn’t work.
    2. had to use sudo make to get that part to work

    One day I might get to figure out what it all means! Until then, thanks very much for the tutorial 🙂

  11. Thanks for the instructions.

    XTNS menu has been removed. Found the batch processing extension under Filters menu.

  12. I get much of the same as jason up to the ‘make’ part.

    up to DGTK_DISABLE_DEPRECATED is the same, then i get this:
    /usr/bin/ld: cannot open output file dbp: Permission denied
    collect2: ld returned 1 exit status
    make: *** [dbp] Error 1

    I’m installing dbp 1.1.9 on ubuntu 10, and know nothing about linux coding. what is going on here?

  13. Thanks. Worked for me with a few changes.

    1) Take ownership of the extracted files (right-click and change permissions, owner)
    2) A line in the Makefile needs to be commented out (got this from another website)
    NODEPS = -DGTK_DISABLE_DEPRECATED (Comment out this line with a #)

    The rest of the install went smoothly.

    Thanks very much!

  14. This is a very late reply, but for those with Chris’s problem:

    sudo make
    make install

    that should give you permission, and don’t forget to add # to NODEPS = -DGTK_DISABLE_DEPRECATED in the make install file (you can find the file in /usr/src/dbp-1.1.x

  15. Thanks a lot for the posts and the tutorial.

    It worked out all fine (when replacing 1.1.5 by version 1.1.9) for me as a beginner.

  16. hello, I had the same problem and the solution was install libgimp2.0-dev gcc cpp g++ but still had the following error:

    Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc’ to the PKG_CONFIG_PATH environment variable No package ‘gtk+-2.0’ found..

    I just resolving this through:

    sudo aptitude install libgtk2.0-dev

    I tried again and it worked.

    Best regards

  17. Thank you. It worked perfectly although some changes had to be made for the respective version.

  18. I’m glad it helped, Rissa. Since I haven’t updated this post in a while, it’s bound to be out of date in version numbers etc. Feel free to leave a comment with the changes you had to make for anyone else who is having trouble.
    Thanks!

  19. Hello.
    My dbp-1.1.9 install finally went through after applying the changes above (thanks to all!)
    But when I opened up GIMP, I can’t see the XTNS on the menu bar.
    Any ideas?
    I’m using Ubuntu 10.10 and GIMP 2.6

  20. Fantastic!

    Thanks so much for the clear instructions. Much appreciated.

  21. No xtns in gimp 2.6. Batch process is in the filters menu.

  22. Thanks a lot, that works for my Ubuntu 10.10 and GIMP 2.6! But there is no XNTS on the menu bar, use Fiters->Batch Process.. instead!

  23. Thanks for the update, Newbie!

  24. Thanks a lot for this I am going to try the GIMP solution to see how it works on my laptop.

  25. Thank you Dave!

    Simply great explanation! Worked perfect in Ubuntu 12.04 with GIMP 2.6.12

  26. Being a beginner who doesn’t master command lines – indeed, all the suggestions mentionned above failed, but I guess that was because I did something wrong – yet I succeeded to get “David’s Batch Processor” (and other plug-ins) into my Gimp (Ubuntu 12.04 with GIMP 2.6.12) thanks to one command:

    “sudo apt-get install gimp-plugin-registry”.

    Hope it’ll help!

  27. I allways get this error in the console “Failed to execute child process “/usr/lib/gimp/2.0/plug-ins/dbp” (Permission denied)”

    Must deploy it with:

    sudo make install-admin
    sudo chmod 755 /usr/lib/gimp/2.0/plug-ins/dbp

  28. Everything seems to work fine with the installation, and the dbp is in the plug-ins folder in gimp, but then there is no “Batch” in the “Filter” menu.

    This is in gimp 2.6.12 under Linux Mint 13 with Mate.

    Previously, in Ubuntu, David’s batch processor could be installed from the software center, and after that the batch processor was appearing in the “Filter” menu.

    Would anyone know why the batch processor is absent in the menus, even though the plugin is installed?

  29. could not install batch 1.1.9 on GIMP 2.8

  30. I tried everything to get dbp into my Filters dropdown, there was no error in the terminal, and I still couldn’t get it to show up until I tried Cha’s suggestion. And now it works perfectly!

  31. Paul Sandel says:

    Thanks for the tip! Other than changing the file name, download location, and using sudo make (make install as regular user), worked exactly as described

  32. I have Kubuntu 12.04.1 and GIMP 2.6.12 and am getting the same dialogue in the terminal at “make” as Chris on 1 July 10. I don’t quite understand Amit’s answer. On step 1, root appears to own the directory but I own the DBP files. Is it simply a question right-clicking each file and checking the “is executable” box in Properties>Permission, or do I have to do something in a terminal – if so what? I don’t understand step 2 – please would someone give an idiot’s guide?

  33. I have now cracked this, and posted what I did to http://askubuntu.com/questions/224231/how-do-i-add-dbp-to-gimp/226414#226414.

    Many thanks, Dave, for an excellent extra.

  34. Worked fine after looking at the comments!!! This from a newbie at Linux : Tnx to all posting here!

  35. Christopher says:

    Cha’s method worked for me – I was getting a number of errors. Thank you, Cha. Thanks Dave for starting the thread.

    Now, does anyone know about getting Dbp working on the Windows 8 side?

  36. I am needing to get 1.1.9 working on the new GIMP 2.8. I can’t remember how I even installed in in 2.6 for that matter.

    I’m using Windows, so the above is all gibberish to me. Here’s hoping someone can help us out.

  37. Didn’t work for me. No error messages, but when I start Gimp no batch processor to be found. In the past did manage to install dbp on several ubuntus. Am at a loss what I’m doing wrong.

  38. I’ve used dbp-1.1.9 at Ubuntu 12.04 LTS
    It’s works! Thanks

  39. Had the error message but worked with the “sudo make” command.

    Thanks!

  40. […] This answer was updated by author in early 2012 … […]

  41. viagra ersatz ohne rezept

     Behandlung der erektilen Dysfunktion in Deutschland Sind Sie müde von den Störungen des Geschlechtssystems? Spüren Sie das Gefühl des Unbehagens beim Koitus? Effektive Präparate zur Verstärkung der Potenz werden dieses Problem für immer lösen! Internet-Apotheke ABDA bietet Ihnen ein großes Sortiment an Mitteln an, die die Potenz steigern. In unserer Apotheke finden Sie verschiedene Präparate: Viagra, Levitra, Cialis und vieles mehr . Sie haben Sie die Möglichkeit jedes Präparat bei uns in der | Internet-Apotheke | Online-Apotheke} 10-15% günstiger als irgendwo sonst kaufen und Hauptsache, ohne Rezept von einem Doktor.

    levitra rezeptfrei kaufen

    п»ї Unsere Apotheke ist ganztГ¤gig zu erreichen und wir arbeiten ohne Feiertage. Lieferung der gekauften bei uns in der Internet-Apotheke Produkten erfolgt an jeden beliebigen Ort. Sie haben die MГ¶glichkeit jedes beliebige PrГ¤parat, das die Potenz verstГ¤rkt entweder auf der Internetressource oder per Telefon mit unseren Manager unter der Nummer, die auf der Seite der Internet-Apotheke vermerkt ist, bestellen. Bei uns Apotheke werden sofort wirkende PrГ¤parate angeboten – sie steigern die Potenz im nГ¶tigen fГјr Sie Moment und auch diejenigen PrГ¤parate, die es ermГ¶glichen dieses Problem ein fГјr alle Mal zu beheben. Wir garantieren , dass die Wirkung nach der Einnahme von unseren Mitteln positiv wird. Neue Kunden haben eine MГ¶glichkeit Testpackung von allen Mitteln bestellen . In unserem Sortiment gibt es Arzneien wie fГјr MГ¤nner, als auch fГјr die Frauen .

    rezeptfreies potenzmittel

  42. potenzmittel ohne rezept billig

     Geschwächte Potenz für immer heilen Leiden Sie unter Dysfunktion des Geschlechtssystems? Sind Sie müde von dem Gefühl des Unbehagens beim Koitus? Unsere Mittel zur Verstärkung der Potenz werden dieses Problem für immer lösen! Online-Apotheke ABDA bietet Ihnen ein großes Sortiment an Mitteln an, die die Potenz erhöhen . In unserer Apotheke finden Sie zahlreiche Mittel : Viagra, Levitra, Cialis und vieles mehr . Sie können jedes Präparat bei uns in der | Internet-Apotheke | Online-Apotheke} 10-15% günstiger als irgendwo sonst kaufen und was am wichtigsten ist , ohne Rezept von einem Arzt .

    medikamente gegen impotenz

    п»ї Wir sind rund um die Uhr zu erreichen und wir arbeiten ohne Feiertage. Lieferung der erworbenen in unserer Internet-Apotheke Produkten erfolgt an jeden beliebigen Ort. Sie haben die MГ¶glichkeit jedes PrГ¤parat, das die Potenz verstГ¤rkt unmittelbar auf der Seite oder per Telefon mit unseren Manager unter der Nummer, die auf dem Internetportal der Internet-Apotheke angegeben ist, bestellen. Bei uns Apotheke werden schnell wirkende PrГ¤parate angeboten – sie verstГ¤rken die Potenz wichtigen fГјr Sie Moment und auch diejenigen PrГ¤parate, mГ¶glich machen dieses Problem ein fГјr alle Mal zu beheben. Wir geben unser Wort, dass die Wirkung nach der Einnahme von unseren Mitteln 100% wird. Neue Kunden haben eine MГ¶glichkeit Testpackung von allen Mitteln kaufen. In unserem Sortiment finden Sie Arzneimittel wie fГјr MГ¤nner, als auch fГјr die Frauen .

    super kamagra online bestellen

  43. levitra 10mg preis

    Potenzmittel in Deutschland Sind Sie müde von den Störungen des Geschlechtssystems? Spüren Sie das Gefühl des Unbehagens in intimen Situationen ? Wirkungsvolle Mittel zur Erhöhung der Potenz können dieses Problem ein für alle Mal lösen! Online-Apotheke ABDA bietet Ihnen ein reiches Sortiment an Arzneimitteln an, die die Potenz steigern. Bei uns im Geschäft gibt es verschiedene Mittel : Viagra, Levitra, Cialis und viele andere. Sie haben Sie die Möglichkeit jedes beliebige Präparat in unserer | Internet-Apotheke | Online-Apotheke} 10-15% günstiger als woanders bestellen und was am wichtigsten ist , ohne Verschreibung von einem Arzt .

    cialis preisvergleich generika

    п»ї Unsere Apotheke ist ganztГ¤gig zu erreichen und wir arbeiten ohne Feiertage. Lieferung der gekauften in unserer Online-Apotheke Produkten geht innerhalb des Landes . Sie kГ¶nnen jedes PrГ¤parat, das die Potenz verstГ¤rkt entweder auf der Seite oder telefonisch mit unseren Spezialisten unter der Nummer, die auf der Internetressource der Internet-Apotheke vermerkt ist, bestellen. In unserer Apotheke werden sofort wirkende PrГ¤parate angeboten – sie steigern die Potenz wichtigen fГјr Sie Moment und auch diejenigen PrГ¤parate, mГ¶glich machen dieses Problem ein fГјr alle Mal zu beheben. Wir garantieren , dass die Wirkung nach der Einnahme von unseren Mitteln 100% wird. Neue Kunden haben eine MГ¶glichkeit Testpackung von allen PrГ¤paraten erwerben . Bei uns im Sortiment gibt es Arzneien wie fГјr MГ¤nner, als auch fГјr die Frauen .

    potenzmittel direktan

  44. Hi blogger, i must say you have very interesting articles here.

    Your page can go viral. You need initial traffic only. How
    to get it? Search for; Mertiso’s tips go viral

Leave a Reply