Skip to main content

No project description provided

Project description


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.


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

$ pip install previewgen


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

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

  max_width: 1000
  max_height: 1000
  quality: 80

# optional logger config
  # posible levels can be found at
  level: DEBUG

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

Build Status

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for previewgen, version 1.3
Filename, size File type Python version Upload date Hashes
Filename, size previewgen-1.3.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page