AutoHotkey Community

It is currently May 27th, 2012, 5:23 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: January 31st, 2011, 8:49 pm 
Offline

Joined: March 31st, 2009, 12:28 pm
Posts: 70
All,

I have an unusual question. I have 100 jpg files. I need crop each file exactly the same. I have experimented a bit with Photoshop, but I was wondering if anyone has a better suggestion. I am looking for a "Cropping Tool" that I can control from AHK so that I can feed it input and output file names.

Thanks for your assistance.
Costas


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2011, 9:13 pm 
...if u are using photoshop, then just stick with it
save one macro and run it on all images

OR

use the microsoft office picture manger, Ctrl+A for all the 100 images, and do cropping on one of the image, and then save all

OR

AHK method will be using the GDI (search forum) library


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2011, 9:36 pm 
Coincidence ....this was a post just a day ago or so.............


http://www.autohotkey.com/forum/topic67932.html


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2011, 3:28 pm 
Offline

Joined: March 31st, 2009, 12:28 pm
Posts: 70
Dear Guests,

Thank you very much for your help.

I tried to use the microsoft office picture manger, Ctrl+A for all the 100 images, and do cropping on one of the image, and then save all. However, with my version of Picture Manager, I could not do cropping with multiple files, just one at a time.

I had never worked with Picture Manager before, but it seems easier for cropping than my old version of Photoshop.

Anyway, I was able to write an AHK program to work in conjunction with Picture Manager and it works great - it steps through the jpg files one at a time and crops them - very close to "magic" :-)

Thanks again for your assistance. I learned some new things today as a result of your suggestions.

Sincerely,
Costas


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2011, 3:53 pm 
Offline

Joined: January 12th, 2007, 4:30 am
Posts: 531
Location: Norway
Costas: Should you have to do something similar again, I would really recommend Photoshop actions as mentioned by Guest. See an example to get started here: http://www.switchonthecode.com/tutorial ... al-actions

Also, I just PMed you...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2011, 5:21 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
also with irfanview commandlines
http://www.autohotkey.com/forum/post-418218.html#418218
this example saves and cuts screen

Code:
;  commands http://www.autohotkey.com/forum/post-418218.html#418218
;  crop= x  y  width height
F1=%A_now%_screenshot.jpg
PR=%A_ProgramFiles%\IrfanView\i_view32.exe
AA=/capture=0 /crop=(500,500,600,200) /convert=%F1%
ifexist,%pr%
  {
  runwait,%PR% %AA%
  run,%F1%
  }
return


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], HotkeyStick, rbrtryn, XstatyK and 86 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group