Pass a dict with PIL options (quality, optimize, progressive). Enlarge the MAXBLOCK buffer of ImageFile if there is an error (for the progressive mode).
56 lines
1.3 KiB
Python
56 lines
1.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
# All configuration values have a default; values that are commented out serve
|
|
# to show the default. Default values are specified when modified in this
|
|
# example config file
|
|
|
|
# Theme :
|
|
# - colorbox (default), galleria, or the path to a custom theme directory
|
|
# theme = 'colorbox'
|
|
|
|
# Size of resized image
|
|
# img_size = (640, 480)
|
|
|
|
# Generate thumbnails
|
|
# make_thumbs = True
|
|
|
|
# Subdirectory of the thumbnails
|
|
# thumb_dir = 'thumbnails'
|
|
|
|
# Prefix and/or suffix for thumbnail names (default: '')
|
|
# thumb_prefix =
|
|
thumb_suffix = '.tn'
|
|
|
|
# Thumbnail size (default: (150, 112))
|
|
thumb_size = (200, 150)
|
|
|
|
# Crop the image to fill the box
|
|
# thumb_fit = True
|
|
|
|
# Keep original image (default: False)
|
|
keep_orig = True
|
|
|
|
# Subdirectory for original images
|
|
# orig_dir = 'original'
|
|
|
|
# Jpeg options
|
|
# jpg_options = {'quality': 85,
|
|
# 'optimize': True,
|
|
# 'progressive': True}
|
|
|
|
# Add index.html to the URLs
|
|
# index_in_url = False
|
|
|
|
# A list of links (tuples (title, URL))
|
|
links = [('Example link', 'http://example.org'),
|
|
('Another link', 'http://example.org')]
|
|
|
|
# Keep exif metadatas in output image (default: False)
|
|
copy_exif = True
|
|
|
|
# Add a copyright text on the image (default: '')
|
|
copyright = "An example copyright message"
|
|
|
|
# Google Analytics tracking code (UA-xxxx-x)
|
|
# google_analytics = ''
|