Yes, I want to use GIMP to create a transparent image with some text on my Ubuntu box. Please help.
Asked
Active
Viewed 1,570 times
2
-
Do you really need gimp? Otherwise have a look at [imagemagick](http://www.imagemagick.org) – Ocaso Protal Jun 12 '12 at 11:52
-
For an Imagemagick solution read: http://www.imagemagick.org/Usage/text/ – Ocaso Protal Jun 12 '12 at 12:00
1 Answers
1
You can call GIMP from the command line with a single "script-fu" expression, using the -b switch (for "batch").
Creating an image with some text in GIMP is a multi-step process, you will have to:
- create an image
- create the text layer
- add the text layer to the image
- adjust image size to the layer size
- save the image
Each of these steps is a call to GIMP's PDB API, as can be browsed by going to Help->Procedure Browser
There are "logo" scripts that automate steps 1-4, and add some (sometimes) nice effects, as the script-fu-basic1-logo procedure - but it won't save the image to file in the same step.
Threfore, you have to write a small scheme - or Python - script to perform all the steps you want to, and invoke GIMP on the command line calling this script of yours.

jsbueno
- 99,910
- 10
- 151
- 209
-
Never thought it would be so difficult to create an image with some text using GIMP in CLI, phew. Thanks @jsbueno. – Rakesh Sankar Jun 13 '12 at 05:21
-