pngtopi1 [OPTIONS] <input> [<output>]
| Short | Long options | Description |
|---|---|---|
-h |
--help --usage |
Print this help message and exit |
-V |
--version |
Print version message and exit |
-q |
--quiet |
Print less messages |
-v |
--verbose |
Print more messages |
-c |
--color=XY |
Select color conversion method (see below) |
-e |
--ste |
STE colors (short for --color=4r) |
-z |
--pcx |
Force output as a pc1, pc2 or pc3 |
-r |
--pix |
Force output as a pi1, pi2 or pi3 |
-d |
--same-dir |
automatic save path includes input path |
When creating Degas image the <input> image resolution is used to
select the <output> type.
PI1/PC1images are320x200x16colorsPI2/PC2images are640x200x4colorsPI3/PC3images are640x400x2monochrome (black and white)
- If
<output>is omitted the file path is created automatically. - If the
--same-diroption is omitted the output path is the current working directory. Otherwise it is the same as the input file. - The filename part of the
<output>path is the<input>filename with its dot extension replaced by the output format natural dot extension.
- If
--pixor--pcxis specified the<output>is respectively a raw (PI?) or RLE compressed (PC?) Degas image whatever the<input>. - If
<input>is aPNGimage the default is to create aPI?image unless a provided<output>suggest otherwise. - If
<input>is a Degas image the default is to create aPNGimage unless a provided<output>suggest otherwise. - If
pngtopi1detects a discrepancy between a provided<output>filename extension and what is really going to be written then it issues a warning but still process as requested. Use-qto remove the warning.
-
The
Xparameter decides if a Degas image will use 3 or 4 bits per color component. The consequence might be the lost of a precious colormap entry in some (rare) cases if the provided input image was not created accordingly. -
The
Yparameter picks the method used to upscale 3/4 bits color component to 8 bits.YName Description Example zZero-fill Simple Left shift $5 -> 3:$40 4:$50rReplicated Replicate left bits $5 -> 3:$49 4:$55fFull-range Ensure full range $5 -> 3:$48 4:$55
make D=0
Or alternatively have a look at the _build directory:
cd _build/i686-w64-mingw32
../compile
| Variable | Description | Default value |
|---|---|---|
PKGCONFIG |
pkg-config program | pkg-config |
PKGFLAGS |
pkg-config flags | undefined |
PNGVERSION |
libpng version | $(PKGCONFIG) libpng --modversion |
PNGCFLAGS |
libpng CFLAGS | $(PKGCONFIG) libpng --cflags |
PNGLIBS |
libpng LDLIBS | $(PKGCONFIG) libpng --libs |
prefix |
install location | undefined |
datadir |
data files location | $(prefix)/share |
D=1 |
Compile with debug | 0 |