EEA Depiction (formerly valentine.imagescales)
EEA Depiction (formerly valentine.imagescales) is a generic system for creating thumbnails/image representations for content types, both those provided by Plone, and custom ones.
At the moment this system is implemented and tested only on Archetypes content types, however this system could be adapted in a later version to work also for dexterity content types.
To make it work for a content type, three adapters need to be provided:
As of eea.depiction 5.2 we customize the following resources in order to display any items in thumbnail listings:
Contents
If you are using zc.buildout and the plone.recipe.zope2instance recipe to manage your project, you can do this:
Update your buildout.cfg file:
[instance] ... eggs = ... eea.depiction zcml = ... eea.depiction-overrides eea.depiction
Re-run buildout, e.g. with:
$ ./bin/buildout
You can skip the ZCML slug if you are going to explicitly include the package from another package's configure.zcml file.
eea.depiction 0.3 introduces the concept of fallback images when the regular image traversal fails. The logic works like this:
Thus:
[instance] ... eggs = ... eea.depiction [full]
The Initial Owner of the Original Code is European Environment Agency (EEA). All Rights Reserved.
The eea.depiction (the Original Code) is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
More details under docs/License.txt
EEA - European Environment Agency (EU)
- Feature: added a interface mapping fallback for our simile exhibit daviz product. [demarant]
- Bug fix: added workaround for a traversing bug [tiberich EEA #4363]
- Bug fix: fixed scale for folder, in order to get first Image [ghicaale EEA #4347]
- Bug fix: replaced call to getFolderContents with direct search in catalog [tiberich]