Skip to main content

PreviewGen

PreviewGen is a tool for generating previews from photo galleries at source location. Previews are created in target location where the source structure is copied but images are replaced with compressed and resized copy. Basic idea is to provide a preview of a full size gallery with a reasonable size and quality.

Instalation

PreviewGen is deployed to pypi and can be therefore easily installed using pip.

$ pip install previewgen

Usage

After installation preview-gen command should be available from command line.

$ preview-gen
usage: preview-gen [-h] config_file

Config file

# example config file conf.yaml

scanner:
  source_dir: /Users/mfilippi/pg-test/s
  destination_dir: /Users/mfilippi/pg-test/d

previewer:
  max_width: 1000
  max_height: 1000
  quality: 80

# optional logger config
logger:
  # posible levels can be found at https://docs.python.org/3/library/logging.html#levels
  level: DEBUG

In the same directory the tool can be executed using $ preview-gen conf.yaml.


Build Status

Metadata

Release files for previewgen 1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for previewgen 1.3
File Size Uploaded
previewgen-1.3.tar.gz 3.8 kB Details

Release files / previewgen-1.3.tar.gz

Download URL previewgen-1.3.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
73d179224557c2759c4168ab6dd663ffae1ed77b6857fbbbd7ca9c5e93284f75
BLAKE2b-256 checksum
How to use checksums
58a6ca413d2216905763c7af5d97cbaf25f29c52469ca4a90447fb0f1186bf67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

1.3 This release

1 release file

1.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page