Compatibility with core CKAN versions:
CKAN version | Compatible? |
---|---|
2.9 | yes |
master | yes |
-
Install extension. It may fail because of missing system packages. Check preview-generator documentation for details.
pip install ckanext-thumbnailer
-
Add
files
andthumbnailer
to the list of enabled pluginsckan.plugins = ... thumbnailer files
# If greater than 0, make an attempt to download linked resource as long as it's side is under this limit
# (optional, default: 0).
ckanext.thumbnailer.max_remote_size = 0
# List of formats that will get thumbnails when resource is created/updated
# (optional, default: None).
ckanext.thumbnailer.auto_formats = pdf png