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

A simple for loop while using Colorize

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.

A simple for loop while using Colorize Atrus 07 Jan 17:30
  A simple for loop while using Colorize Kevin Cozens 07 Jan 18:52
   A simple for loop while using Colorize Atrus 07 Jan 19:39
    A simple for loop while using Colorize Elwin Estle 07 Jan 19:44
    A simple for loop while using Colorize Kevin Cozens 07 Jan 20:04
     A simple for loop while using Colorize Atrus 07 Jan 20:13
  A simple for loop while using Colorize Chris Mohler 07 Jan 19:35
Atrus
2011-01-07 17:30:21 UTC (about 14 years ago)

A simple for loop while using Colorize

I'm looking to loop through and generate individual images by changing the "Hue" variable by 1 (ideally going from 1 - 360) and saving the resulting image.

So, my process is like this:

1. Set x to 1 2. Apply Colorize with Hue = x (all other values are at their default) 3. Save image as x.png
4. Undo to previous state.
5. Increment x by 1
6. Repeat steps 2-5 until x equals 361

What would be the best approach to accomplishing this?

Thanks, Tim

Kevin Cozens
2011-01-07 18:52:44 UTC (about 14 years ago)

A simple for loop while using Colorize

Atrus wrote:

1. Set x to 1
2. Apply Colorize with Hue = x (all other values are at their default) 3. Save image as x.png
4. Undo to previous state.
5. Increment x by 1
6. Repeat steps 2-5 until x equals 361

What would be the best approach to accomplishing this?

A small script written in Scheme or Python would be the best way to do the above. Doing it by hand will be very tedious. As I suspect you are about to say you wouldn't know how to write such a script, you would have to see if you can talk someone in to writing such a script for you.

BTW, hue values range from -180 through to 180 (inclusive) in GIMP.

Chris Mohler
2011-01-07 19:35:51 UTC (about 14 years ago)

A simple for loop while using Colorize

On Fri, Jan 7, 2011 at 11:30 AM, Atrus wrote:

What would be the best approach to accomplishing this?

Try this plug-in I threw together: http://registry.gimp.org/node/24963

Screen capture of resulting files: http://registry.gimp.org/files/Screenshot-test-File_Browser.png

HTH, Chris

Atrus
2011-01-07 19:39:43 UTC (about 14 years ago)

A simple for loop while using Colorize

I was aware of scheme scripting, but not of python. I'll have to look into that. It shouldn't be too difficult.

However, I was going off of the "portable apps" version of GIMP as I was writing, which went from 0 to 360, not -180 to 180. Is that a version difference?

On Jan 7, 2011 1:53 PM, "Kevin Cozens" wrote:

Atrus wrote:

1. Set x to 1
2. Apply Colorize with Hue = x (all other values are at their default...

A small script written in Scheme or Python would be the best way to do the above. Doing it by hand will be very tedious. As I suspect you are about to say you wouldn't know how to write such a script, you would have to see if you can talk someone in to writing such a script for you.

BTW, hue values range from -180 through to 180 (inclusive) in GIMP.

Elwin Estle
2011-01-07 19:44:15 UTC (about 14 years ago)

A simple for loop while using Colorize

Wonder if this couldn't be done with GAP?  If so, it would be trivial to do, just load the original, duplicate it enough times to get 360, then run through the frames with "apply filter varying".

--- On Fri, 1/7/11, Atrus wrote:

From: Atrus Subject: Re: [Gimp-user] A simple for loop while using Colorize To: "Kevin Cozens"
Cc: "gimp-user"
Date: Friday, January 7, 2011, 2:39 PM

I was aware of scheme scripting, but not of python. I'll have to look into that. It shouldn't be too difficult. However, I was going off of the "portable apps" version of GIMP as I was writing, which went from 0 to 360, not -180 to 180. Is that a version difference? On Jan 7, 2011 1:53 PM, "Kevin Cozens" wrote:

Atrus wrote:

1. Set x to 1
2. Apply Colorize with Hue = x (all other values are at their default...

A small script written in Scheme or Python would be the best way to do the

above. Doing it by hand will be very tedious. As I suspect you are about to

say you wouldn't know how to write such a script, you would have to see if

you can talk someone in to writing such a script for you.

BTW, hue values range from -180 through to 180 (inclusive) in GIMP.

Gimp-user mailing list

Gimp-user@lists.XCF.Berkeley.EDU

https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user



-----Inline Attachment Follows-----

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Kevin Cozens
2011-01-07 20:04:30 UTC (about 14 years ago)

A simple for loop while using Colorize

Atrus wrote:

I was aware of scheme scripting, but not of python. I'll have to look into that. It shouldn't be too difficult.

However, I was going off of the "portable apps" version of GIMP as I was writing, which went from 0 to 360, not -180 to 180. Is that a version difference?

If you are using a portable version of GIMP, the files needed to support Python scripts are probably not available to you.

The -180 to 180 for hue is the range of the sliders in the GUI and is listed as the range in the Procedure Browser text in GIMP 2.6.7 (and later). The current version of GIMP as a portable app is 2.6.11 so it will have that same range.

Atrus
2011-01-07 20:13:26 UTC (about 14 years ago)

A simple for loop while using Colorize

The portable version was only temporary, as I was on a different computer. I have it installed at home. I'll try scripting with Google and python.

I have never herad of GAP, and thus enver used it. It does look impressive though, and I'll have to play with it at a further date. Tim Butram
http://www.worldsproject.org

On Fri, Jan 7, 2011 at 3:04 PM, Kevin Cozens wrote:

Atrus wrote:

I was aware of scheme scripting, but not of python. I'll have to look

into

that. It shouldn't be too difficult.

However, I was going off of the "portable apps" version of GIMP as I was writing, which went from 0 to 360, not -180 to 180. Is that a version difference?

If you are using a portable version of GIMP, the files needed to support Python scripts are probably not available to you.

The -180 to 180 for hue is the range of the sliders in the GUI and is listed
as the range in the Procedure Browser text in GIMP 2.6.7 (and later). The current version of GIMP as a portable app is 2.6.11 so it will have that same range.
_______________________________________________ Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user