Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a file with about 500 layers, and I need to replace a color in all of them. I looked through different solutions here and elsewhere, and they all suggested using an adjustment layer or something similar. This doesn't help much - the layers are used for animation so it would break everything.

The best I could come up with is export layers to files, run a batch on those files, and load them back in. However, 15 minutes later it only managed me to export 3 frames out of 500. Is this some kind of a joke? The whole gif is 300kb and imagemagick managed to export it in a fraction of a second, though I'm not happy with what it did to transparency.


ffmpeg did the exporting just fine, now I'm trying to get photoshop to replace color. I select a gray color #e1e1e1, click on the result, and type in the required color #f2f6f8. It suggests hue -160, sat +30, lightness +8, which does pretty much nothing at all. How is it possible that when I specify the result color I need, it fails to figure out how to do the replacement?

I ended up using a short piece of code to do the color conversion (because I had a png library at hand) and imagemagick to convert it back to gif. So much for the almighty photoshop, failed me at all 3 steps.

share|improve this question
I don't get why an adjustment layer messes with the animation. Could you explain that? – Saaru Lindestøkke Mar 11 '14 at 10:49
I guess I was wrong there, I thought it would add a new frame instead of affecting all existing frames. I just don't understand why its not possible to select all frames and click image->replace color. Still, the process of importing/exporting lots of images into photoshop takes so long that I decided to stick with imagemagick. – riv Mar 11 '14 at 20:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.