-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> --------- Co-authored-by: K.B.Dharun Krishna <[email protected]>
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}}` |