Post Reply 

I need help writing a script

Jan 25, 2012, 21:18 (This post was last modified: Jan 25, 2012 21:20 by Stuffstuff1.)
Post: #1
I need help writing a script
Im entering information for my company and i have a lot of stuff i need to do a lot of photo editing.


Basically i need to change the size of the canvas so that the image is square (Ex 500x500 from 500x458). Height = Width

after i change the canvas the layer needs to be centered

After that the file needs to be saved-as. (Assuming it already had the name 1234) to 1234_Zoom.jpg

Then the image needs to be scaled to 270 x 270 and saved-as 1234_Detail.jpg

last it needs to be scaled again to 138x138 amd saved as 1234_Thumb.Jpg


can this be easily scripted to automate the process? If it takes me about 2 Minutes to do all the work above and i need to repeat it 800 more times.. i think i might be better off making a script.
Find all posts by this user
Quote this message in a reply
Jan 25, 2012, 21:40 (This post was last modified: Jan 25, 2012 21:40 by ofnuts.)
Post: #2
RE: I need help writing a script
You really want to use ImageMagick in your script. Then you launch the script over your 800 pictures, have a coffee, and done. Are all pics guaranteed to be smaller than 500x500 originally? Is this for Windows, OSX or Linux?

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Jan 25, 2012, 21:42
Post: #3
RE: I need help writing a script
Windows.


They can be any size. Just as long as i can make them a square with out distorting them its ok.


Ill look at the link and come back
Find all posts by this user
Quote this message in a reply
Feb 3, 2012, 22:24
Post: #4
RE: I need help writing a script
7 batch files later. It does everything i want and more.. took mt 5 hours to write all the code but not its only takes me 45 seconds. to process 52 images . Much better then 30 min Awesome!
Find all posts by this user
Quote this message in a reply
Feb 3, 2012, 22:32
Post: #5
RE: I need help writing a script
Yes, nifty little piece of code it is...

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Calling script from cmd under Linux outputs strange behaviour INV_SIG 7 430 Sep 19, 2014 22:29
Last Post: INV_SIG
  Shell script help wanted please Weatherlawyer 2 317 Jul 30, 2014 19:31
Last Post: Weatherlawyer
  Plugins/script help needed stigzler 1 277 Jul 5, 2014 15:20
Last Post: stigzler
  script to extract and overlay timestamp from jps images Mark Pigott 6 575 Jun 18, 2014 09:46
Last Post: rich2005
  Script-fu dialogs appear under the main Window charlessmall18 3 467 Mar 13, 2014 10:32
Last Post: rich2005

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS