RetouchPRO

Go Back   RetouchPRO > Tools > Software > Photoshop Scripting
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read


Photoshop Scripting Learning and sharing for all platforms

Script to center-crop images to a fixed ratio

Reply
 
Thread Tools
  #21  
Old 01-03-2009, 09:15 AM
jjmacks jjmacks is offline
Junior Member
 
Join Date: Jun 2006
Location: NY
Posts: 5
Re: Script to center-crop images to a fixed ratio

Wolfgang
As a Photoshop script plug-in you can record its use in and action. The setting you set in the Plug-ins dialog during recording the action is recorded in the action and will be used when you play the action. You can of course turn the dialog on in the action and make that step interactive. You can download this script and many more here
http://mouseprints.net/old/dpr/ReadMe.html
examples http://www.mouseprints.net/old/dpr/Examples/
Reply With Quote top
  #22  
Old 01-06-2013, 02:28 AM
jrsuli jrsuli is offline
Junior Member
 
Join Date: Jan 2013
Posts: 2
Re: Script to center-crop images to a fixed ratio

Hi, I'm very new on photoshop scripts and I need help I tried your scripts but doesn't work:
I have folder with 120 images (png)that they where exported from 3ds max. Every picture is the same object that moves a little bit more making a circle of 120 pictures. All the background is transparent and the object is black let's say the canvas is 1098x824 and the object 152x162 (the size changes because some times I see it closer so is bigger than when is far looks smaller). So in every picture the x position and y position are different. I have the width and height for the crop of every picture. What i need is a script that:
Open each file "MouseOver_???.png"
Put the crop tool on the x and y of the object.
Take the size Iwidht and height) from an array that I have
Crop the image
and Save it on the same name.
Open the next image... till 120
Please help me, I don't know how to do it and I just so frustrated!!!
Thanks in advance
Reply With Quote top
  #23  
Old 01-06-2013, 03:09 AM
DannyRaphael's Avatar
DannyRaphael DannyRaphael is offline
Moderator
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 6,300
Re: Script to center-crop images to a fixed ratio

Quote:
Originally Posted by jrsuli View Post
Hi, I'm very new on photoshop scripts and I need help I tried your scripts but doesn't work:
I have folder with 120 images (png)that they where exported from 3ds max. Every picture is the same object that moves a little bit more making a circle of 120 pictures. All the background is transparent and the object is black let's say the canvas is 1098x824 and the object 152x162 (the size changes because some times I see it closer so is bigger than when is far looks smaller). So in every picture the x position and y position are different. I have the width and height for the crop of every picture. What i need is a script that:
Open each file "MouseOver_???.png"
Put the crop tool on the x and y of the object.
Take the size Iwidht and height) from an array that I have
Crop the image
and Save it on the same name.
Open the next image... till 120
Please help me, I don't know how to do it and I just so frustrated!!!
Thanks in advance

Hello and welcome to RP.

Your situation is way over my head, but I can point you to a site where there are some very knowledgable scripting folks:

www.ps-scripts.com

If no one here at RP can help or you need a second opinion, I'd sure give PS-Scripts forums a look.

Good luck with your project.
Reply With Quote top
  #24  
Old 01-06-2013, 03:16 AM
jrsuli jrsuli is offline
Junior Member
 
Join Date: Jan 2013
Posts: 2
Re: Script to center-crop images to a fixed ratio

Thank you!
I tried in ps-script but I didn't get a "confirmation" as a member so I can't post my question ...
I don't get the answer from any posts there...
Reply With Quote top
  #25  
Old 01-06-2013, 04:58 AM
DannyRaphael's Avatar
DannyRaphael DannyRaphael is offline
Moderator
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 6,300
Re: Script to center-crop images to a fixed ratio

Quote:
Originally Posted by jrsuli View Post
Thank you!
I tried in ps-script but I didn't get a "confirmation" as a member so I can't post my question ...
I don't get the answer from any posts there...
It's possible PS-Scripts registration requires "human" approval unlike many forums that auto-approve. It is "middle of the night"/very early Sunday in the U.S. at the moment (I don't know your world location) and it is likely no one who is a PS-Scripts admin is logged in to approve your request. I would expect you will get a 'confirmation' in the next 24-36 hr.

Your question is fairly specific, so it does not surprise me that you did not find an a answer to your question. I've interacted with some of the script experts there in the past and if anyone can give you good advice on a solution or workaround it will be one of those guys.
Reply With Quote top
Reply

  RetouchPRO > Tools > Software > Photoshop Scripting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not seeing SOME images mikajomc Forums Q&A 4 01-23-2008 04:37 PM
Script to Detect Upright and View images Cameraken Photoshop Scripting 4 01-08-2008 08:50 AM
Other festive/xmas Images palms Photo-Based Art 13 12-19-2007 08:14 AM
Protecting images on your website ChinaMark Your Website 4 11-16-2007 07:11 PM
HDR - ( High Dynamic Range ) Images CJ Swartz HDR, Panoramas and Tone Mapping 6 11-12-2007 04:40 PM


All times are GMT -6. The time now is 07:29 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved