Need to create a conditional script or action to edit 800 images…

G
Posted By
gamouning
Mar 20, 2007
Views
437
Replies
3
Status
Closed
Hello Photoshop Gurus,

I have the following challenge and require your assistance. With close to 800 images in jpeg format that vary in size, I need to create an action or script that will allow me to chose how the images are re- sized. The final size for each of these images need to be 9"(w) width by 6"(h) height in jpeg format. I want to keep the images consistent looking and favor the width in most cases. I have noticed most images will fall into one of the following conditions:

If "image size" width is greater than 9" but height is less than 6", then change the "image size" width to 9" and change the canvas size height to 6" using the Bottom Center Anchor position.

Or if "image size" width is greater than 9" and height is greater than 6" then change the Image size height to 6" and change the canvas size width to 9" using the Center Anchor position.

For all other cases, change the "image size" width to 9" and change the canvas size height to 6" using the Center Anchor position.

Finally, before saving I would like to change the levels and contrasts to Auto.

I tried working with a simple action and the ImageProcessor Script. However, it doesn’t seem to work. Thanks in advance for any assistance you can provide to obtain my results.

Kind regards,
Greg

Master Retouching Hair

Learn how to rescue details, remove flyaways, add volume, and enhance the definition of hair in any photo. We break down every tool and technique in Photoshop to get picture-perfect hair, every time.

TW
Toobi Won Kenobi
Mar 20, 2007
"gamouning" wrote in message
Hello Photoshop Gurus,

I have the following challenge and require your assistance. With close to 800 images in jpeg format that vary in size, I need to create an action or script that will allow me to chose how the images are re- sized. The final size for each of these images need to be 9"(w) width by 6"(h) height in jpeg format. I want to keep the images consistent looking and favor the width in most cases. I have noticed most images will fall into one of the following conditions:

If "image size" width is greater than 9" but height is less than 6", then change the "image size" width to 9" and change the canvas size height to 6" using the Bottom Center Anchor position.
Or if "image size" width is greater than 9" and height is greater than 6" then change the Image size height to 6" and change the canvas size width to 9" using the Center Anchor position.

For all other cases, change the "image size" width to 9" and change the canvas size height to 6" using the Center Anchor position.
Finally, before saving I would like to change the levels and contrasts to Auto.

I tried working with a simple action and the ImageProcessor Script. However, it doesn’t seem to work. Thanks in advance for any assistance you can provide to obtain my results.

Kind regards,
G,

You need an action, see
http://www.sitepoint.com/forums/showthread.php?t=252128
TWK
TW
Toobi Won Kenobi
Mar 21, 2007
"gamouning" wrote in message
Hello Photoshop Gurus,

Wrong Group!;)

I’ve just reread your post and what you need is a conditional action see http://designorati.com/photoshop/2006/how-to-creating-action s-with-conditionals/

TWK

I have the following challenge and require your assistance. With close to 800 images in jpeg format that vary in size, I need to create an action or script that will allow me to chose how the images are re- sized. The final size for each of these images need to be 9"(w) width by 6"(h) height in jpeg format. I want to keep the images consistent looking and favor the width in most cases. I have noticed most images will fall into one of the following conditions:

If "image size" width is greater than 9" but height is less than 6", then change the "image size" width to 9" and change the canvas size height to 6" using the Bottom Center Anchor position.
Or if "image size" width is greater than 9" and height is greater than 6" then change the Image size height to 6" and change the canvas size width to 9" using the Center Anchor position.

For all other cases, change the "image size" width to 9" and change the canvas size height to 6" using the Center Anchor position.
Finally, before saving I would like to change the levels and contrasts to Auto.

I tried working with a simple action and the ImageProcessor Script. However, it doesn’t seem to work. Thanks in advance for any assistance you can provide to obtain my results.

Kind regards,
Greg
G
gamouning
Mar 21, 2007
Hi,

Thanks for your prompt reply, it is greatly appreciated. I apologize if this was posted to the wrong Group. FYI, I received another response which I am currently investigating:

http://www.adobeforums.com/cgi-bin/webx/.3bbf6980

Conditional Actions Script for PS CS2

Phos…. – 08:55pm Apr 11, 2006 Pacific

This script from Sivaratnam Gunaratnam will perform actions on Photoshop files and can change depending on certain definable conditions encountered in each file.

From his Blog entry:

"This is a tool I scripted for myself that I would like to share with all fellow Photoshopers. It allows you to execute your Actions based on Conditions. No programming needed. Just click and define your conditions.. Some examples of conditions are as follows:

1. If the image height is greater than its width, do Action X, or else do else Y
2. If the image format is JPG / PSD / BMP do action…
3. If the image file size is bigger than 300KB, do action….
4. if the image IS/IS NOT of RGB, CMYK… etc
5. if image author is Siva, do action…
6. if image exif contains Nikon D70s, do action ….
7. if image name contains "paris", do action… etc
etc

Please note that-as of this writing-he has only tested it on Windows and PSCS2. However, someone posted a comment to his blog entry stating that it "Seems to work perfectly on a Mac too."

caveat downloador

Visit Siva’s blog to read more and get the script at the following link:

http://actionlogic.blogspot.com/2006/03/sivas-photoshop-cond itional-action.html

-Greg
On Mar 20, 8:13 pm, "Toobi Won Kenobi" <Toobi Won > wrote:
"gamouning" wrote in message

Hello Photoshop Gurus,

Wrong Group!;)

I’ve just reread your post and what you need is a conditional action seehttp://designorati.com/photoshop/2006/how-to-creating-act ions-with-co…

TWK

I have the following challenge and require your assistance. With close to 800 images in jpeg format that vary in size, I need to create an action or script that will allow me to chose how the images are re- sized. The final size for each of these images need to be 9"(w) width by 6"(h) height in jpeg format. I want to keep the images consistent looking and favor the width in most cases. I have noticed most images will fall into one of the following conditions:

If "image size" width is greater than 9" but height is less than 6", then change the "image size" width to 9" and change the canvas size height to 6" using the Bottom Center Anchor position.

Or if "image size" width is greater than 9" and height is greater than 6" then change the Image size height to 6" and change the canvas size width to 9" using the Center Anchor position.

For all other cases, change the "image size" width to 9" and change the canvas size height to 6" using the Center Anchor position.

Finally, before saving I would like to change the levels and contrasts to Auto.

I tried working with a simple action and the ImageProcessor Script. However, it doesn’t seem to work. Thanks in advance for any assistance you can provide to obtain my results.

Kind regards,
Greg

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

Related Discussion Topics

Nice and short text about related topics in discussion sections