This shows you the differences between two versions of the page.
cs:imagemagik [2019/09/16 10:22] paolo_bolzoni Add a way to make a b/w from commandline |
cs:imagemagik [2020/04/19 02:14] paolo_bolzoni |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | === Convert pdf pages to a picture === | ||
+ | |||
+ | $ gs -sDEVICE=pngalpha -o <output-%04d.png> -r1200 -dFirstPage=<start page idx> -dLastPage=<end page idx> <input> | ||
+ | |||
+ | n.b., the resolution of 1200 pixels for inch is quite large. Probably one wants to convert the result in smaller files. | ||
+ | |||
+ | |||
+ | === Remove pictures from a pdf file === | ||
+ | |||
+ | $ gs -o noimage.pdf -sDEVICE=pdfwrite -dFILTERIMAGE <input> | ||
+ | |||
+ | |||
=== Convert an image to black and white === | === Convert an image to black and white === | ||
$ convert <input> -colorspace HSL -channel L -separate <output> | $ convert <input> -colorspace HSL -channel L -separate <output> |