Photoshop Contest Forum Index - Ask the Experts - Need Action assistance - Reply to topic
TofuTheGreat
Location: Back where I belong.
|
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
|
seamusoisin
Location: Ottawa Strong!
|
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.
|
TofuTheGreat
Location: Back where I belong.
|
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
|
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
|
|
Fri Feb 18, 2011 3:13 pm Reply with quote
Re: need action assistance
Dude, talk to your wife..
(Az slinks back into the shadows)
|
vokaris
Site Moderator
|
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.
|
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.
_________________ 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.
|
Fri Feb 18, 2011 3:26 pm Reply with quote
_________________ 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
|
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.
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.
|
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.
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.
|
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.
Edit #2 - Sliding the levels I do see the speckling artifacts that voks pointed out.
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
|
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.
|
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.
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
|