Frequently asked questions

2021-01-07

Viewer

Supported web browsers?
The ldgallery viewer has been tested and confirmed to work with Firefox 68 and Chromium 81 on desktop and mobile.
Support for Flash animations?
The ShockWave Flash (SWF) format is being retired and its support removed from modern web browsers. Alternatives for animated items are being considered in GitHub issue #251.

Compiler

Supported operating systems?
The ldgallery compiler program has been tested and confirmed to work on Linux and Windows. It probably runs on some BSDs and MacOS too; Please let us know if it does or doesn’t.
Distribution packages?
Available distribution packages are listed on Repology. Packagers are encouraged to help making this list longer! This software is otherwise available as portable pre-built binaries and source archives.
Program dependencies?
The compiler program depends on ImageMagick to generate thumbnails and resize pictures. The magick executable must be available in the search path.
“No such file or directory” error when executing the binary.
This error appears when a required dependency cannot be found. The dynamically-linked libraries can be listed by running ldd ./ldgallery, which also explicitly shows which are the missing ones. It is recommended to use distribution packages when possible to avoid dependency management issues.
Multi-threaded processing?
By default, all available CPU threads are used to process images in parallel. Their number can be limited by calling the program with +RTS -Nx -RTS, where x is the number of threads to spawn.
Resizing algorithm?
Thumbnails and smaller versions of pictures are generated using the Lanczos resampling method implemented by ImageMagick.
The console output is garbled/mixed-up.
The compiler program outputs messages and errors separately to stdout and stderr, which are merged by most shells and consoles. It is still possible to separate those streams using redirections: for instance, running ldgallery 1> /dev/null allows to filter out informational messages and only display errors to the console.

Other

Name?
The name is a reference to the ld linker program, as ldgallery “links” pictures into a gallery.
License?
The source code of the program is released under the GNU AGPL v3. The content of this website is released under the GNU FDL v1.3.
Author of the pictures in the demo gallery?
The pretty photos featured in the demo gallery were taken by Philippe Nguyen. Many thanks to him!