RE: Photoshop Image Size
RE: Photoshop Image Size
- Subject: RE: Photoshop Image Size
- From: "Ripka, Herb" <email@hidden>
- Date: Wed, 13 Dec 2006 11:08:56 -0600
- Thread-topic: Photoshop Image Size
I think you need a formula like the one below to figure out what scale percentage you need to use to get you down to 20mb. (Hard to write formulas in an email)
Original file size divided by 20mb equals X
1 divided by the square root of X equals the scale factor
OR, in numerical terms, using 60mb as the original file size:
60mb divided by 20mb equals 3
(1 divided by the square root of 3) OR (1 divided by 1.732) equals 0.577
You should scale the original by 57.7% of original size (from a 60mb file)
I suppose you could write this formula into my original script so that it would show you the filename, the size of the image, and the calculated scale factor.
--Herb Ripka
Greendale, WI
> ----------
> From: Fleisher, Ken
> Sent: Monday, December 11, 2006 6:20 AM
> To: Ripka, Herb; Applescript Users
> Subject: Re: 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