2

When making animated gifs or short stop-motion videos from an image sequence, I want them to have all similar levels so that the output looks smooth. It does not have to be a professional quality result, just a simple command to adjust for the different photographs having slightly different exposure variables which causes flickering in the animation.

So, I'm looking for a simple command line way to make a sequence of images normalised to approximately similar levels.

wim
  • 3,327

1 Answers1

3

Choose one of the images that has good levels. Use the imagemagick script histmatch to adjust the histograms of the other images to match that one's; or use bcmatch to adjust only brightness and contrast.

Call e.g. histmatch good_in.bmp ith_in.bmp ith_out.bmp from within a loop, in whatever language you like: bash, perl, python, ruby, etc.