Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I scan a old book that is turned yellow, I remove the yellow by using Photoshop like this.

  1. open Adjustment -> Hue/Saturation
  2. select Yellows and set Lightness to 100
  3. select Reds and set Lightness to 100

By this operation I can remove the unnecessary color clearly. (Gray scale does not work like this.)

But not everybody have a Photoshop and I think ImageMagick can do same thing. So I tried to find the options for that operation in ImageMagick, but I could not find it.

How can I remove yellow color from a aged book?

share|improve this question
    
I think that this script will have you covered. Not exactly sure how the colors map between the photoshop way and the Imagemagick way, however. –  nerdwaller Aug 23 '13 at 12:43
    
Thanks for info. I tried with colorbalance -c r -a 0 input.jpg output.jpg. But it does not remove specified color from the image. –  Tetsu Aug 24 '13 at 14:50

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.