snippetbashTip
ppmdraw — Draw lines, text, and more on a PPM image by executing a script. Documentation on the utilized scrip
Viewed 0 times
linescommandtextandclidrawppmdrawmore
Problem
How to use the
ppmdraw command: Draw lines, text, and more on a PPM image by executing a script. Documentation on the utilized scripting language can be found by following the link below. More information: <https://netpbm.sourceforge.net/doc/ppmdraw.html>.Solution
ppmdraw — Draw lines, text, and more on a PPM image by executing a script. Documentation on the utilized scripting language can be found by following the link below. More information: <https://netpbm.sourceforge.net/doc/ppmdraw.html>.Draw on the specified PPM image by executing the supplied script:
ppmdraw -script '{{setpos 50 50; text_here "hello!"; }}' {{path/to/image.pnm}} > {{path/to/output.pnm}}Draw on the specified PPM image by executing the script in the specified file:
ppmdraw -scriptfile {{path/to/script}} {{path/to/image.pnm}} > {{path/to/output.pnm}}Code Snippets
Draw on the specified PPM image by executing the supplied script
ppmdraw -script '{{setpos 50 50; text_here "hello!"; }}' {{path/to/image.pnm}} > {{path/to/output.pnm}}Draw on the specified PPM image by executing the script in the specified file
ppmdraw -scriptfile {{path/to/script}} {{path/to/image.pnm}} > {{path/to/output.pnm}}Context
tldr-pages: common/ppmdraw
Revisions (0)
No revisions yet.