Re: Photoshop Image Size
Re: Photoshop Image Size
- Subject: Re: Photoshop Image Size
- From: "Fleisher, Ken" <email@hidden>
- Date: Mon, 11 Dec 2006 07:20:08 -0500
- Thread-topic: Photoshop Image Size
Herb,
Thank you for you help. However, I don't have any problems finding the
actual file size of a file from the Finder. This is really a Photoshop
question--if I have an image that is much larger than 20 Mb which contains
multiple layers and channels, how I do I know how to resize the image so
that the total file size on disk, when saved as a tiff, will be 20 Mb. This
is a very different size than scaling so that the image size--which is based
entirely on the width * height * bit-depth (of the flattened background
layer)--will be 20 Mb. Photoshop's estimate of the file size can be found in
the lower left of the document window as described in my original e-mail. It
is this figure that I would like to either calculate or query Photoshop for
through Applescript.
Thanks again.
Ken
On 12/8/06 11:51 AM, "Ripka, Herb" <email@hidden> wrote:
> Ken--
>
> Did you ever get an answer to your Photoshop 20mb size question?
>
> Maybe this will help?
>
> --Herbert Ripka
> Greendale, WI
>
> +++++
>
> set filelist to ""
> tell application "Finder"
> activate
> set f to (choose folder)
> set theSelectedItems to every file of f
>
> repeat with thisItem in theSelectedItems
> set thisItem to thisItem as text
> set theInfo to info for alias thisItem
> set theName to name of theInfo
> set PhysicalSize to physical size of alias thisItem
> set filelist to (filelist & theName & " " & PhysicalSize & return)
> end repeat
> end tell
>
> tell application "TextEdit"
> make new document at beginning with properties {text:filelist as Unicode text}
> activate
> end tell
>
> +++++
> * Subject: Photoshop Image Size
> * Date: Mon, 20 Nov 2006 08:25:49 -0500
>
> I need to resize images down to 20 Mb. I have already coded a method that
> does this based on the image dimensions, but it turns out that this is not
> correct for our workflow.
>
> Instead, I need to make sure that the final file size on disk is 20 Mb.
> Naturally, a variable number of layers will affect this final size. When
> viewing "Document Sizes" in the bottom left of the document window, it shows
> two values such as:
>
> Doc: 20.0M/113.5M
>
> Is there some way in Photoshop to extract the second value? Are there any
> suggestions for how to calculate the image resize so that the final file
> will be 20 Mb?
>
> Thanks.
>
> Ken Fleisher
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden