Image manipulation

Hi there

Being a total novice I need someone to point me in the right direction.

I need to create a folder action that does all the following stuff.

  1. Check that the image is in RGB, no other channels or Paths included
  2. If the size of the RGB image is larger than 30Megs, then scale it down to 30
  3. Apply Adobe RGB ICC profile
  4. Save in a folder as tiff (high-res)
  5. scale smallest size to 75px, then crop to 75x75px, save as jpg in folder (thumb)
  6. scale to 800x600 (keep original proportions), save as jpg in folder (preview)
  7. make a zip version of the high-res tiff created in 4

I’ll appreciate any respons to this matter, if it’s not possible to do step 1-3 via scripting this could be done manually in photoshop

thanks in advance
nego :slight_smile:

Here are a couple of snippets of code to get you started:
Get the GraphicsImporter OSAX for most of the scripting you want done as it does most of the work without opening the image. Also, check out iMagine, which will do all of this and more through applescript. Tons cheaper than PhotoShop.
But if you must use Photoshop use the “do action” and build your actions and run the script. Become very familar with the Photoshop Applecript Dictionary.
For applying a ICC Profile use ColorSync


on adding folder items to watchFolder after receiving anyFiles
tell application "ColorSyncScripting"
		embed TheFile with source "Color Monitor Profile" matching with perceptual intent using quality best saving into TheFile with replacing
end tell
tell application "Adobe Photoshop 7.0"
		open TheFile as TIFF with options {class:TIFF open options, mode:RGB  showing dialogs never
do actions "myActions"
end tell
end adding folder items to

if you are using Panther check out this:
Apples website ( http://www.apple.com/applescript/imageevents/)