It is currently Sun Aug 02, 2026 11:11 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Batch Processing Question
PostPosted: Mon Jun 29, 2015 12:06 am  (#1) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14144
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
I recently found a bunch of PNG (Portable Network Graphics) images, about 468 of them to be exact. These image were posted on deviantart as gradients for use with the program Mandelbulber.
Image

I would like to know if I could use the bimp plugin to batch process these images, by using the Gradient from image plugin. To turn these images into Gimp gradients.

Here are 2 such images that are part of the 468 images. All are more or less about the same size.
Attachment:
226.png
226.png [ 656 Bytes | Viewed 4222 times ]

Attachment:
225.png
225.png [ 693 Bytes | Viewed 4222 times ]


Any ideas on how I can go about making all these images into Gimp gradients. Without having to open them all individually?

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Batch Processing Question
PostPosted: Mon Jun 29, 2015 1:37 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
You can do it with G'MIC (the command line tool).
Using bash, you can type :

$ for i in *.png; do base=`basename $i .png`; gmic $i -rows 50% -output_ggr $base.ggr,$base -q; done


And it will create as many .ggr files than you have .png files.
Tell me if you want me to do this for you.


Top
 Post subject: Re: Batch Processing Question
PostPosted: Mon Jun 29, 2015 1:56 am  (#3) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14144
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Ronounours wrote:
You can do it with G'MIC (the command line tool).
Using bash, you can type :

$ for i in *.png; do base=`basename $i .png`; gmic $i -rows 50% -output_ggr $base.ggr,$base -q; done


And it will create as many .ggr files than you have .png files.
Tell me if you want me to do this for you.

If you would do this for me, that would be really great.

Here is all 468 PNG image...
Attachment:
468 Mandelbulber Gradients.zip [1.35 MiB]
Downloaded 251 times

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Batch Processing Question
PostPosted: Mon Jun 29, 2015 2:22 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Here they are.


Attachments:
mandelbulb_gradients.zip [1.6 MiB]
Downloaded 489 times
Top
 Post subject: Re: Batch Processing Question
PostPosted: Mon Jun 29, 2015 2:43 am  (#5) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14144
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Ronounours wrote:
Here they are.

"Get out of town!" Image
That's fabulous of you to do this.Image

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Batch Processing Question
PostPosted: Mon Jun 29, 2015 2:47 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
You're welcome. It took only a few seconds to convert.
Just a remark though : the images are converted 'colors by colors', so each gradient has at the end as many colored keypoints as in the original color image,
which means those gradients are quite hard to edit. But if this doesn't matter too much, then everything is fine :)


Top
 Post subject: Re: Batch Processing Question
PostPosted: Mon Jun 29, 2015 3:02 am  (#7) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14144
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Ronounours wrote:
You're welcome. It took only a few seconds to convert.
Just a remark though : the images are converted 'colors by colors', so each gradient has at the end as many colored keypoints as in the original color image,
which means those gradients are quite hard to edit. But if this doesn't matter too much, then everything is fine :)

I see what you mean.
Image
That's okay with me.
Again, thank you so much. :jumpclap

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group