Debian Codegraph @

README.html

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
7 <title>fgallery: a modern, minimalist javascript photo gallery</title>
8 <style type="text/css">
9
10 /*
11 :Author: David Goodger ([email protected])
12 :Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
13 :Copyright: This stylesheet has been placed in the public domain.
14
15 Default cascading style sheet for the HTML output of Docutils.
16
17 See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
18 customize this style sheet.
19 */
20
21 /* used to remove borders from tables and images */
22 .borderless, table.borderless td, table.borderless th {
23 border: 0 }
24
25 table.borderless td, table.borderless th {
26 /* Override padding for "table.docutils td" with "! important".
27 The right padding separates the table cells. */
28 padding: 0 0.5em 0 0 ! important }
29
30 .first {
31 /* Override more specific margin styles with "! important". */
32 margin-top: 0 ! important }
33
34 .last, .with-subtitle {
35 margin-bottom: 0 ! important }
36
37 .hidden {
38 display: none }
39
40 .subscript {
41 vertical-align: sub;
42 font-size: smaller }
43
44 .superscript {
45 vertical-align: super;
46 font-size: smaller }
47
48 a.toc-backref {
49 text-decoration: none ;
50 color: black }
51
52 blockquote.epigraph {
53 margin: 2em 5em ; }
54
55 dl.docutils dd {
56 margin-bottom: 0.5em }
57
58 object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
59 overflow: hidden;
60 }
61
62 /* Uncomment (and remove this text!) to get bold-faced definition list terms
63 dl.docutils dt {
64 font-weight: bold }
65 */
66
67 div.abstract {
68 margin: 2em 5em }
69
70 div.abstract p.topic-title {
71 font-weight: bold ;
72 text-align: center }
73
74 div.admonition, div.attention, div.caution, div.danger, div.error,
75 div.hint, div.important, div.note, div.tip, div.warning {
76 margin: 2em ;
77 border: medium outset ;
78 padding: 1em }
79
80 div.admonition p.admonition-title, div.hint p.admonition-title,
81 div.important p.admonition-title, div.note p.admonition-title,
82 div.tip p.admonition-title {
83 font-weight: bold ;
84 font-family: sans-serif }
85
86 div.attention p.admonition-title, div.caution p.admonition-title,
87 div.danger p.admonition-title, div.error p.admonition-title,
88 div.warning p.admonition-title, .code .error {
89 color: red ;
90 font-weight: bold ;
91 font-family: sans-serif }
92
93 /* Uncomment (and remove this text!) to get reduced vertical space in
94 compound paragraphs.
95 div.compound .compound-first, div.compound .compound-middle {
96 margin-bottom: 0.5em }
97
98 div.compound .compound-last, div.compound .compound-middle {
99 margin-top: 0.5em }
100 */
101
102 div.dedication {
103 margin: 2em 5em ;
104 text-align: center ;
105 font-style: italic }
106
107 div.dedication p.topic-title {
108 font-weight: bold ;
109 font-style: normal }
110
111 div.figure {
112 margin-left: 2em ;
113 margin-right: 2em }
114
115 div.footer, div.header {
116 clear: both;
117 font-size: smaller }
118
119 div.line-block {
120 display: block ;
121 margin-top: 1em ;
122 margin-bottom: 1em }
123
124 div.line-block div.line-block {
125 margin-top: 0 ;
126 margin-bottom: 0 ;
127 margin-left: 1.5em }
128
129 div.sidebar {
130 margin: 0 0 0.5em 1em ;
131 border: medium outset ;
132 padding: 1em ;
133 background-color: #ffffee ;
134 width: 40% ;
135 float: right ;
136 clear: right }
137
138 div.sidebar p.rubric {
139 font-family: sans-serif ;
140 font-size: medium }
141
142 div.system-messages {
143 margin: 5em }
144
145 div.system-messages h1 {
146 color: red }
147
148 div.system-message {
149 border: medium outset ;
150 padding: 1em }
151
152 div.system-message p.system-message-title {
153 color: red ;
154 font-weight: bold }
155
156 div.topic {
157 margin: 2em }
158
159 h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
160 h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
161 margin-top: 0.4em }
162
163 h1.title {
164 text-align: center }
165
166 h2.subtitle {
167 text-align: center }
168
169 hr.docutils {
170 width: 75% }
171
172 img.align-left, .figure.align-left, object.align-left, table.align-left {
173 clear: left ;
174 float: left ;
175 margin-right: 1em }
176
177 img.align-right, .figure.align-right, object.align-right, table.align-right {
178 clear: right ;
179 float: right ;
180 margin-left: 1em }
181
182 img.align-center, .figure.align-center, object.align-center {
183 display: block;
184 margin-left: auto;
185 margin-right: auto;
186 }
187
188 table.align-center {
189 margin-left: auto;
190 margin-right: auto;
191 }
192
193 .align-left {
194 text-align: left }
195
196 .align-center {
197 clear: both ;
198 text-align: center }
199
200 .align-right {
201 text-align: right }
202
203 /* reset inner alignment in figures */
204 div.align-right {
205 text-align: inherit }
206
207 /* div.align-center * { */
208 /* text-align: left } */
209
210 .align-top {
211 vertical-align: top }
212
213 .align-middle {
214 vertical-align: middle }
215
216 .align-bottom {
217 vertical-align: bottom }
218
219 ol.simple, ul.simple {
220 margin-bottom: 1em }
221
222 ol.arabic {
223 list-style: decimal }
224
225 ol.loweralpha {
226 list-style: lower-alpha }
227
228 ol.upperalpha {
229 list-style: upper-alpha }
230
231 ol.lowerroman {
232 list-style: lower-roman }
233
234 ol.upperroman {
235 list-style: upper-roman }
236
237 p.attribution {
238 text-align: right ;
239 margin-left: 50% }
240
241 p.caption {
242 font-style: italic }
243
244 p.credits {
245 font-style: italic ;
246 font-size: smaller }
247
248 p.label {
249 white-space: nowrap }
250
251 p.rubric {
252 font-weight: bold ;
253 font-size: larger ;
254 color: maroon ;
255 text-align: center }
256
257 p.sidebar-title {
258 font-family: sans-serif ;
259 font-weight: bold ;
260 font-size: larger }
261
262 p.sidebar-subtitle {
263 font-family: sans-serif ;
264 font-weight: bold }
265
266 p.topic-title {
267 font-weight: bold }
268
269 pre.address {
270 margin-bottom: 0 ;
271 margin-top: 0 ;
272 font: inherit }
273
274 pre.literal-block, pre.doctest-block, pre.math, pre.code {
275 margin-left: 2em ;
276 margin-right: 2em }
277
278 pre.code .ln { color: grey; } /* line numbers */
279 pre.code, code { background-color: #eeeeee }
280 pre.code .comment, code .comment { color: #5C6576 }
281 pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
282 pre.code .literal.string, code .literal.string { color: #0C5404 }
283 pre.code .name.builtin, code .name.builtin { color: #352B84 }
284 pre.code .deleted, code .deleted { background-color: #DEB0A1}
285 pre.code .inserted, code .inserted { background-color: #A3D289}
286
287 span.classifier {
288 font-family: sans-serif ;
289 font-style: oblique }
290
291 span.classifier-delimiter {
292 font-family: sans-serif ;
293 font-weight: bold }
294
295 span.interpreted {
296 font-family: sans-serif }
297
298 span.option {
299 white-space: nowrap }
300
301 span.pre {
302 white-space: pre }
303
304 span.problematic {
305 color: red }
306
307 span.section-subtitle {
308 /* font-size relative to parent (h1..h6 element) */
309 font-size: 80% }
310
311 table.citation {
312 border-left: solid 1px gray;
313 margin-left: 1px }
314
315 table.docinfo {
316 margin: 2em 4em }
317
318 table.docutils {
319 margin-top: 0.5em ;
320 margin-bottom: 0.5em }
321
322 table.footnote {
323 border-left: solid 1px black;
324 margin-left: 1px }
325
326 table.docutils td, table.docutils th,
327 table.docinfo td, table.docinfo th {
328 padding-left: 0.5em ;
329 padding-right: 0.5em ;
330 vertical-align: top }
331
332 table.docutils th.field-name, table.docinfo th.docinfo-name {
333 font-weight: bold ;
334 text-align: left ;
335 white-space: nowrap ;
336 padding-left: 0 }
337
338 /* "booktabs" style (no vertical lines) */
339 table.docutils.booktabs {
340 border: 0px;
341 border-top: 2px solid;
342 border-bottom: 2px solid;
343 border-collapse: collapse;
344 }
345 table.docutils.booktabs * {
346 border: 0px;
347 }
348 table.docutils.booktabs th {
349 border-bottom: thin solid;
350 text-align: left;
351 }
352
353 h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
354 h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
355 font-size: 100% }
356
357 ul.auto-toc {
358 list-style-type: none }
359
360 </style>
361 </head>
362 <body>
363 <div class="document" id="fgallery-a-modern-minimalist-javascript-photo-gallery">
364 <h1 class="title">fgallery: a modern, minimalist javascript photo gallery</h1>
365
366 <p>&quot;fgallery&quot; is a static photo gallery generator with no frills that has a
367 stylish, minimalist look. &quot;fgallery&quot; shows your photos, and nothing else.</p>
368 <p>You can see an example gallery at the following address:</p>
369 <p><a class="reference external" href="https://www.thregr.org/~wavexx/software/fgallery/demo/">https://www.thregr.org/~wavexx/software/fgallery/demo/</a></p>
370 <p>There is no server-side processing, only static generation. The resulting
371 gallery can be uploaded anywhere without additional requirements and works with
372 any modern browser.</p>
373 <ul class="simple">
374 <li>Automatically orients pictures without quality loss.</li>
375 <li>Multi-camera friendly: automatically sorts pictures by time: just throw your
376 (and your friends) photos and movies in a directory. The resulting gallery
377 shows the pictures in seamless shooting order.</li>
378 <li>Adapts to the current screen size and proportions, switching from
379 horizontal/vertical layout and scaling thumbnails automatically.</li>
380 <li>Supports face detection for improved thumbnail centering.</li>
381 <li>Loads fast! Especially over slow connections.</li>
382 <li>Includes original (raw) pictures in a zip file for downloading.</li>
383 <li>Panoramas can be seen full-size by default.</li>
384 </ul>
385 <div class="section" id="usage">
386 <h1>Usage</h1>
387 <ol class="arabic">
388 <li><p class="first">Generate all the static files with ./fgallery:</p>
389 <pre class="literal-block">
390 ./fgallery photo-dir my-gallery
391 </pre>
392 </li>
393 <li><p class="first">Upload &quot;my-gallery&quot; somewhere.</p>
394 </li>
395 </ol>
396 <p>To test/preview the gallery locally using Firefox, you can just open the file
397 <tt class="docutils literal"><span class="pre">my-gallery/index.html</span></tt>. On other browsers you need a web server (due to AJAX
398 same-origin restrictions). If you have python installed, a quick way to test
399 the gallery locally is to run:</p>
400 <pre class="literal-block">
401 cd my-gallery
402 python3 -m http.server
403 </pre>
404 <p>and then navigate to <a class="reference external" href="http://localhost:8000">http://localhost:8000</a>.</p>
405 </div>
406 <div class="section" id="pre-built-packages">
407 <h1>Pre-built packages</h1>
408 <p>Pre-built packages for <cite>fgallery</cite> (and <cite>facedetect</cite>) are available:</p>
409 <p><strong>Debian/Ubuntu</strong></p>
410 <ul class="simple">
411 <li><a class="reference external" href="https://packages.debian.org/fgallery">https://packages.debian.org/fgallery</a></li>
412 <li><a class="reference external" href="https://packages.debian.org/facedetect">https://packages.debian.org/facedetect</a></li>
413 </ul>
414 <p>Install with:</p>
415 <pre class="literal-block">
416 sudo apt-get install fgallery facedetect
417 </pre>
418 <p><strong>Arch Linux</strong></p>
419 <ul class="simple">
420 <li><a class="reference external" href="https://aur.archlinux.org/packages/fgallery/">https://aur.archlinux.org/packages/fgallery/</a></li>
421 </ul>
422 <p>Install with:</p>
423 <pre class="literal-block">
424 sudo pacman -S fgallery
425 </pre>
426 <p><strong>Gentoo Linux</strong></p>
427 <ul class="simple">
428 <li><a class="reference external" href="https://github.com/robert7k/gentoo-overlay/tree/master/www-apps/fgallery/">https://github.com/robert7k/gentoo-overlay/tree/master/www-apps/fgallery/</a></li>
429 </ul>
430 <p>Install with:</p>
431 <pre class="literal-block">
432 sudo layman -a robert7k
433 sudo emerge www-apps/fgallery
434 </pre>
435 <p><strong>NixOS</strong></p>
436 <ul class="simple">
437 <li><a class="reference external" href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/graphics/fgallery/">https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/graphics/fgallery/</a></li>
438 </ul>
439 <p>Install with:</p>
440 <pre class="literal-block">
441 sudo nix-env -i fgallery
442 </pre>
443 <p><strong>FreeBSD</strong></p>
444 <ul class="simple">
445 <li><a class="reference external" href="http://www.freshports.org/www/fgallery/">http://www.freshports.org/www/fgallery/</a></li>
446 <li><a class="reference external" href="http://www.freshports.org/graphics/facedetect/">http://www.freshports.org/graphics/facedetect/</a></li>
447 </ul>
448 <p>Install with:</p>
449 <pre class="literal-block">
450 pkg install fgallery
451 </pre>
452 <p><strong>Docker</strong></p>
453 <p>You can also try the latest <cite>fgallery</cite> bundled with <a class="reference external" href="https://www.thregr.org/~wavexx/software/facedetect/">facedetect</a> in a Docker
454 container using the following <tt class="docutils literal">Dockerfile</tt> provided by Stavros Korokithakis:</p>
455 <ul class="simple">
456 <li><a class="reference external" href="https://github.com/skorokithakis/docker-fgallery">https://github.com/skorokithakis/docker-fgallery</a></li>
457 </ul>
458 </div>
459 <div class="section" id="usage-notes">
460 <h1>Usage notes</h1>
461 <p>The images as shown by the viewer are scaled/compressed using the specified
462 quality to reduce viewing lag. They are also stripped of any EXIF tag. However,
463 the pictures in the generated zip album are preserved <em>unchanged</em>.</p>
464 <p>Lossless auto-rotation is applied so that images can be opened with a browser
465 directly. JPEG and PNG files are also re-optimized (losslessy) before being
466 archived to furthermore save space.</p>
467 <p>Image captions are read from simple text files or directly from EXIF metadata.
468 Captions can be controlled by the user using the &quot;bubble&quot; icon or by pressing
469 the &quot;c&quot; keyboard shortcut, which cycles between normal/always hidden/always
470 shown visualization modes.</p>
471 <p>Preview and thumbnail images are converted to the sRGB color-space by default,
472 which provides better results on normal displays and browsers without color
473 management support.</p>
474 <p>All images can be included to be viewed individually at full resolution in the
475 gallery by using the <tt class="docutils literal"><span class="pre">-i</span></tt> flag. Panoramas are automatically detected and the
476 original image is included in full-size by default, as often the image preview
477 alone doesn't give it justice.</p>
478 <p>For best results when shooting with multiple cameras (or friends), synchronize
479 the camera clocks before starting to take pictures. Just pick one camera's time
480 as the reference. By doing this the album is automatically shown in logical
481 shooting order instead of file-name order.</p>
482 <p>Never use the <tt class="docutils literal"><span class="pre">-s</span></tt> or <tt class="docutils literal"><span class="pre">-d</span></tt> flags. Let your friends and viewers download the
483 raw album at full resolution, not the downscaled crap. Don't make me angry.</p>
484 </div>
485 <div class="section" id="tuning-thumbnail-generation">
486 <h1>Tuning thumbnail generation</h1>
487 <p>The sizes of the thumbnails and the main image can be customized on the command
488 line with the appropriate flags. Two settings are available for the thumbnail
489 sizes: minimum (150x112) and maximum (267x200). Thumbnails will always be as
490 big as the minimum size, but they can be enlarged up to the specified maximum
491 depending on the screen orientation. The default settings are tuned for a
492 mostly-landscape gallery, but they can be changed as needed.</p>
493 <p>Images having a different aspect ratio (like panoramas) are cut and centered
494 instead of being scaled-to-fit, so that the thumbnail shows the central subject
495 of the image instead of a thin, unwatchable strip. When this happens, the
496 viewer shows a sign on the thumbnail along the cut edges (this effect can be
497 seen in the demo gallery).</p>
498 <div class="section" id="portraits-and-face-detection">
499 <h2>Portraits and face detection</h2>
500 <p>To simply favor photos shot in portrait format, invert the width/height of the
501 thumbnail sizes:</p>
502 <pre class="literal-block">
503 ./fgallery --min-thumb 112x150 --max-thumb 200x267 ...
504 </pre>
505 <p>This will force the thumbnails to always fit vertically, at the expense of a
506 higher horizontal thumbnail strip.</p>
507 <p>If your photos are mixed and can contain people, faces or portraits, you can
508 enable face detection by using the <tt class="docutils literal"><span class="pre">-f</span></tt> flag and installing <a class="reference external" href="https://www.thregr.org/~wavexx/software/facedetect/">facedetect</a>.</p>
509 <p>Face detection will ensure that the thumbnails, especially when cut, will be
510 centered on the face of the subject. If face detection is enabled, there's
511 generally no need to increase the thumbnail size.</p>
512 </div>
513 </div>
514 <div class="section" id="image-captioning">
515 <h1>Image captioning</h1>
516 <p>Several sources for image captions are automatically read by fgallery. These
517 can be customized though the <tt class="docutils literal"><span class="pre">-c</span></tt> flag in the command line, which consists of
518 a comma-separated list of any of the following:</p>
519 <table class="docutils field-list" frame="void" rules="none">
520 <col class="field-name" />
521 <col class="field-body" />
522 <tbody valign="top">
523 <tr class="field"><th class="field-name"><tt class="docutils literal">txt</tt>:</th><td class="field-body">Detached captions in a simple text file.</td>
524 </tr>
525 <tr class="field"><th class="field-name"><tt class="docutils literal">xmp</tt>:</th><td class="field-body">Captions read from XMP sidecar metadata.</td>
526 </tr>
527 <tr class="field"><th class="field-name"><tt class="docutils literal">exif</tt>:</th><td class="field-body">Captions read from EXIF metadata.</td>
528 </tr>
529 <tr class="field"><th class="field-name"><tt class="docutils literal">cmt</tt>:</th><td class="field-body">Captions read from JPEG or PNG's built-in &quot;comment&quot; data.</td>
530 </tr>
531 </tbody>
532 </table>
533 <p>You can disable caption extraction entirely by using <tt class="docutils literal"><span class="pre">-c</span> none</tt>. When multiple
534 methods are provided, the first available caption source is used. By default,
535 the method list is <tt class="docutils literal">txt,xmp,exif</tt>.</p>
536 <p>The <tt class="docutils literal">txt</tt> method reads the caption from a text file that has the same name as
537 the image, but with <tt class="docutils literal">txt</tt> extension (for example <tt class="docutils literal">IMG1234.jpg</tt> reads from
538 <tt class="docutils literal">IMG1234.txt</tt>). The first line of the file (which can be empty) constitutes
539 the title, with any following line becoming the description. These files can
540 either be written manually, or can be edited more conveniently using the
541 <tt class="docutils literal">utils/fcaption</tt> utility. <tt class="docutils literal">fcaption</tt> accepts a list of filenames or
542 directories on the command line, and provides a simple visual interface to
543 quickly edit image captions in this format.</p>
544 <p><tt class="docutils literal">XMP</tt> or <tt class="docutils literal">EXIF</tt> captions can be edited easily with many other image
545 editing/previewing programs, such as <a class="reference external" href="http://www.darktable.org/">Darktable</a> (which writes XMP sidecar files
546 by default) or <a class="reference external" href="http://geeqie.org/">Geeqie</a> (use Ctrl+K to bring up the metadata editor).</p>
547 <p>Both JPEG and PNG have a built-in comment field, but it's not read by default
548 as it's often abused by editing software to put attribution or copyright
549 information. When enabled, the comment is parsed as for <tt class="docutils literal">txt</tt> files: the
550 first line is the title, with any subsequent line becoming the description.</p>
551 <p>Captions are intended to be short. Do not write long or distracting
552 descriptions. Captions should <em>never</em> contain copyright information.
553 <em>Do not abuse captions</em>.</p>
554 </div>
555 <div class="section" id="color-management">
556 <h1>Color management</h1>
557 <div class="section" id="a-pledge">
558 <h2>A pledge</h2>
559 <p>Since every camera is different, and every monitor is different, some color
560 transformation is necessary to reproduce the colors on your monitor as
561 <em>originally</em> captured by the camera. <a class="reference external" href="http://en.wikipedia.org/wiki/Color_management">Color management</a> is an umbrella term
562 for all the techniques required to perform this task.</p>
563 <p>Most image-viewing software support color management to some degree, but it's
564 rarely configured properly on most systems except for Safari on Mac OSX. No
565 other browser, unfortunately, supports decent color management.</p>
566 <p>This causes the familiar effect of looking at the same picture from your laptop
567 and your tablet, and noticing that the blue of the sky is just slightly off, or
568 that colors look much more contrasty on one screen as opposed to the other.
569 Often the image <em>has</em> the information required for a more balanced color
570 reproduction, but the browser is just ignoring it.</p>
571 <p>We're writing this down because Firefox <em>has</em> built-in color-management
572 support, but it's disabled by default on all platforms. It's also ranking very
573 low on the list of improvements to make, with some bugs being open for years.
574 In an attempt to raise awareness, please complain/contribute to any of the
575 existing <a class="reference external" href="https://bugzilla.mozilla.org/buglist.cgi?component=GFX%3A%20Color%20Management&amp;product=Core&amp;bug_status=__open__">bug reports</a>, citing the <a class="reference internal" href="#technical-details">Technical details</a> on this web page.</p>
576 </div>
577 <div class="section" id="technical-details">
578 <h2>Technical details</h2>
579 <p>On Firefox, the installation of the following &quot;Color Management&quot; add-on is
580 recommended:</p>
581 <p><a class="reference external" href="https://addons.mozilla.org/en-US/firefox/addon/color-management/">https://addons.mozilla.org/en-US/firefox/addon/color-management/</a></p>
582 <p>When installed, in the add-on configuration, you'll need to enable color
583 management for &quot;All images&quot; and restart the browser. Also, if you have a
584 multi-monitor setup, it's advisable to manually set the &quot;Display profile&quot; to
585 the external/calibrated screen, since FF won't automatically select the color
586 profile for the current monitor, and just default to the primary. Firefox has
587 also known bugs with LUT profiles, though the more common Matrix profiles seem
588 to work fine.</p>
589 <p>We understand that CM has a considerable impact on image rendering performance,
590 but strictly speaking CM doesn't need to be enabled on all images by default.
591 It would be perfectly fine to have an additional attribute on the image tag to
592 request CM. The current method of enabling CM only on images with an ICC
593 profile is clearly not adequate, since images without a profile should be
594 assumed to be in sRGB color-space already.</p>
595 <p>Because of the general lack of color management, <cite>fgallery</cite> transforms the
596 preview and thumbnail images from the built-in color profile to the sRGB
597 color-space by default. On most devices this will result in images appearing to
598 be <em>closer</em> to true colors with only minimal lack of absolute color depth. As
599 usual, no transformation is done on the original downloadable files.</p>
600 </div>
601 </div>
602 <div class="section" id="dependencies">
603 <h1>Dependencies</h1>
604 <p>Frontend/viewer: none (static html/js/css)</p>
605 <p>Backend:</p>
606 <ul>
607 <li><p class="first">ImageMagick (<tt class="docutils literal">imagemagick</tt>, <a class="reference external" href="http://www.imagemagick.org">http://www.imagemagick.org</a>)</p>
608 </li>
609 <li><p class="first">LittleCMS2 utilities (<tt class="docutils literal"><span class="pre">liblcms2-utils</span></tt>, <a class="reference external" href="http://www.littlecms.com/">http://www.littlecms.com/</a>).</p>
610 </li>
611 <li><p class="first">Either:</p>
612 <ul class="simple">
613 <li><tt class="docutils literal">exiftran</tt> (part of <tt class="docutils literal">fbida</tt>: <a class="reference external" href="http://www.kraxel.org/blog/linux/fbida/">http://www.kraxel.org/blog/linux/fbida/</a>), or</li>
614 <li><tt class="docutils literal">exifautotran</tt> (part of <tt class="docutils literal"><span class="pre">libjpeg-progs</span></tt>: <a class="reference external" href="http://libjpeg.sourceforge.net/">http://libjpeg.sourceforge.net/</a>).</li>
615 </ul>
616 </li>
617 <li><p class="first">zip</p>
618 </li>
619 <li><p class="first">perl &gt;= 5.14 (threading support enabled), with the following <cite>required</cite> modules:</p>
620 <ul class="simple">
621 <li>Image::ExifTool (<tt class="docutils literal"><span class="pre">libimage-exiftool-perl</span></tt>: <a class="reference external" href="http://owl.phy.queensu.ca/~phil/exiftool/">http://owl.phy.queensu.ca/~phil/exiftool/</a>)</li>
622 </ul>
623 <p>and the following additional <cite>recommended</cite> modules:</p>
624 <ul class="simple">
625 <li>Cpanel::JSON::XS (<tt class="docutils literal"><span class="pre">libcpanel-json-xs-perl</span></tt>)</li>
626 </ul>
627 </li>
628 </ul>
629 <p>Several other tools are supported, but are only used when installed.
630 Therefore it's also helpful to install:</p>
631 <ul class="simple">
632 <li>jpegoptim (<a class="reference external" href="http://www.kokkonen.net/tjko/projects.html">http://www.kokkonen.net/tjko/projects.html</a>, for JPEG size optimization)</li>
633 <li>pngcrush (<a class="reference external" href="http://pmt.sourceforge.net/pngcrush/">http://pmt.sourceforge.net/pngcrush/</a>, for PNG size optimization)</li>
634 <li>facedetect (<a class="reference external" href="https://www.thregr.org/~wavexx/software/facedetect/">https://www.thregr.org/~wavexx/software/facedetect/</a>, for face detection)</li>
635 <li>7zip (<a class="reference external" href="http://www.7-zip.org/">http://www.7-zip.org/</a>, for faster and higher-compression zip archiving)</li>
636 </ul>
637 <p>On Debian/Ubuntu, you can install all the required dependencies with:</p>
638 <pre class="literal-block">
639 sudo apt-get install imagemagick exiftran zip liblcms2-utils
640 sudo apt-get install libimage-exiftool-perl libcpanel-json-xs-perl
641 </pre>
642 <p>To save more space in the generated galleries, we recommend installing also the
643 optional dependencies:</p>
644 <pre class="literal-block">
645 sudo apt-get install jpegoptim pngcrush 7zip
646 </pre>
647 <p><tt class="docutils literal">fcaption</tt> is written in Python and requires either PyQt6 or PyQt5.
648 You can install the required packages with:</p>
649 <pre class="literal-block">
650 sudo apt-get install python3-pyqt6
651 </pre>
652 <p>For face detection support, simply follow the <a class="reference external" href="https://www.thregr.org/~wavexx/software/facedetect/#dependencies">facedetect installation
653 instructions</a>.</p>
654 <p>On a Mac, we recommend installing the dependencies using <a class="reference external" href="http://www.macports.org/">MacPorts</a>. After installing MacPorts, type:</p>
655 <pre class="literal-block">
656 sudo port install imagemagick lcms2 jpeg jpegoptim pngcrush
657 sudo port install p5-image-exiftool p5-cpanel-json-xs
658 </pre>
659 </div>
660 <div class="section" id="installation">
661 <h1>Installation</h1>
662 <p>Installation is currently optional. <cite>fgallery</cite> can be run from the
663 source directory directly. A simple <tt class="docutils literal">Makefile</tt> is provided to install
664 the required data files into the appropriate prefix:</p>
665 <pre class="literal-block">
666 sudo make install install_fcaption PREFIX=/usr/local
667 </pre>
668 </div>
669 <div class="section" id="authors-and-copyright">
670 <h1>Authors and Copyright</h1>
671 <p>&quot;fgallery&quot; can be found at <a class="reference external" href="https://www.thregr.org/~wavexx/software/fgallery/">https://www.thregr.org/~wavexx/software/fgallery/</a></p>
672 <div class="line-block">
673 <div class="line">&quot;fgallery&quot; is distributed under GPLv2+ (see COPYING) WITHOUT ANY WARRANTY.</div>
674 <div class="line">Copyright(c) 2011-2022 by wave++ &quot;Yuri D'Elia&quot; &lt;<a class="reference external" href="mailto:wavexx&#64;thregr.org">wavexx&#64;thregr.org</a>&gt;.</div>
675 </div>
676 <p>fgallery's GIT repository is publicly accessible at:</p>
677 <pre class="literal-block">
678 git://src.thregr.org/fgallery
679 </pre>
680 <p>or at <a class="reference external" href="https://gitlab.com/wavexx/fgallery">https://gitlab.com/wavexx/fgallery</a></p>
681 </div>
682 <div class="section" id="extending-fgallery">
683 <h1>Extending fgallery</h1>
684 <p>&quot;fgallery&quot; is composed of a backend (the &quot;fgallery&quot; script) and a viewer
685 (contained in the &quot;view&quot; directory). Both are distributed as one package, but
686 they are designed to be used also independently.</p>
687 <p>&quot;fgallery&quot; just cares about generating the image previews and the album data.
688 All the presentation logic however is inside the viewer.</p>
689 <p>It's relatively easy to generate the album data dynamically and just use the
690 viewer. This was my aim when I started to develop &quot;fgallery&quot;, as it's much
691 easier to just modify an existing CMS instead of trying to reinvent the wheel.
692 All a backend has to do is provide a valid &quot;data.json&quot; at some prefixed
693 address. A plugin for a CMS such as <a class="reference external" href="http://galleryproject.org/">Gallery</a>
694 should be very easy to implement.</p>
695 </div>
696 <div class="section" id="todo">
697 <h1>TODO</h1>
698 <ul class="simple">
699 <li>Handle videos too</li>
700 <li>Add an &quot;overview&quot; mode, which shows a screenful of thumbnails.</li>
701 <li>Allow to hide the thumbnails entirely.</li>
702 <li>Improve EXIF/header display.</li>
703 </ul>
704 </div>
705 </div>
706 </body>
707 </html>