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

GIMP Scripting from the CLI

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.

7 of 7 messages available
Toggle history

Please log in to manage your subscriptions.

GIMP Scripting from the CLI Joseph A. Nagy, Jr 21 Jun 07:14
  GIMP Scripting from the CLI Alvin Hikmawan S.Psi. 21 Jun 19:06
   GIMP Scripting from the CLI Joseph A. Nagy, Jr 21 Jun 19:13
  GIMP Scripting from the CLI Pat David 21 Jun 19:26
   GIMP Scripting from the CLI Joseph A. Nagy, Jr 21 Jun 19:31
    GIMP Scripting from the CLI Pat David 21 Jun 19:37
    GIMP Scripting from the CLI Liam R E Quin 22 Jun 00:59
Joseph A. Nagy, Jr
2013-06-21 07:14:09 UTC (over 11 years ago)

GIMP Scripting from the CLI

Hey All,

I have about 160-ish images I scanned in as .tif's (my scanner offers .bmp, .jpg, .png, and .tif for saving scanned images as) @ 300-dpi. I'd like to batch export them all to .xcf (for future working with) and .png (I know I could have chose png to start but I thought .tif would be the better choice as a first format). Is it possible to do this with a shell-script? I'm fairly certain I could concoct something to .tif -> .png using ImageMagick (I don't think it supports .xcf) but I'd like to use The GIMP for the whole process if possible, and I'd rather not do it by hand. As it is I'm going to have to figure out how to batch-rename (well, I know how I'm going to do it, a shell script, but how to write it is going to be the tough part for me) about 100 if the images to prepend a 0 to the file name (I started with a two-digit numbering system not realizing I had so many images and would like to keep all the names listing properly on FreeBSD).

Anyway, I'm just interested in knowing from you guys if such a shell export-to-xcf-and-png script is even possible (I really, really do not want to do this manually).

Yours in Christ,

Joseph A Nagy Jr
"Whoever loves instruction loves knowledge, But he who hates correction
is stupid." -- Proverbs 12:1
Emails are not formal business letters, whatever businesses may want.
Original content CopyFree (F) under the OWL 
http://copyfree.org/licenses/owl/license.txt
Alvin Hikmawan S.Psi.
2013-06-21 19:06:56 UTC (over 11 years ago)

GIMP Scripting from the CLI

I 'm using GIMP 2.6 and when I wanna resizing a lot of pictures, i use "david's batch processor" feature. filter->batch. In the last tab of the window, you can pick the output file type (I think the *.png is in the list).
Just try to playing with the feature some while, to get used to with it.

I hope it can help you solving your converting problem. On Jun 22, 2013 12:24 AM, "Joseph A. Nagy, Jr" wrote:

Hey All,

I have about 160-ish images I scanned in as .tif's (my scanner offers .bmp, .jpg, .png, and .tif for saving scanned images as) @ 300-dpi. I'd like to batch export them all to .xcf (for future working with) and .png (I know I could have chose png to start but I thought .tif would be the better choice as a first format). Is it possible to do this with a shell-script? I'm fairly certain I could concoct something to .tif -> .png using ImageMagick (I don't think it supports .xcf) but I'd like to use The GIMP for the whole process if possible, and I'd rather not do it by hand. As it is I'm going to have to figure out how to batch-rename (well, I know how I'm going to do it, a shell script, but how to write it is going to be the tough part for me) about 100 if the images to prepend a 0 to the file name (I started with a two-digit numbering system not realizing I had so many images and would like to keep all the names listing properly on FreeBSD).

Anyway, I'm just interested in knowing from you guys if such a shell export-to-xcf-and-png script is even possible (I really, really do not want to do this manually).
--
Yours in Christ,

Joseph A Nagy Jr "Whoever loves instruction loves knowledge, But he who hates correction is stupid." -- Proverbs 12:1
Emails are not formal business letters, whatever businesses may want. Original content CopyFree (F) under the OWL http://copyfree.org/licenses/* *owl/license.txt
______________________________**_________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/**mailman/listinfo/gimp-user-** list

Joseph A. Nagy, Jr
2013-06-21 19:13:58 UTC (over 11 years ago)

GIMP Scripting from the CLI

On 06/21/13 14:06, Alvin Hikmawan S.Psi. wrote:

I 'm using GIMP 2.6 and when I wanna resizing a lot of pictures, i use "david's batch processor" feature. filter->batch. In the last tab of the window, you can pick the output file type (I think the *.png is in the list).
Just try to playing with the feature some while, to get used to with it.

I hope it can help you solving your converting problem.

Sorry, I should have mentioned I'm using Gimp 2.8.4.

Always forgetting the one key piece of info. Good rule learned from this? Never try to email at 2:30 in the morning after two cups of weak coffee and 2.5 hours of scanning. ;)

Yours in Christ,

Joseph A Nagy Jr
"Whoever loves instruction loves knowledge, But he who hates correction
is stupid." -- Proverbs 12:1
Emails are not formal business letters, whatever businesses may want.
Original content CopyFree (F) under the OWL 
http://copyfree.org/licenses/owl/license.txt
Pat David
2013-06-21 19:26:27 UTC (over 11 years ago)

GIMP Scripting from the CLI

I'm curious, why the desire to batch-export to .xcf? You can batch directly to .png and/or leave the .tif as they are, and allow GIMP to import them when you want to work on them (and _then_ save to .xcf as you work).

On Fri, Jun 21, 2013 at 2:14 AM, Joseph A. Nagy, Jr wrote:

Hey All,

I have about 160-ish images I scanned in as .tif's (my scanner offers .bmp, .jpg, .png, and .tif for saving scanned images as) @ 300-dpi. I'd like to batch export them all to .xcf (for future working with) and .png (I know I could have chose png to start but I thought .tif would be the better choice as a first format). Is it possible to do this with a shell-script? I'm fairly certain I could concoct something to .tif -> .png using ImageMagick (I don't think it supports .xcf) but I'd like to use The GIMP for the whole process if possible, and I'd rather not do it by hand. As it is I'm going to have to figure out how to batch-rename (well, I know how I'm going to do it, a shell script, but how to write it is going to be the tough part for me) about 100 if the images to prepend a 0 to the file name (I started with a two-digit numbering system not realizing I had so many images and would like to keep all the names listing properly on FreeBSD).

Anyway, I'm just interested in knowing from you guys if such a shell export-to-xcf-and-png script is even possible (I really, really do not want to do this manually).
--
Yours in Christ,

Joseph A Nagy Jr "Whoever loves instruction loves knowledge, But he who hates correction is stupid." -- Proverbs 12:1
Emails are not formal business letters, whatever businesses may want. Original content CopyFree (F) under the OWL http://copyfree.org/licenses/* *owl/license.txt
______________________________**_________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/**mailman/listinfo/gimp-user-** list

Joseph A. Nagy, Jr
2013-06-21 19:31:29 UTC (over 11 years ago)

GIMP Scripting from the CLI

On 06/21/13 14:26, Pat David wrote:

I'm curious, why the desire to batch-export to .xcf? You can batch directly to .png and/or leave the .tif as they are, and allow GIMP to import them when you want to work on them (and _then_ save to .xcf as you work).

I only saved to tif because I used the printer software's scan function which only offered bmp, jpg, tif, and png as out-put options. I felt tif would be 'good enough' until I could get them set up on my laptop (my wife's computer doesn't have The GIMP, space is at a premium on her machine atm and just no room or justification for a program she won't use). Once I have them in xcf, the tif's will go away. Maybe. I dunno. It sounded like a good idea at 2:30 this morning.

*walks away for more coffee*

Yours in Christ,

Joseph A Nagy Jr
"Whoever loves instruction loves knowledge, But he who hates correction
is stupid." -- Proverbs 12:1
Emails are not formal business letters, whatever businesses may want.
Original content CopyFree (F) under the OWL 
http://copyfree.org/licenses/owl/license.txt
Pat David
2013-06-21 19:37:00 UTC (over 11 years ago)

GIMP Scripting from the CLI

I would leave the tifs alone as your original/base files, and only convert to xcf as you need for processing them. No need to double your disk usage just to have them ahead of time (it will happen as you touch them anyway, assuming you save them as xcf after processing)...

On Fri, Jun 21, 2013 at 2:31 PM, Joseph A. Nagy, Jr wrote:

On 06/21/13 14:26, Pat David wrote:

I'm curious, why the desire to batch-export to .xcf? You can batch directly to .png and/or leave the .tif as they are, and allow GIMP to import them when you want to work on them (and _then_ save to .xcf as you work).

I only saved to tif because I used the printer software's scan function which only offered bmp, jpg, tif, and png as out-put options. I felt tif would be 'good enough' until I could get them set up on my laptop (my wife's computer doesn't have The GIMP, space is at a premium on her machine atm and just no room or justification for a program she won't use). Once I have them in xcf, the tif's will go away. Maybe. I dunno. It sounded like a good idea at 2:30 this morning.

*walks away for more coffee*

-- Yours in Christ,

Joseph A Nagy Jr "Whoever loves instruction loves knowledge, But he who hates correction is stupid." -- Proverbs 12:1
Emails are not formal business letters, whatever businesses may want. Original content CopyFree (F) under the OWL http://copyfree.org/licenses/* *owl/license.txt

Liam R E Quin
2013-06-22 00:59:49 UTC (over 11 years ago)

GIMP Scripting from the CLI

On Fri, 2013-06-21 at 14:31 -0500, Joseph A. Nagy, Jr wrote:

I felt tif
would be 'good enough' until I could get them set up on my laptop

It probably was, although png files are often a lot smaller in practice.

If the images are important, save the png files: xcf is not really a good archival format.

Liam

Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml