Simple Plugin to check if image is "Broadcast Safe"

J
Posted By
jeffspam
Jun 16, 2004
Views
517
Replies
1
Status
Closed
Hi,

I’m working on a plugin that goes through graphics files and checks to see if they fit certain specifications. First off, it’s an automation plugin that I’ve written in C++ for Photoshop 6.0 (this means I’m not able to use the scripting plugin).

What I need to do is go through each file and check to see if any luminance values are greater that 217. It’s the same thing as if you went to Image->Histogram and looked at how many values are greater than 217 (when luminance is selected).

I would want the plugin to count how many pixels have luminance values greater than 217. From what I’ve worked on so far for this it seems that I’ll have to have my automation plugin call a filter plugin (this part is documented in the sdk) so that I can get the actual pixel values. The part I don’t know is where these values are and how I can run through them to check my condition.

Any help would be very much appreciated! Thank you!!!

Jeff Bowen

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

MR
Mike Russell
Jun 19, 2004
jefferbo wrote:
Hi,

I’m working on a plugin that goes through graphics files and checks to see if they fit certain specifications. First off, it’s an automation plugin that I’ve written in C++ for Photoshop 6.0 (this means I’m not able to use the scripting plugin).

What I need to do is go through each file and check to see if any luminance values are greater that 217. It’s the same thing as if you went to Image->Histogram and looked at how many values are greater than 217 (when luminance is selected).

I would want the plugin to count how many pixels have luminance values greater than 217. From what I’ve worked on so far for this it seems that I’ll have to have my automation plugin call a filter plugin (this part is documented in the sdk) so that I can get the actual pixel values. The part I don’t know is where these values are and how I can run through them to check my condition.

Any help would be very much appreciated! Thank you!!!

Jeff Bowen

Jeff,

Get the SDK – it’s on the PS 6.0 CD and look at the dissolve plugin example. It accesses all the pixel values, and you can do your luminance calculation and count within the plugin.

Consider too that you may be able to use the NTSC profile to look for out of gamut colors – this will catch illegal colors as well as luminance values. Soft proofing might be a good way to verify your plugin even if you don’t use this feature in your code.


Mike Russell
www.curvemeister.com
www.geigy.2y.net

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

Related Discussion Topics

Nice and short text about related topics in discussion sections