RSS/Atom feed Twitter
Site is read-only, email is disabled

save image to jpeg format in batch mode

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

11 of 11 messages available
Toggle history

Please log in to manage your subscriptions.

save image to jpeg format in batch mode B.W.H. van Beest 18 Jun 08:18
  save image to jpeg format in batch mode saulgoode@brickfilms.com 18 Jun 12:19
   save image to jpeg format in batch mode B.W.H. van Beest 18 Jun 13:43
    save image to jpeg format in batch mode saulgoode@brickfilms.com 18 Jun 22:08
  save image to jpeg format in batch mode T F 18 Jun 19:22
  save image to jpeg format in batch mode Alan Horkan 18 Jun 19:40
   save image to jpeg format in batch mode B.W.H. van Beest 20 Jun 06:06
    save image to jpeg format in batch mode T F 20 Jun 06:38
    save image to jpeg format in batch mode David Hodson 20 Jun 10:42
    save image to jpeg format in batch mode Alan Horkan 21 Jun 15:06
save image to jpeg format in batch mode B.W.H. van Beest 18 Jun 13:37
B.W.H. van Beest
2006-06-18 08:18:25 UTC (almost 18 years ago)

save image to jpeg format in batch mode

Hi,

I would like to create a jpg image from a gimp xsf-file, but in batch mode. (for instance, to have it as a rule in a Makefile) I have been struggling with this for quite some time, but all attempt have failed. Browsing the web did not yield workabale references or examples. It seems that info on script-fu all is outdated?

Is there somebody around who can who me how to do this?

Kind Regards, Bertwim van Beest

saulgoode@brickfilms.com
2006-06-18 12:19:29 UTC (almost 18 years ago)

save image to jpeg format in batch mode

The GIMP.ORG (http://gimp.org/tutorials/Basic_Batch) tutorial seems to be up-to-date and covers just about all that you need to know. Also, have you visited GIMPtalk.com and searched for the term "batch". That should provide some good examples that do almost exactly that which you described.

If you have any specific questions, I shall be happy to try to answer them.

Quoting "B.W.H. van Beest" :

I would like to create a jpg image from a gimp xsf-file, but in batch mode. (for instance, to have it as a rule in a Makefile) I have been struggling with this for quite some time, but all attempt have failed. Browsing the web did not yield workabale references or examples. It seems that info on script-fu all is outdated?

Is there somebody around who can who me how to do this?

B.W.H. van Beest
2006-06-18 13:37:54 UTC (almost 18 years ago)

save image to jpeg format in batch mode

Sorry, my previous posting contained a type, which can cuase confusion.

Hi,

I would like to create a jpg image from a gimp xcf-file, but in batch mode. (for instance, to have it as a rule in a Makefile) I have been struggling with this for quite some time, but all attempt have failed. Browsing the web did not yield workabale references or examples. It seems that info on script-fu all is outdated?

Is there somebody around who can who me how to do this?

Kind Regards, Bertwim van Beest

B.W.H. van Beest
2006-06-18 13:43:00 UTC (almost 18 years ago)

save image to jpeg format in batch mode

Thanks for your reaction. Well I already had read what your are pointing to, but somehow I am doing something wrong.

For instance, I have a file "blurk.xcf", and I want to create a file "aap.jpg" from this file.

What I type is:

802] test> gimp -i -b '(file_jpeg_save RUN-NONINTERACTIVE "blurk.xcf" 2 "aap.jpg" "aap.jpg" 80.0 0.0 0)' '(gimp-quit 0)' No batch interpreter specified, using the default 'plug_in_script_fu_eval'. batch command: experienced an execution error. [803] test>

What am I doing wrong?

Regards, Bertwim

saulgoode@brickfilms.com wrote:

The GIMP.ORG (http://gimp.org/tutorials/Basic_Batch) tutorial seems to be up-to-date and covers just about all that you need to know. Also, have you visited GIMPtalk.com and searched for the term "batch". That should provide some good examples that do almost exactly that which you described.

If you have any specific questions, I shall be happy to try to answer them.

Quoting "B.W.H. van Beest" :

I would like to create a jpg image from a gimp xsf-file, but in batch mode. (for instance, to have it as a rule in a Makefile) I have been struggling with this for quite some time, but all attempt have failed. Browsing the web did not yield workabale references or examples. It seems that info on script-fu all is outdated?

Is there somebody around who can who me how to do this?

T F
2006-06-18 19:22:36 UTC (almost 18 years ago)

save image to jpeg format in batch mode

I would like to create a jpg image from a gimp xsf-file, but in batch mode

Hi, i assume you made a typo and meant xcf. i use a modified (trivially) version of the converter xcf2jpg by Patricio Moracho. for example:

## xcf2jpg pic.xcf pic.jpg

web page is in Spansish, but the open source code is very short and well documented.

http://www.nodigas.com.ar/xcf2jpg_un_conversor_de_xcf_a_jpg

hth

best, mike

Alan Horkan
2006-06-18 19:40:30 UTC (almost 18 years ago)

save image to jpeg format in batch mode

On Sun, 18 Jun 2006, B.W.H. van Beest wrote:

Date: Sun, 18 Jun 2006 08:18:25 +0200 From: B.W.H. van Beest
To: gimp-user@lists.XCF.Berkeley.EDU Subject: [Gimp-user] save image to jpeg format in batch mode

Hi,

I would like to create a jpg image from a gimp xsf-file, but in batch

(I assume you meant to type XCF)

mode. (for instance, to have it as a rule in a Makefile) I have been struggling with this for quite some time, but all attempt have failed. Browsing the web did not yield workabale references or examples. It seems that info on script-fu all is outdated?

You might want to consider Davids batch processor http://members.ozemail.com.au/~hodsond/dbp.html

Using ImageMagick might also be worth considering.

saulgoode@brickfilms.com
2006-06-18 22:08:02 UTC (almost 18 years ago)

save image to jpeg format in batch mode

Quoting "B.W.H. van Beest" :

802] test> gimp -i -b '(file_jpeg_save RUN-NONINTERACTIVE "blurk.xcf" 2 "aap.jpg" "aap.jpg" 80.0 0.0 0)' '(gimp-quit 0)' No batch interpreter specified, using the default 'plug_in_script_fu_eval'. batch command: experienced an execution error. [803] test> What am I doing wrong?

The "image" parameter in any script-fu function is actually a number which is defined when the image is loaded into the GIMP; it is *not* a filename. It is necessary for you to create a short script which loads your file into the GIMP and *then* saves back to disk.

I have written just such a script for you which you can find at http://flashingtwelve.brickfilms.com/GIMP/Scripts/batch-xcf2jpg.scm

The script should be executed from the command line as follows:

gimp --no-interface -b '(batch-xcf2jpg "pattern.ext")' '(gimp-quit 0)'

Where the string ("pattern.ext" in the example) is a wildcard pattern of all of the files which you wish to be converted; the pattern can also be just a specific filename (for example, "someimage.xcf"). The script can be used to convert other formats (PNG, GIF, etc) by changing the extension (the output is always JPEG).

B.W.H. van Beest
2006-06-20 06:06:08 UTC (almost 18 years ago)

save image to jpeg format in batch mode

Hi,

The link you sent seems to be non-existent anymore. However, your suggestion of ImageMagick was perfect. I never realised that ImageMagick supportted .xcf files.
Thanks!

Bertwim

Alan Horkan wrote:

On Sun, 18 Jun 2006, B.W.H. van Beest wrote:

Date: Sun, 18 Jun 2006 08:18:25 +0200 From: B.W.H. van Beest
To: gimp-user@lists.XCF.Berkeley.EDU Subject: [Gimp-user] save image to jpeg format in batch mode

Hi,

I would like to create a jpg image from a gimp xsf-file, but in batch

(I assume you meant to type XCF)

mode. (for instance, to have it as a rule in a Makefile) I have been struggling with this for quite some time, but all attempt have failed. Browsing the web did not yield workabale references or examples. It seems that info on script-fu all is outdated?

You might want to consider Davids batch processor http://members.ozemail.com.au/~hodsond/dbp.html

Using ImageMagick might also be worth considering.

T F
2006-06-20 06:38:21 UTC (almost 18 years ago)

save image to jpeg format in batch mode

suggestion of ImageMagick was perfect. I never realised that ImageMagick supportted .xcf files.

imagemagick v6.2.7 will flatten some multilayer xcf files okay. but in my experience, not others. prior versions of IM always flattened correctly any multilayer xcf that I gave it. so i switched to xcf2jpg

best mike

David Hodson
2006-06-20 10:42:06 UTC (almost 18 years ago)

save image to jpeg format in batch mode

B.W.H. van Beest wrote:

The link you sent seems to be non-existent anymore.

This is why top posting is bad! I assume you are referring to:

Alan Horkan wrote:

You might want to consider Davids batch processor http://members.ozemail.com.au/~hodsond/dbp.html

That link works OK for me (and I'd want to know if it was broken). However, your original message implied that you wanted to do the batch processing from the command line. DBP does batch processing from the Gimp gui.

Alan Horkan
2006-06-21 15:06:52 UTC (almost 18 years ago)

save image to jpeg format in batch mode

On Tue, 20 Jun 2006, B.W.H. van Beest wrote:

Date: Tue, 20 Jun 2006 06:06:08 +0200 From: B.W.H. van Beest
To: Alan Horkan
Cc: gimp-user@lists.XCF.Berkeley.EDU Subject: Re: [Gimp-user] save image to jpeg format in batch mode

Hi,

The link you sent seems to be non-existent anymore. However, your

The link works for me.

You can always try the Google Cache or the web archive if a link doesn't work for you:
http://web.archive.org/*/members.ozemail.com.au/~hodsond/dbp.html

suggestion of ImageMagick was perfect. I never realised that ImageMagick supportted .xcf files.

Other programs are discouraged from supporting XCF and it isn't a fully documented standard or anything so they do well considerin but you should check your files and make sure they results are correct.

Sincerely

Alan Horkan

Inkscape http://inkscape.org Abiword http://www.abisource.com
Open Clip Art http://OpenClipArt.org

Alan's Diary http://advogato.org/person/AlanHorkan/