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?

[Image: 2Tvo0.png]
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...

[Image: 2Tvo0.png]
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
  Script-Fu Command List PaulSlocum 2 116 Apr 18, 2012 15:26
Last Post: paynekj
  Is there a REAL bevel Filter/Script Somewhere larienna 1 551 Sep 8, 2011 06:08
Last Post: ofnuts
  Script that will retreive coords from a click shabbado 0 192 Nov 15, 2010 07:00
Last Post: shabbado

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS