Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

25
ppmtosixel Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ppmtosixel
> Convert a PPM image to DEC sixel format.
> More information: <https://netpbm.sourceforge.net/doc/ppmtosixel.html>.
- Convert a PPM image to DEC sixel format:
`ppmtosixel {{path/to/file.ppm}} > {{path/to/file.sixel}}`
- Produce an uncompressed SIXEL file that is much slower to print:
`ppmtosixel -raw {{path/to/file.ppm}} > {{path/to/file.sixel}}`
- Add a left margin of 1.5 inches:
`ppmtosixel -margin {{path/to/file.ppm}} > {{path/to/file.sixel}}`
- Encode control codes in a more portable (although less space-efficient) way:
`ppmtosixel -7bit {{path/to/file.ppm}} > {{path/to/file.sixel}}`