A ckan extension for showing TIF images as resource preview
Project description
ckanext-tif-imageview
The CKAN extension for TIFF images preview.
The plugin tif_imageview converts the target tif image to the jpeg format for showing the preview of the image. It does not change or replace the original tif image.
Requirements
Compatibility with core CKAN versions:
CKAN version | Compatible? |
---|---|
2.9 | Yes |
earlier | NoT Tested |
Installation
To install ckanext-tif-imageview:
-
Activate your CKAN virtual environment and install the extension:
> . /usr/lib/ckan/default/bin/activate > pip install ckanext-tif-imageview
-
OR, Clone the source and install it on the virtualenv
git clone https://github.com/TIBHannover/ckanext-tif-imageview.git cd ckanext-tif-imageview pip install -e . pip install -r requirements.txt
-
Add
tif_imageview
to theckan.plugins
setting in your CKAN config file (by default the config file is located at/etc/ckan/default/ckan.ini
). -
Restart CKAN. For example if you've deployed CKAN with Nginx on Ubuntu:
sudo service nginx reload
Config settings
Modify ckan.ini (/etc/ckan/default/)
# add the plugin to:
ckan.views.default_views
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file ckanext_tif_imageview-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: ckanext_tif_imageview-1.0.3-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a12a7c11f8986b3b8d531f45f2e1e96aacbd674ec83b7f90ca7675aec32282c6 |
|
MD5 | a293742fb0a9893d862d8bee353a9450 |
|
BLAKE2b-256 | f72b4a2a88ee5a64f768abae256de9c1e2a40d6b6dba156c9ee99f24106f6038 |