It is currently Thu Mar 28, 2024 3:27 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 16 posts ] 
Author Message
 Post subject: Batch Script for custom Script?
PostPosted: Wed Sep 25, 2013 4:23 am  (#1) 
Offline
GimpChat Member

Joined: Sep 25, 2013
Posts: 10
hi to all,
this is kumar, i have one custom script it is working as per my Requirement,
now i want to apply same script for different images at same time......
can any one tel me the code for batch process...
am new to GIMP,
i don't know script code for Batch Process, i studied many articles but i didn't get any thing..
Here am attached custom Script code link.........
Please check it once and let me know......
it's very urgent..........
My GIMP Version GIMP 2.8.6
Need Script-Fu


Attachments:
File comment: Please check Attachment for script code
sg-kumar-kovuru.scm [2.3 KiB]
Downloaded 175 times
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 Script for custom Script?
PostPosted: Wed Sep 25, 2013 4:32 am  (#2) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Welcome here Lokesh.

I'll have to ask you the same question I asked over on the Gimp Resigstry:
Do you mean you want to run the script on multiple images that you have already opened in GIMP? or that you want to run it on multiple images files? (which is what I thought you were asking)

Also, do you want to learn how to write the script, or do you just want someone to write the script for you?

Kevin


Top
 Post subject: Re: Batch Script for custom Script?
PostPosted: Wed Sep 25, 2013 5:22 am  (#3) 
Offline
GimpChat Member

Joined: Sep 22, 2013
Posts: 27
In general gimp knows non-interactive mode (or batch mode) short introduction here: http://www.gimp.org/tutorials/Basic_Batch/

Bottom line is that a plugin/script has to support it....

But this kind of operation (as in your scm file) does not make sense in batch mode. Batch mode is by its essential principle GUI-less mode.....


Top
 Post subject: Re: Batch Script for custom Script?
PostPosted: Wed Sep 25, 2013 6:06 am  (#4) 
Offline
GimpChat Member

Joined: Sep 25, 2013
Posts: 10
Hi Kevin,
it is working on one image perfectly..
i need modified script code for Batch process( the script should ask folder location and which contains no.of images, want to change all images at same time)
i want someone to write the script for me.......


Top
 Post subject: Re: Batch Script for custom Script?
PostPosted: Wed Sep 25, 2013 6:27 am  (#5) 
Offline
GimpChat Member

Joined: Sep 25, 2013
Posts: 10
Hi tibor95,
i don't know anything about GIMP, Please Write script code as for my requirements

if height>width then height=300 and width should be related to height size
else width=300 and height should be related to width size..
(it for all size of images)
now image size is like 300 X (less than 300) or (less than 300) X 300
now i want to fit the canvas(Black color) with size 320 X 320 for that image..
now image size should be 320 X 320 this is the output for single file
i want to apply same script for different images at same time..

i want someone to write the script for me.......


Top
 Post subject: Re: Batch Script for custom Script?
PostPosted: Wed Sep 25, 2013 6:46 am  (#6) 
Offline
GimpChat Member

Joined: Sep 22, 2013
Posts: 27
So you want to create images of 320x320 px with black background and inside would be rescaled original image? You did not mention alignment of that inner image. Output format would be "one" layer image like jpg or png?

If it is the case this is not the job for gimp but I would use imagemagick for this stuff... (this is command line tool very easy to use for batch processing, and free


Top
 Post subject: Re: Batch Script for custom Script?
PostPosted: Wed Sep 25, 2013 6:51 am  (#7) 
Offline
GimpChat Member

Joined: Sep 25, 2013
Posts: 10
Hi tibor95,
Image should be in center and image should either jpg or png only
it is exactly working for single image and why should not try for Batch files?


Top
 Post subject: Re: Batch Script for custom Script?
PostPosted: Wed Sep 25, 2013 6:58 am  (#8) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Lokesh wrote:
Hi Kevin,
it is working on one image perfectly..
i need modified script code for Batch process( the script should ask folder location and which contains no.of images, want to change all images at same time)
i want someone to write the script for me.......

I can update it before Friday. Are you on Windows or some other operating system?

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Batch Script for custom Script?
PostPosted: Wed Sep 25, 2013 8:00 am  (#9) 
Offline
GimpChat Member

Joined: Sep 22, 2013
Posts: 27
Well, my answer got lost, I am not going to repeat, but I would suggest to google for "composite -gravity center" and "convert -resize".....


Top
 Post subject: Re: Batch Script for custom Script?
PostPosted: Wed Sep 25, 2013 10:32 pm  (#10) 
Offline
GimpChat Member

Joined: Sep 25, 2013
Posts: 10
saulgoode wrote:
Lokesh wrote:
Hi Kevin,
it is working on one image perfectly..
i need modified script code for Batch process( the script should ask folder location and which contains no.of images, want to change all images at same time)
i want someone to write the script for me.......

I can update it before Friday. Are you on Windows or some other operating system?


i am working on window 7 Professional 64 bit operating system
and GIMP version is GIMP 2.8.6


Top
 Post subject: Re: Batch Script for custom Script?
PostPosted: Thu Sep 26, 2013 1:16 am  (#11) 
Offline
GimpChat Member

Joined: Sep 25, 2013
Posts: 10
tibor95 wrote:
Well, my answer got lost, I am not going to repeat, but I would suggest to google for "composite -gravity center" and "convert -resize".....

so, what can i do for your Answer???????????


Top
 Post subject: Re: Batch Script for custom Script?
PostPosted: Thu Sep 26, 2013 2:14 am  (#12) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4726
What Tibor95 means is that there is a free toolbox out there called ImageMagick that can do very many simple editing operations on images, and these operations can be combined. For instance, this:
convert "$f" -modulate 100,120  -geometry 3000 -sharpen 0x1.0 -quality 85 "$dir/$(basename "$f" .JPG).jpg"

Takes a picture, augments saturation, resizes it so that it becomes 3000px on it largest side (the other side being resized accordingly), and sharpens the result, and save it as a JPG with quality 85 (this is a Linux shell script, but you can do equivalent things in Windows).

The two main commands in that toolbox are "convert" (as above) that acts on one image, and "compose" that takes several input images to make one image.

Unless you are using very specific plugins, most uses of Gimp in batch can be replaced by scripts around ImageMagick (that will often run circles around Gimp).

_________________
Image


Top
 Post subject: Re: Batch Script for custom Script?
PostPosted: Thu Sep 26, 2013 2:23 am  (#13) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
http://chiselapp.com/user/saulgoode/rep ... 57f5713221

WARNING: Script will modify ALL PNGs and JPGs in the specified directory. Make copies of your original files.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Batch Script for custom Script?
PostPosted: Thu Sep 26, 2013 2:44 am  (#14) 
Offline
GimpChat Member

Joined: Sep 25, 2013
Posts: 10
saulgoode wrote:
http://chiselapp.com/user/saulgoode/repository/script-fu/artifact/e9415e3cc8e93fe7e83de504697ac857f5713221

WARNING: Script will modify ALL PNGs and JPGs in the specified directory. Make copies of your original files.


It is same as First script,,
please check it once give me reply..........


Top
 Post subject: Re: Batch Script for custom Script?
PostPosted: Thu Sep 26, 2013 2:46 am  (#15) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
So sorry...


EDIT: here is a better version:
http://chiselapp.com/user/saulgoode/rep ... 257cbc26b8

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Batch Script for custom Script?
PostPosted: Thu Sep 26, 2013 10:33 pm  (#16) 
Offline
GimpChat Member

Joined: Sep 25, 2013
Posts: 10
Hi Sauloode,
ThanQ For Your help,,,


Top
Post new topic Reply to topic  [ 16 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) converting 32 bit images to 8 bit using batch script

5

No new posts Attachment(s) Seeking Help with First Multi-File Batch Script

9

No new posts Attachment(s) Batch export all opened images script for GIMP [Update]

13

No new posts Attachment(s) Looking for Script Coder to make Script of my VHS effect

2

No new posts Attachment(s) Cannot run test script-fu script via console

7



* Login  



Powered by phpBB3 © phpBB Group