BLOG
23 November 2022

Lighten, darken, increase contrast on (text) images, for readability (ImageMagick)

TTTThis

Lighten those pages

(using rm to add security permissions then remove them after https://stackoverflow.com/questions/52861946/imagemagick-not-authorized-to-convert-pdf-to-an-image)

sudo mv /etc/ImageMagick-6/policy.xml /etc/ImageMagick-6/policy.xml.off

-----When done, you can restore the original with

sudo mv /etc/ImageMagick-6/policy.xml.off /etc/ImageMagick-6/policy.xml

3 step process:

(change the level value)

With the arg -threshold you get a "black and white" (only) image. But I want to keep the gray scale, which is possible with the arg -level: you keep the gray, letting the image with a darker or lighter gray scale. (referring to something like <<< convert output*.jpg -normalize -threshold 80% final-%02d.jpg >>>

NewerCreate a photo montage (imageMagick) OlderExtract some pages from a pdf (qpdf)