Update cheatsheets

This commit is contained in:
ivuorinen
2024-12-30 00:18:23 +00:00
parent 2f5c37424b
commit aa60befad7
7 changed files with 137 additions and 0 deletions

18
tldr/ppmdraw Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`