Photoshop Contest PhotoshopContest.com
Creative Contests. Real Prizes. Essential Resource.
You are not logged in. Log in or Register

 


Photoshop Contest Forum Index - Ask the Experts - Need Action assistance - Reply to topic

TofuTheGreat

Location: Back where I belong.

Post Fri Feb 18, 2011 1:37 pm   Reply with quote         


We've got a directory of images that we want to batch process to correct the color of the background. How can I reference the top left pixel color in an action (CS3)?

I need to reference it so that I can make the background of each image pure white. There's over 1,000 images to process and going one-by-one sucks.

For instance the pic below has #FCFEFC as the top left pixel color and I need to adjust it to #FFFFFF. BTW all the images are GIF format and have to stay as GIF.





_________________
Why I do believe it's pants-less o'clock! - Lar deSouza
”The mind is like a parachute, it doesn’t work if it isn’t open.” - Frank Zappa
Created using photoshop and absolutely no talent. - reyrey

jcfreak6363

Location: Waiting...

Post Fri Feb 18, 2011 2:22 pm   Reply with quote         






_________________
"Be water my friend" - Bruce Lee

http://psefx.wordpress.com/ http://imagedetailing.jimdo.com/
seamusoisin

Location: Ottawa Strong!

Post Fri Feb 18, 2011 2:26 pm   Reply with quote         


I pasted your photo and created a small action.
I set color to white, Quick Selection tool, Bucket Fill and then I saw that the logos partly disappeared. So some selecting prior to the coloring has to take place

Default color to white.
Rectangular select the logo, I'm assuming they are basically in the same place, if not, I suggest you open a beer and it's going to be a long night.
Copy logo to clipboard
Deselect
Magic Wand on background
Fill with Bucket tool
Paste logo from clipboard.



Never did a batch action but the web should have an answer.




_________________
I had the right to remain silent....but I didn't.

http://burlingtonscwt.wordpress.com/

Be my assbook friend
TofuTheGreat

Location: Back where I belong.

Post Fri Feb 18, 2011 2:48 pm   Reply with quote         


seamusoisin wrote:
I'm assuming they are basically in the same place, if not, I suggest you open a beer and it's going to be a long night.


Logos are all over depending on the shape of the house. Figured my batch/action would simply adjust the color. Either through levels, hue/sat, selective color, contrast, etc.

The big thing is that i need to get the top left pixel's color value so that I can do the adjustment based on that color value.

@jc... I've used the batch processor before and have recorded actions before. Just never saw anything that would let me reference a specific pixel as my starting point.




_________________
Why I do believe it's pants-less o'clock! - Lar deSouza
”The mind is like a parachute, it doesn’t work if it isn’t open.” - Frank Zappa
Created using photoshop and absolutely no talent. - reyrey

vokaris
Site Moderator

Post Fri Feb 18, 2011 2:56 pm   Reply with quote         


Your GIFs are screwed, they seem to have been saved as JPGs sometime in the past. The background is not really a solid color - it looks like light JPG artifacts.

In the image that you posted, the background is FCFEFC with a FCFEF4 (faint yellow) dot pattern

If they all look grayscale and are of similar quality, I would do the following:

1. convert to grayscale
2. Image Adjust Level - pull the white slider (on the right side) to about 250, this should take care of making the faint background white
3. convert to index color
4. save




Post Fri Feb 18, 2011 3:13 pm   Reply with quote         


Re: need action assistance

Dude, talk to your wife.. Razz


(Az slinks back into the shadows)




vokaris
Site Moderator

Post Fri Feb 18, 2011 3:13 pm   Reply with quote         


P.S. converting back to index color seems to make the graphic a bit darker, you can offset the effect by adjusting the levels in step 2 above to 0 - 1.2 - 250 (move the middle slider to the left a bit)




TofuTheGreat

Location: Back where I belong.

Post Fri Feb 18, 2011 3:25 pm   Reply with quote         


vokaris wrote:
Your GIFs are screwed, they seem to have been saved as JPGs sometime in the past.


Yep. Originally jpegs. The were converted to GIF to save disk space back before we brought the site hosting in-house (provider was local and couldn't give us anymore space in their Podunk operation).

All images are greyscale images like the example above. So I think simply adjusting the levels would do. I just want to ensure that I get them to white. Guess I can only get a closer approximation than what they are now. Confused




_________________
Why I do believe it's pants-less o'clock! - Lar deSouza
”The mind is like a parachute, it doesn’t work if it isn’t open.” - Frank Zappa
Created using photoshop and absolutely no talent. - reyrey

TofuTheGreat

Location: Back where I belong.

Post Fri Feb 18, 2011 3:26 pm   Reply with quote         


Azionite wrote:
Re: need action assistance

Dude, talk to your wife.. Razz


(Az slinks back into the shadows)
Laughing Laughing Laughing




_________________
Why I do believe it's pants-less o'clock! - Lar deSouza
”The mind is like a parachute, it doesn’t work if it isn’t open.” - Frank Zappa
Created using photoshop and absolutely no talent. - reyrey

Tawiskaro

Location: New York

Post Fri Feb 18, 2011 3:38 pm   Reply with quote         


TofuTheGreat wrote:
vokaris wrote:
Your GIFs are screwed, they seem to have been saved as JPGs sometime in the past.


Yep. Originally jpegs. The were converted to GIF to save disk space back before we brought the site hosting in-house (provider was local and couldn't give us anymore space in their Podunk operation).

All images are greyscale images like the example above. So I think simply adjusting the levels would do. I just want to ensure that I get them to white. Guess I can only get a closer approximation than what they are now. Confused


I just copied your image and created a new raster layer beneath it as pure white (#ffffff). I then set your image's layer to multiply. It seemed do get the result you want (at least in Paint Shop Photo). I merged the layers then increased the contrast to 100%. The background pixels seemed to stay pure white. Your results may vary, but if they don't can you batch process using the technique?




TofuTheGreat

Location: Back where I belong.

Post Fri Feb 18, 2011 3:46 pm   Reply with quote         


Tawiskaro wrote:
TofuTheGreat wrote:
vokaris wrote:
Your GIFs are screwed, they seem to have been saved as JPGs sometime in the past.


Yep. Originally jpegs. The were converted to GIF to save disk space back before we brought the site hosting in-house (provider was local and couldn't give us anymore space in their Podunk operation).

All images are greyscale images like the example above. So I think simply adjusting the levels would do. I just want to ensure that I get them to white. Guess I can only get a closer approximation than what they are now. Confused


I just copied your image and created a new raster layer beneath it as pure white (#ffffff). I then set your image's layer to multiply. It seemed do get the result you want (at least in Paint Shop Photo). I merged the layers then increased the contrast to 100%. The background pixels seemed to stay pure white. Your results may vary, but if they don't can you batch process using the technique?

Not a bad idea at all! Could even try screen on the top layer of white in CS3. I'll give that a shot.




_________________
Why I do believe it's pants-less o'clock! - Lar deSouza
”The mind is like a parachute, it doesn’t work if it isn’t open.” - Frank Zappa
Created using photoshop and absolutely no talent. - reyrey

TofuTheGreat

Location: Back where I belong.

Post Fri Feb 18, 2011 3:56 pm   Reply with quote         


Tried putting a white layer underneath and then setting the greyscale image layer to "luminosity" and that resulted in #fdfdfd so at least it's closer.

I think I can then do a color replace of that value for #ffffff and it should work. Time to experiment....

Edit - Did that and then dropped another white layer on top set to "soft light" merged down and the resulting background is #fefefe. So getting very close to a workable batch action. Very Happy

Edit #2 - Sliding the levels I do see the speckling artifacts that voks pointed out. Sad

This task is a PITA!




_________________
Why I do believe it's pants-less o'clock! - Lar deSouza
”The mind is like a parachute, it doesn’t work if it isn’t open.” - Frank Zappa
Created using photoshop and absolutely no talent. - reyrey

vokaris
Site Moderator

Post Fri Feb 18, 2011 6:52 pm   Reply with quote         


Is there a reasonable explanation why you wouldn't try the steps I outlined above?




TofuTheGreat

Location: Back where I belong.

Post Fri Feb 18, 2011 6:57 pm   Reply with quote         


vokaris wrote:
Is there a reasonable explanation why you wouldn't try the steps I outlined above?
Cuz I didn't read it close enough. Embarassed

Will try on Monday.

For now.... WEEKEND!




_________________
Why I do believe it's pants-less o'clock! - Lar deSouza
”The mind is like a parachute, it doesn’t work if it isn’t open.” - Frank Zappa
Created using photoshop and absolutely no talent. - reyrey

Photoshop Contest Forum Index - Ask the Experts - Need Action assistance - Reply to topic

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Navigate PSC
Contests open  completed  winners  prizes  events  rules  rss 
Galleries votes  authentic  skillful  funny  creative  theme  winners 
Interact register  log in/out  forum  chat  user lookup  contact 
Stats monthly leaders  hall of fame  record holders 
PSC advantage  news (rss)  faq  about  links  contact  home 
Help faq  search  new users  tutorials  contact  password 

Adobe, the Adobe logo, Adobe Photoshop, Creative Suite and Illustrator are registered trademarks of Adobe Systems Incorporated.
Text and images copyright © 2000-2006 Photoshop Contest. All rights reserved.
A venture of ExpertRating.com