Ubuntu Jaunty (9.04) Server

I need to do some server-side image scripting that apparently only GIMP is able to do.

I'd hate to install X Window and GTK only for that.

Is there a way to install GIMP without all that bloat, so it may work from command-line only?

(A silly question, I know, but perhaps there is a hope?)

3 Answers 3


There is a difference between installing an actual X server, and just the libraries involved (libgtk, Xlib, etc.). I have tried to compile GIMP, and while I can do it without an X server installed, I do still need libgtk, Xlib, and all that installed for it to compile, despite playing with several ./configure flags. ./configure does not recognise flags such as --without-gegl or --without-x11.

I have come to the conclusion that the answer to this question is that it is not possible. However, I don't think it's as bad as it sounds. Chances are you already have a server application running that uses GLib or something.

  • Thanks. I'm probably fine with installing X server as long as I do not have to actually run it... I admit I'm a bit unsure on the subject. Aug 1, 2009 at 10:56

GIMP Batch Mode

The install steps here for the Hardy Ubuntu are on command line.
However, I am not quite sure you can get by without a GTK install... Is that necessary?

Actually, there seems to be a nogtk install option. Have not tried it.

As an extreme alternative, have you considered the portable gimp on a flash drive
maybe used from a separate windows installation for the purpose?

  • I know that it is possible to run and control Gimp from command-line. But is it possible to install it without X Window and GTK? Jul 31, 2009 at 7:59
  • Yes, I'd like to avoid installing X Window and GTK on my server. Aug 1, 2009 at 10:22
  • Also: what do you mean by "a separate Windows installation"? Aug 1, 2009 at 10:23
  • But a 'separate Windows installation', i meant you could copy the data across to another windows system where you could even use a portable GIMP edition to work. You have the install on your flash drive and none on either of the machines. I don't think you can have a flash installation of GIMP usable in Linux easily (that is the reason for the separate Windows reference).
    – nik
    Aug 2, 2009 at 2:20

It's not quite what you asked but have you looked into ImageMagik. It has always been my solution of choice for command-line editing of image (specially for batch processing).

Here is the reference for installing it in ubuntu


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .