Re: Pixel sizes
Re: Pixel sizes
- Subject: Re: Pixel sizes
- From: Chris Adams <email@hidden>
- Date: Sat, 11 Aug 2001 07:08:03 +0000
On 8/1/01 6:17 PM Hellum Timothy wrote:
>
Hello list,
>
>
Does anyone know of a way to have AS look at a folder of images (EPS) and
>
return their respective x and y values as pixel lengths?
>
>
I have Graphic Converter and suspect that it may offer an answer, but I am
>
unsure.
>
>
Novice user!
>
>
Thanks muchly,
>
>
Timothy
>
You can do this with Quicktime (if QT can open the EPS images? If not you
could temporarily convert the images to JPEG).
The meat of what you need is this (this script is a droplet):
on open (droppeditem)
tell application "QuickTime Player"
set thealias to droppeditem as alias
open thealias
set mydimensions to dimensions of movie 1 as list
set width to item 1 of mydimensions
set height to item 2 of mydimensions
display dialog "Width: " & width & return ,
& "Height: " & height & return
close movie 1 saving no
end tell
end open
-- end of script
I have a script here that uses QT to get the size from a series of images in
a folder and builds a thumbnail HTML image catalog in BBedit:
http://www.cypresslakestudios.com/applescript/index.html#thumbnailer
This is another script that uses Quicktime to resize the images based on a
target width or height:
http://www.cypresslakestudios.com/applescript/index.html#photo_albummer
It is a really huge script that also involves using Media Cleaner, but you
might be able to get something out of it.
Good luck and I hope that this helps.
--
Chris Adams
Cypress Lake Studios
Hypermedia, Quicktime, and Internet Design
http://www.cypresslakestudios.com
email@hidden