photog
所属分类:图形图象
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2022-06-13 08:41:08
上 传 者:
sh-1993
说明: 超级福尔摩沙摄影使用的静态摄影网站生成器,
(The static photography website generator used by Super Formosa Photography,)
文件列表:
.pre-commit-config.yaml (351, 2022-06-13)
LICENSE (34523, 2022-06-13)
MANIFEST.in (48, 2022-06-13)
bin/ (0, 2022-06-13)
bin/photog (399, 2022-06-13)
photog/ (0, 2022-06-13)
photog/__init__.py (6316, 2022-06-13)
photog/static/ (0, 2022-06-13)
photog/static/SourceSansPro-ExtraLight.woff (26380, 2022-06-13)
photog/static/jquery-3.6.0.min.js (89501, 2022-06-13)
photog/static/main.css (1163, 2022-06-13)
photog/static/photoswipe.js (9027, 2022-06-13)
photog/static/photoswipe/ (0, 2022-06-13)
photog/static/photoswipe/default-skin/ (0, 2022-06-13)
photog/static/photoswipe/default-skin/default-skin.css (11607, 2022-06-13)
photog/static/photoswipe/default-skin/default-skin.png (547, 2022-06-13)
photog/static/photoswipe/default-skin/default-skin.svg (1554, 2022-06-13)
photog/static/photoswipe/default-skin/preloader.gif (866, 2022-06-13)
photog/static/photoswipe/photoswipe-ui-default.js (29577, 2022-06-13)
photog/static/photoswipe/photoswipe.css (4137, 2022-06-13)
photog/static/photoswipe/photoswipe.js (93980, 2022-06-13)
photog/static/superformosa.js (1430, 2022-06-13)
photog/template.html (3739, 2022-06-13)
setup.cfg (79, 2022-06-13)
setup.py (826, 2022-06-13)
www.superformosa.nl.png (3807579, 2022-06-13)
Photog!
=======
**Photog! turns a directory tree of source images into a beautiful
photography website that maximizes the ease of both viewing and
downloading the pictures.**
Photog! was created by
[Return to the Source](https://returntothesource.nl/en/)
for
[Super Formosa Photography](https://www.superformosa.nl/)
and provided here for everyone to use under the terms of the
[AGPL](https://www.gnu.org/licenses/agpl-3.0.html)
license as part of our
[free and open source philosophy](https://www.gnu.org/licenses/copyleft.en.html).
![Screenshot of Super Formosa Photography](https://raw.githubusercontent.com/rtts/photog/main/www.superformosa.nl.png)
Features
--------
Photog! stands on the shoulders of giants.
- The thumbnails are displayed in a responsive gallery that
recalculates the correct image dimensions in an aesthetically
pleasing way, thanks to the algorithm from
.
- Clicking a thumbnail opens the [PhotoSwipe](https://photoswipe.com/)
gallery by [@dimsemenov](https://github.com/dimsemenov), with the
following features of its own:
- Touch gestures
- Browser History API
- Progressive loading
- Fullscreen support
- Share button
- Adding `/all.zip` to the end of the URL will download a ZIP file
containing all the images in two different resolutions:
1. The original images, unmodified, in the subfolder "print"
2. Images scaled to a width of 2000 pixels, in the subfolder "web"
- The default template shows the logo Super Formosa Photography
at the top and license terms at the bottom. To override this, see
the section "Customization" below.
Installation
------------
Photog! requires Python 3.8 or higher. You can check if this is
available on your system by running the following command:
$ python3 --version
Now you can install Photog! with `pip`:
$ python3 -m pip install photog
Usage
-----
First, navigate to your Pictures directory:
$ cd ~/Pictures
Now, run the `photog` command, specifying the current directory (`.`)
as its argument:
$ photog .
Photog! will now traverse your pictures folder and generate HTML files
, image thumbnails, and zipfiles. If you want to only update a
specific subdirectory and not regenerate the entire website, run
`photog` without arguments inside that directory:
$ cd ~/Pictures/wedding
$ photog
The difference is that without arguments, Photog! will not create a
`static` directory to hold the static files. Otherwise the two
previous commands are identical.
After Photog! has completed its run, you can use Python's built-in
webserver to view your website:
$ python3 -m http.server
Your website will now be available at the following URL:
`http://localhost:8000/`
Configuration
-------------
You can configure the behavior of Photog! in a file called
`photog.ini`. This file holds the configuration variables per
directory. The configuration variables are:
### Sorting
- `sort = ascending` to sort photos ascending according to EXIF date
- `sort = descending` to sort photos descending according to EXIF date
- `sort = random` to randomize the order of photos
### Zipping
- `zip = true` creates a zipfile called `all.zip`
- `zip = false` disables the creation of zipfiles
Customization
-------------
It is expected that you customize [the default template][1]. Save this
file as `template.html` in the root of your Pictures folder and edit
as needed. Then, run `photog` to use your customized template instead
of the default one.
[1]: https://raw.githubusercontent.com/rtts/photog/master/photog/template.html
近期下载者:
相关文件:
收藏者: