1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00

ppmdraw, ppmglobe, pnmmercator: add pages (#15357)

* fix ci

* ppmdraw, ppmglobe, pnmmercator: add pages

* Apply suggestions from code review

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
Juri Dispan 2024-12-29 11:22:41 +01:00 committed by GitHub
parent 0d5d7c5558
commit a850046d7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,13 @@
# pnmmercator
> Perform Mercator transformations on Netpbm images.
> See also: `pnmglobe`.
> More information: <https://netpbm.sourceforge.net/doc/pnmmercator.html>.
- Convert a rectangular projection worldmap to Mercator projection:
`pnmmercator {{path/to/image.pnm}} > {{path/to/output.pnm}}`
- Convert a Mercator projection worldmap to rectangular projection:
`pnmmercator -inverse {{path/to/image.pnm}} > {{path/to/output.pnm}}`

13
pages/common/ppmdraw.md Normal file
View file

@ -0,0 +1,13 @@
# 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}}`

13
pages/common/ppmglobe.md Normal file
View file

@ -0,0 +1,13 @@
# ppmglobe
> Generate strips of an image suitable to be glued onto a sphere.
> See also: `pnmmercator`.
> More information: <https://netpbm.sourceforge.net/doc/ppmglobe.html>.
- Transform an image to strips that can be cut out and glues onto a sphere:
`ppmglobe {{number_of_strips}} {{path/to/image.ppm}} > {{path/to/output.ppm}}`
- Use the specified color for the areas between the strips:
`ppmglobe -background {{red}} {{number_of_strips}} {{path/to/image.ppm}} > {{path/to/output.ppm}}`