Newbies robert.k Posted January 25, 2005 Newbies Posted January 25, 2005 Dear all, I have a question and I really hope someone might have a answer for me. Currently I am developing an image database for fm6. every record should know about 2 kind of images - high resolution and low resolution. I am storing those files on a central place with the help of trois file plug in. what I love to do is that the user does not need to create 2 different images - instead filemaker can create out of the high res image a second one (the low res image). is there any plug in out there? so far I have tried a combination between the scripting possibilities photoshop and apple script but I would love not using photoshop for this task. does someone has an idea? cheers robert
Fenton Posted January 25, 2005 Posted January 25, 2005 There is a built-in application in OS X, Image Events. Look at its dictionary. The following will resize an image file, that you choose. This simple script is modifying the original chosen; so in real life you'd want that to either be a duplicate of the original file, or to save the result in another file, ie., in file specification "file path". set this_item to (choose file) as file specification tell application "Image Events" launch set this_image to open this_item scale this_image to size 128 save this_image as JPEG -- with icon close this_image end tell --This will do it by a factor: set this_item to (choose file) as file specification tell application "Image Events" launch set this_image to open this_item scale this_image by factor 0.25 save this_image as JPEG with icon close this_image end tell
Recommended Posts
This topic is 7311 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now