• 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: Getting values in Photoshop 7 - the complete request
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting values in Photoshop 7 - the complete request


  • Subject: Re: Getting values in Photoshop 7 - the complete request
  • From: Martin Orpen <email@hidden>
  • Date: Wed, 21 May 2003 13:05:10 +0100

on Wed, 21 May 2003 08:40:40,

> To save the hunt, here's the RGB version; CMYK will involve the same thing
> but four channels:

Annoyingly, the CMYK version also needs something like:

set theCyan to ((256 - i) / 2.56)

And then a subroutine to convert the real numbers to integers - unless I'm
doing something wrong?

Still, I've waited 7 years to be able to script Photoshop, maybe within the
decade they'll add a pixel class so that we can simply get the properties of
an individual pixel - or alternatively incorporate the Eyedropper.

> You could try using threshold adjustment to (hopefully) eliminate most of
> the image, but I still doubt that it would be very practical.

You're right, because Photoshop still requires another workaround to make
the results of Threshold into a selection - you have to duplicate the
channel, apply threshold, make the selection and then delete the channel.

I was hoping that I could get away with analysing the histogram of an entire
image - the information looks correct *visually* - but I can't make any
sense of the values that you get from:

tell application "Adobe Photoshop 7.0"
set myValues to histogram of current document
end tell

You get 256 values returned (from both RGB and CMYK images), but I haven't
got a clue what they represent - you don't happen to know do you?

--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Repeat
  • Next by Date: RE: Getting values in Photoshop 7 - the complete request
  • Previous by thread: Re: Getting values in Photoshop 7 - the complete request
  • Next by thread: RE: Getting values in Photoshop 7 - the complete request
  • Index(es):
    • Date
    • Thread