CMS ImageKit exposes django-imagekit's image processing and caching functionality within Django CMS.
Currently in development - DO NOT USE for production sites!
- NOTE: Requires fix for django-cms issue #588 (hopefully in trunk soon).
- *** also waiting on update to django-imagekit
- Named "presets" define image processing rules.
- Content editors select which preset to display image with
- Picutre plugin extends and replaces the django-cms Picture plugin to add an imagekit preset.
- Roll-your-own - abstract base class allows you to roll your own plugin for any class with an ImageField (sample app included)
- Built on top of the lightweight, extensible django-imagekit module.
Copyright (C) 2010 Driftwood Cove Designs See the LICENSE for more details
You are free to copy, use, or modify this software in any way you like, but please provide attribution to the original author with a link to: https://github.com/powderflask/cms-imagekit
see: https://github.com/powderflask/cms-imagekit/issues
not yet - sorry.
You can download a zipped archive from http://github.com/powderflask/cms-imagekit/downloads.
Unzip the file you downloaded. Then go in your terminal and cd
into the unpacked folder. Then type python setup.py install
in your terminal.
Add the base module and one or more plugins to your INSTALLED_APPS
in settings.py:
INSTALLED_APPS = (..., 'cms_imagekit.plugins.*', # installs all imagekit plugins )
OR pick and choose:
INSTALLED_APPS = (..., 'cms_imagekit.plugins.picture', # use this instead of 'cms.plugins.picture' )
Don't forget to syncdb.
Recommended to use the app_directories template loader:
TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', ... )
If you aren't using the app_directories template loader, you will need to add the templates to your TEMPLATE_DIRS settings. The templates are at:
cms_imagekit/plugins/<plugin-name>/templates
and can be overridden by adding a "cms_imagekit" folder to your project templates directory.
CMS_IKPICTURE_SPECS - module defining the ImageSpec presets for the picture plugin. default defines a 100x100 preset named "thumbnail"
CMS_IKPICTURE_SPECS = 'cms_imagekit.plugins.picture.defaults'
A preset defines a set of image processing operations, which might include scaling, cropping, etc. Currently, all presets are defined in code by defining django-imagekit ImageSpec classes. (see documentation).
It should be possible to add ability to define new Presets through the Django Admin interface.
- inspired by the fabulous imagecache module in Drupal http://drupal.org/project/imagecache
- built upon the extensible django-imagekit http://hg.driscolldev.com/django-imagekit