HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pnmtoddif — Convert a PNM image to a DDIF image file. More information: <https://netpbm.sourceforge.net/doc/pnmt

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandconvertcliimageddifpnmtoddifpnm

Problem

How to use the pnmtoddif command: Convert a PNM image to a DDIF image file. More information: <https://netpbm.sourceforge.net/doc/pnmtoddif.html>.

Solution

pnmtoddif — Convert a PNM image to a DDIF image file. More information: <https://netpbm.sourceforge.net/doc/pnmtoddif.html>.

Convert a PNM image to a DDIF image file:
pnmtoddif {{path/to/image.pnm}} > {{path/to/image.ddif}}


Explicitly specify the horizontal and vertical resolution of the output image:
pnmtoddif {{[-r|-resolution]}} {{horizontal_dpi}} {{vertical_dpi}} {{path/to/image.pnm}} > {{path/to/image.ddif}}

Code Snippets

Convert a PNM image to a DDIF image file

pnmtoddif {{path/to/image.pnm}} > {{path/to/image.ddif}}

Explicitly specify the horizontal and vertical resolution of the output image

pnmtoddif {{[-r|-resolution]}} {{horizontal_dpi}} {{vertical_dpi}} {{path/to/image.pnm}} > {{path/to/image.ddif}}

Context

tldr-pages: common/pnmtoddif

Revisions (0)

No revisions yet.