Re: How to have monocrome "Dark Blue" rather than "Black" for the following operation?
Bob Friesenhahn <[email protected]> Mon, 3 Jul 2023 08:10:36 -0500 (CDT)
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 3 Jul 2023, Susmita/Rajib wrote: > > Assuming that I have a formatted text only pdf file with the name > "name.pdf", I can use the following code to batch-convert all the > pages as one monocrome black-white image for each page with the > following command-line: > > convert -density 100 name.pdf -colorspace Gray name-%03d.jpg > > If I want a Dark Blue text with a transparent background for each > pages, instead of Black, how should the command line be altered? > > I checked the man page for the colorspace choices. But I can't make > out how to set a single colour for the monocrome jpeg image? Your first challenge would be that the JPEG format does not support transparency. GIF and PNG formats do. Bob -- Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt