Man page - infotopam(1)
Packages contains this manual
- pamtoxvmini(1)
- srftopam(1)
- mgrtopbm(1)
- pamperspective(1)
- sirtopnm(1)
- hipstopgm(1)
- ppmhist(1)
- pamsharpness(1)
- pamtopnm(1)
- pamarith(1)
- pamtowinicon(1)
- yuvtoppm(1)
- rawtopgm(1)
- pnmtoddif(1)
- pamoil(1)
- pnmsplit(1)
- pbmtolps(1)
- pcxtoppm(1)
- ilbmtoppm(1)
- ppmpat(1)
- pamrecolor(1)
- cmuwmtopbm(1)
- pbmupc(1)
- yuvsplittoppm(1)
- ppmbrighten(1)
- pnmindex(1)
- pgmnoise(1)
- pgmkernel(1)
- ppmdither(1)
- netpbm(1)
- rletopnm(1)
- pamfind(1)
- pamwipeout(1)
- pamrubber(1)
- pnmcat(1)
- pgmramp(1)
- ppmtomap(1)
- pammasksharpen(1)
- pbmtoybm(1)
- pnmtopnm(1)
- ppmtoyuv(1)
- pnmnlfilt(1)
- faxformat(1)
- pamtopfm(1)
- pnmtosgi(1)
- svgtopam(1)
- pgmdeshadow(1)
- pamenlarge(1)
- pbmtosunicon(1)
- pamlookup(1)
- pamchannel(1)
- ppmlabel(1)
- mtvtoppm(1)
- pamedge(1)
- winicontopam(1)
- ppmglobe(1)
- pnmrotate(1)
- ppmrelief(1)
- ppmfade(1)
- lispmtopgm(1)
- pgmminkowski(1)
- pgmtopbm(1)
- pbmtoescp2(1)
- pi3topbm(1)
- pnmscale(1)
- pbmto10x(1)
- pnmtorle(1)
- pbmclean(1)
- pbmtomgr(1)
- ppmtoneo(1)
- pamtohdiff(1)
- spottopgm(1)
- pamcomp(1)
- ppmtogif(1)
- pambayer(1)
- pamhomography(1)
- pamtouil(1)
- escp2topbm(1)
- pnmconvol(1)
- ppmdcfont(1)
- qrttoppm(1)
- rlatopam(1)
- ppmtoterm(1)
- ppmforge(1)
- hdifftopam(1)
- pnmtopclxl(1)
- pnmcrop(1)
- imagetops(1)
- pamtofits(1)
- pnmtopalm(1)
- pnmquant(1)
- pbm(5)
- pbmtox10bm(1)
- pbmpscale(1)
- pbmmake(1)
- macptopbm(1)
- pgmtosbig(1)
- zeisstopnm(1)
- bmptoppm(1)
- pjtoppm(1)
- sgitopnm(1)
- pbmtocmuwm(1)
- pnmalias(1)
- pamsplit(1)
- pambackground(1)
- pamdice(1)
- ppmtobmp(1)
- pbmtogem(1)
- rgb3toppm(1)
- ppmtoapplevol(1)
- g3topbm(1)
- ppmtoyuvsplit(1)
- ppmtopcx(1)
- pamditherbw(1)
- pnmgamma(1)
- pamcat(1)
- ppmtoxpm(1)
- sbigtopgm(1)
- pammosaicknit(1)
- pnmdepth(1)
- pamstretch-gen(1)
- pamtilt(1)
- ppmddumpfont(1)
- spctoppm(1)
- xpmtoppm(1)
- pamtosrf(1)
- pampick(1)
- pbmtoptx(1)
- ppmspread(1)
- pnmtojbig(1)
- ppmshadow(1)
- winicon(1)
- pbmtomda(1)
- pbmtocis(1)
- wbmptopbm(1)
- pamgetcolor(1)
- pnmarith(1)
- pammixmulti(1)
- pamfile(1)
- pbmtoatk(1)
- pamrestack(1)
- pnmquantall(1)
- pam(5)
- pbmtoln03(1)
- pbmtext(1)
- ppmshift(1)
- pbmtoxbm(1)
- pnmremap(1)
- pamtopam(1)
- leaftoppm(1)
- pnmpaste(1)
- pamstretch(1)
- pnmflip(1)
- pamdepth(1)
- ppmtoeyuv(1)
- pampop9(1)
- pamshuffle(1)
- pgmtolispm(1)
- pgmtofs(1)
- pgmabel(1)
- pnmtops(1)
- ppmtoppm(1)
- pbmmask(1)
- winicontoppm(1)
- cameratopam(1)
- ppmwheel(1)
- pamtojpeg2k(1)
- ppmtoarbtxt(1)
- pgmtopgm(1)
- pambrighten(1)
- pnminterp(1)
- pamhue(1)
- ppmtopgm(1)
- sldtoppm(1)
- pnmstitch(1)
- mrf(1)
- ppmtoleaf(1)
- ppmtojpeg(1)
- pamsharpmap(1)
- pngtopnm(1)
- pbmtomacp(1)
- fitstopnm(1)
- pnmcut(1)
- picttoppm(1)
- pamfix(1)
- pbmtodjvurle(1)
- extendedopacity(5)
- pnmmargin(1)
- pbmtogo(1)
- xbmtopbm(1)
- jpegtopnm(1)
- ppmtowinicon(1)
- icontopbm(1)
- pnminvert(1)
- pamx(1)
- pamtoqoi(1)
- pamtable(1)
- st4topgm(1)
- ppmflash(1)
- ybmtopbm(1)
- pamsistoaglyph(1)
- pamunlookup(1)
- pgmbentley(1)
- pbmpage(1)
- pnmsmooth(1)
- pamtotiff(1)
- fiascotopnm(1)
- asciitopgm(1)
- pnmtile(1)
- ppmtopj(1)
- neotoppm(1)
- pbmtonokia(1)
- pamseq(1)
- ppmntsc(1)
- ppmtosixel(1)
- pbmtopk(1)
- pamsumm(1)
- cistopbm(1)
- pammixinterlace(1)
- pamtodjvurle(1)
- pamtooctaveimg(1)
- pnmtosir(1)
- pgmoil(1)
- pamcrater(1)
- pbmtopgm(1)
- pamstack(1)
- pnmfile(1)
- pnmtotiffcmyk(1)
- pnmenlarge(1)
- pbmtoepsi(1)
- sputoppm(1)
- pi1toppm(1)
- pbmtopsg3(1)
- pbmtoicon(1)
- sunicontopnm(1)
- pnmpad(1)
- pnmcomp(1)
- tifftopnm(1)
- pbmtoibm23xx(1)
- ppmquantall(1)
- pamtris(1)
- pdbimgtopam(1)
- pbmtomatrixorbital(1)
- atktopbm(1)
- pbmtobbnbg(1)
- jpeg2ktopam(1)
- palmtopnm(1)
- pnmscalefixed(1)
- pktopbm(1)
- ximtoppm(1)
- pbmtolj(1)
- imgtoppm(1)
- pgm(5)
- pamundice(1)
- jbigtopnm(1)
- pamexec(1)
- pamstereogram(1)
- ppmtompeg(1)
- pampaintspill(1)
- pnmmontage(1)
- ppmtotga(1)
- pngtopam(1)
- pamfixtrunc(1)
- ppmtv(1)
- pfmtopam(1)
- ppmtopuzz(1)
- avstopam(1)
- ppmnorm(1)
- ppmtopi1(1)
- pbmtoepson(1)
- ddbugtopbm(1)
- pbmreduce(1)
- mrftopbm(1)
- pbmminkowski(1)
- ppmcolormask(1)
- qoitopam(1)
- pgmtexture(1)
- ppmtoacad(1)
- infotopam(1)
- pamshadedrelief(1)
- pamdeinterlace(1)
- ppmtorgb3(1)
- eyuvtoppm(1)
- pamlevels(1)
- ppmdraw(1)
- pgmenhance(1)
- pamthreshold(1)
- ppmtoascii(1)
- yuy2topam(1)
- pbmtoascii(1)
- pamcut(1)
- pbmtoppa(1)
- pnmtotiff(1)
- mdatopbm(1)
- pamtohtmltbl(1)
- brushtopbm(1)
- pgmmedian(1)
- pstopnm(1)
- pgmhist(1)
- fstopgm(1)
- ppmtouil(1)
- pnmpsnr(1)
- pbmtowbmp(1)
- anytopnm(1)
- pbmtozinc(1)
- pbmtog3(1)
- pamtoavs(1)
- thinkjettopbm(1)
- ppmtoilbm(1)
- pamtogif(1)
- ppmrainbow(1)
- 411toppm(1)
- pamvalidate(1)
- rasttopnm(1)
- pnmtoxwd(1)
- ppmquant(1)
- ppmdim(1)
- ppmdist(1)
- pgmmake(1)
- ppmcolors(1)
- pamaddnoise(1)
- pnmhisteq(1)
- pnmtoplainpnm(1)
- pbmnoise(1)
- pbmtopi3(1)
- ppm(5)
- gouldtoppm(1)
- pgmmorphconv(1)
- pnmnoraw(1)
- ppmrough(1)
- gemtopnm(1)
- pnmnorm(1)
- pnm(5)
- tgatoppm(1)
- pnmcolormap(1)
- gemtopbm(1)
- ppmdmkfont(1)
- pamtotga(1)
- pfm(5)
- ppmcie(1)
- pamgauss(1)
- pamscale(1)
- pamendian(1)
- ppmtoicr(1)
- pgmslice(1)
- pnmtorast(1)
- pamtopng(1)
- pamflip(1)
- pnmmercator(1)
- pc1toppm(1)
- pbmtextps(1)
- ppmtopict(1)
- xvminitoppm(1)
- ppmmix(1)
- ppmchange(1)
- pgmcrater(1)
- pgmtost4(1)
- pamtopdbimg(1)
- pcdindex(1)
- pamtompfont(1)
- pnmtofits(1)
- pcdovtoppm(1)
- ppm3d(1)
- giftopnm(1)
- pgmtoppm(1)
- pbmlife(1)
- pgmedge(1)
- rawtoppm(1)
- pamrgbatopng(1)
- pnmtopng(1)
- pbmtoplot(1)
- pamtosvg(1)
- ppmtopjxl(1)
- pgmnorm(1)
- pbmtomrf(1)
- pamslice(1)
- pnmshear(1)
- bmptopnm(1)
- xwdtopnm(1)
- ppmtomitsu(1)
- ppmmake(1)
- ppmtolj(1)
- pnmhistmap(1)
- psidtopgm(1)
- pamgradient(1)
- pnmtofiasco(1)
- bioradtopgm(1)
- pamfunc(1)
- pamaltsat(1)
- pnmtojpeg(1)
- pamsummcol(1)
- pbmto4425(1)
- ppmtospu(1)
apt-get install netpbm
Manual
Infotopam User Manual
NAMESYNOPSIS
EXAMPLES
DESCRIPTION
OPTIONS
SEE ALSO
NOTES
HISTORY
LIMITATIONS
AUTHOR
DOCUMENT SOURCE
NAME
infotopam - convert Amiga .info icons to PAM
SYNOPSIS
infotopam [ -forcecolor ] [ -numcolors numcolors ] [ -selected ] [ -verbose ] [ index color ...] [ filename ]
Minimum unique abbreviation of option is acceptable. You may use double hyphens instead of single hyphen to denote options. You may use white space in place of the equals sign to separate an option name from its value.
EXAMPLES
$ infotopam amiga.info > amiga.first.pam
Use the -selected option to convert the ’selected’ version of the icon rather than the regular version. Here infotopam reads from Standard Input:
infotopam -selected < amiga.info > amiga.second.pam
Use -numcolors to change the colors.
infotopam -numcolors 2 0 green 3 rgb:FF/00/00 icon.info > icon.pam
Since Amiga monitors do not use square pixels, some icons may appear squished. Filtering the output through pamscale can fix this:
$ infotopam squish.info | pamtopnm | pamscale -yscale 1.7 > normal.pnm
DESCRIPTION
This program is part of Netpbm (1).
infotopam converts an Amiga .info (icon) image to a PAM image. infotopam reads a .info file from filename , or from Standard Input if you do not specify a file name, and writes the converted PAM image to Standard Output.
infotopam handles 1- and 2 bit-plane icons. If the .info icon has only 1 bit-plane, infotopam generates a black and white PAM image; otherwise it generates a color PAM image. In the latter case, you can choose the colors or keep the original Amiga standard colors. You can force infotopam to produce a color PAM with 1 bit-plane input with a -forcecolor option.
OPTIONS
In addition to
the options common to all programs based on libnetpbm (most
notably
-quiet
, see
Common Options
),
infotopam
recognizes the following command line
options:
-numcolors
numcolors
This causes the program to
change the colors in the conversion. A
2-bit-plane Amiga .icon image has four colors, numbered 0
through 3.
Those colors are as follows.
|
0 |
Blue (00, 55, AA)
|
1 |
White (FF, FF, FF)
|
2 |
Black (00, 00, 20)
|
3 |
Orange (FF, 8A, 00)
To specify the
changes, specify the number of colors you are changing
as the argument of
-numcolors
and for each color,
specify a pair
of command line arguments, the first being the color index 0
through 3
and the second being the color to substitute. Specify the
color
(
color
) as described for the
argument of the
pnm_parsecolor()
library routine
.
These
arguments go before the input file name argument,
if any
. This is an unusual syntax for a Netpbm
program.
-selected
An Amiga .info
image contains two versions of the icon: one for
regular display and one to display when the thing
represented by
the icon is selected. By default,
infotopam
converts
the
regular icon, but this option causes it to convert the
selected icon
instead.
-forcecolor
This causes
infotopam
to convert 1 bit-plane icons to color
PAM images instead of black and white. The colors are the
index 2
color for black and the index 1 color for white.
-verbose
This causes
infotopam
to issue informational messages about
the conversion process.
This option was new in Netpbm 11.06 (March 2024).
All options can be abbreviated to their shortest unique prefix.
SEE ALSO
pam (1) pamtopnm (1) pamscale (1)
NOTES
Thanks to the following people on comp.sys.amiga.programmer for tips and pointers on decoding the info file format:
|
• |
Ben Hutchings |
|||
|
• |
Thomas Richter |
|||
|
• |
Kjetil Svalastog Matheussen |
|||
|
• |
Anders Melchiorsen |
|||
|
• |
Dirk Stoecker |
|||
|
• |
Ronald V.D. |
The format of the Amiga .info file is as follows:
DiskObject
header 78 bytes
Optional DrawerData header 56 bytes
First icon header 20 bytes
First icon data Varies
Second icon header 20 bytes
Second icon data Varies
The DiskObject header contains, among other things, the magic number (0xE310), the object width and height (inside the embedded Gadget header), and the version.
Each icon header contains the icon width and height, which can be smaller than the object width and height, and the number of bit-planes.
The icon data has the following format:
BIT-PLANE
planes, each with
HEIGHT
rows of (
WIDTH
+15) / 16 * 2 bytes length.
So if you have a 9x3x2 icon, the icon data will look like this:
aaaa aaaa a000
0000
aaaa aaaa a000 0000
aaaa aaaa a000 0000
bbbb bbbb b000 0000
bbbb bbbb b000 0000
bbbb bbbb b000 0000
where a is a bit for the first bit-plane, b is a bit for the second bit-plane, and 0 is padding. Thanks again to Ben Hutchings for his very helpful post!
HISTORY
infotopam was new in Netpbm 10.22 (April 2004).
LIMITATIONS
infotopam currently only handles 1 and 2 bit-plane icons.
There is no pamtoinfo command, since the .info files contain a lot more than just icon data, and mapping the colors would be difficult.
AUTHOR
Copyright (C) 2000, 2004 by Richard Griswold.
DOCUMENT SOURCE
This manual page was generated by the Netpbm tool ’makeman’ from HTML source. The master documentation is at
http://netpbm.sourceforge.net/doc/infotopam.html