forked from schani/metapixel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metapixel.xml
139 lines (122 loc) · 5.03 KB
/
metapixel.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
<!ENTITY dhfirstname "<firstname>Chris</firstname>">
<!ENTITY dhsurname "<surname>Vanden Berghe</surname>">
<!ENTITY dhdate "<date>May 5, 2004</date>">
<!ENTITY dhsection "<manvolnum>1</manvolnum>">
<!ENTITY dhemail "<email>Chris@VandenBerghe.org</email>">
<!ENTITY dhusername "Chris Vanden Berghe">
<!ENTITY dhucpackage "<refentrytitle>METAPIXEL</refentrytitle>">
<!ENTITY dhpackage "metapixel">
<!ENTITY debian "<productname>Debian</productname>">
<!ENTITY gnu "<acronym>GNU</acronym>">
<!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
]>
<refentry>
<refentryinfo>
<address>
&dhemail;
</address>
<author>
&dhfirstname;
&dhsurname;
</author>
<copyright>
<year>2004</year>
<holder>&dhusername;</holder>
</copyright>
&dhdate;
</refentryinfo>
<refmeta>
&dhucpackage;
&dhsection;
</refmeta>
<refnamediv>
<refname>&dhpackage;</refname>
<refpurpose>generator for photomosaics</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>metapixel-prepare</command>
<arg><option><replaceable>options</replaceable></option></arg>
<arg><filename>srcdir</filename></arg>
<arg><filename>destdir</filename></arg>
</cmdsynopsis>
<funcsynopsisinfo>prepares the pictures in <filename>srcdir</filename> by creating resized images and a table file in <filename>destdir</filename></funcsynopsisinfo>
<cmdsynopsis>
<command>&dhpackage;</command>
<arg><option><replaceable>options</replaceable></option></arg>
<arg>--metapixel <filename>input.jpg</filename>
<filename>output.png</filename> --library
<filename>destdir</filename></arg>
</cmdsynopsis>
<funcsynopsisinfo>creates a photomosaic <filename>output.png</filename> using <filename>input.jpg</filename> as the input image and <filename>destdir/tables.mxt</filename> as table file</funcsynopsisinfo>
</refsynopsisdiv>
<refsect1>
<title>DESCRIPTION</title>
<para>This manual page documents briefly the
<command>&dhpackage;</command> and
<command>&dhpackage;-prepare</command> commands. For more
information check the README file included in the
distribution.</para>
<para><command>&dhpackage;</command> is a program for generating
photomosaics. It can generate classical photomosaics, in which the
source image is viewed as a matrix of equally sized rectangles for
each of which a matching image is substitued, as well as
collage-style photomosaics, in which rectangular parts of the
source image at arbitrary positions (i.e. not aligned to a matrix)
are substituted by matching images.</para>
<para><command>&dhpackage;-prepare</command> is a utility that
needs to be run before metapixel can be used. It prepares your
source images so that they can be used by
<command>&dhpackage;</command> to create the actual
photomosaic.</para>
</refsect1>
<refsect1>
<title>USAGE</title>
<para><command>&dhpackage;-prepare <filename>srcdir</filename>
<filename>destdir</filename></command> has to be run first.
<filename>srcdir</filename> is the path to the directory
containing the source images,
e.g. <filename>~/Pictures/Holidays</filename>.
<filename>destdir</filename>,
e.g. <filename>~/.metapixel</filename>, is the path to the
directory where you want to store the rescaled images and the
<filename>tables.mxt</filename> index file. This directory should
be created manually before running
<command>&dhpackage;-prepare</command>.</para>
<para><command>&dhpackage; --metapixel
<filename>input.jpg</filename> <filename>output.png</filename>
--library <filename>destdir</filename></command> is then used
to transform an image (<filename>input.jpg</filename>) into a
mosaic (<filename>output.png</filename>) using the source images
(described by <filename>destdir/tables.mxt</filename>).
</para>
</refsect1>
<refsect1>
<title>OPTIONS</title>
<para>The options are described in the README file or by running
<command>&dhpackage;</command> or
<command>&dhpackage;-prepare</command> with the --help
option.</para>
</refsect1>
<refsect1>
<title>SEE ALSO</title>
<para>The README file is included in the Metapixel
distribution.</para>
</refsect1>
<refsect1>
<title>AUTHOR</title>
<para>This manual page was written by &dhusername; &dhemail; for
the &debian; system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the
terms of the &gnu; General Public License, Version 2 any later
version published by the Free Software Foundation.
</para>
<para>
On Debian systems, the complete text of the GNU General Public
License can be found in /usr/share/common-licenses/GPL.
</para>
</refsect1>
</refentry>