PNG2INR (1I)     version 1.0.0, Inrimage 4.6.9     March 2022

User Intro    Prog Intro    Liste des commandes    Liste des manuels
Table of Contents


NAME

png2inr - convert a PNG image into an Inrimage image.

SYNOPSYS

png2inr [png-file] [-i|output] [-8] [-noalpha] [-hdr=%d] [-D]

DESCRIPTION

png2inr Any PNG formats are supported : that's meaning a valid Inrimage image is created. However, Inrimage displayers do not displaying correctly some format, for example, PALETTE for image bit size lesser than 8 are not correctly displayed (limitation of Inrimage displayer, not Inrimage image format). Using the -8 option solves most of problems encountered. Some PNG formats can use an alpha channel; they are converted as vector image:
- GRAY and ALPHA are converted into a 2-component image (-v 2),
- RGB and ALPHA are converted into a 4-component image (-v 4).

xvis does not handle alpha channel (but gvis does). One can elimate the alpha channel using the -noalpha option. For Inrimage user: you can keep the channel alpha and filter using extg command. Example with png2inr installed as plugin:

$ extg -v 3 image.png | xvis

Finally, png2inr can display information about a PNG image (option -i).

AVAILABLE OPTIONS

-i
just display info on png file
-8
convert pixel/component values to 8 bits. Works for any bitcoding (1,2,4,16).
-noalpha
Remove the alpha channel (if exist)
-hdr=
to increase the header file size if needed
-D
print Inrimage and program traces

SEE ALSO

inr2png(1i)
See Inrimage(1i) for a description of general options.

TODO

Handle swapped data.