• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Photoshop Image Size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Photoshop Image Size


  • Subject: Re: Photoshop Image Size
  • From: KOENIG Yvan <email@hidden>
  • Date: Mon, 11 Dec 2006 14:03:43 +0100


Le 11 déc. 06 à 13:20:08, Fleisher, Ken a écrit :

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


Hello

As far as I know, when working with "millions of colours", a TIFF file requires 3 bytes per pixel so, to get a final 20Mb file width x height (in pixel) must be lower to 20 000 000/3 (6 666 666).

If Image Event is able to deal with native photoshop files, you may try to use it to grab the picture dimensions:

set theFile to "th:full:path:to:the:photoshop:file"

tell application "Image Events"
	launch -- always use with Folder Actions
	set this_image to open filetheFile
	set the props to the properties of this_image
	close this_image
	set {w0, h0} to dimensions of props
end tell
set the_factor to 3 * w0 * h0 / 20000000

Apply this factor to the size of the original file and, when saved as TIFF, if I made no error, it will match your requirements.

Yvan KOENIG



_______________________________________________
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
References: 
 >Re: Photoshop Image Size (From: "Fleisher, Ken" <email@hidden>)

  • Prev by Date: Re: Photoshop Image Size
  • Next by Date: Re: create a new plist item using applescript
  • Previous by thread: Re: Photoshop Image Size
  • Next by thread: RE: Photoshop Image Size
  • Index(es):
    • Date
    • Thread