Plone插件产品,用于以灰度显示内容。
项目描述
stxnext.grayscale
简介
《stxnext.grayscale》包是Plone的一个插件产品,允许在网站上以灰度颜色显示网页内容。
颜色转换
图像通过PIL库即时转换。
CSS和HTML文档通过正则表达式转换,用灰度等效值替换颜色定义。
在Plone 4(安装了plone.resource包)中,转换后的资源(图像、CSS文件)将缓存在文件系统中,以避免对同一资源的多次转换。
安装
Plone 3
1. 将stxnext.grayscale添加到您的plone.recipe.zope2instance部分的eggs中(注意使用[Zope2.10] extra,它引入了ZPublisherEventsBackport包,以便与Zope 2.12/Plone 4的前向兼容性)
[instance] recipe = plone.recipe.zope2instance ... eggs = ... stxnext.grayscale [Zope2.10]
通过portal_quickinstaller安装产品。
Plone 4
1. 将stxnext.grayscale添加到您的plone.recipe.zope2instance部分的eggs中。将资源参数定义为指向存储转换后资源的现有目录,以避免对同一资源的多次转换
[instance] recipe = plone.recipe.zope2instance ... resources = ${buildout:directory}/var/resources ... eggs = ... stxnext.grayscale
通过portal_quickinstaller安装产品。
配置
在stxnext.grayscale工具的控制面板(/@@grayscale_settings)中选择要转换为灰度的Plone皮肤。
许可
本软件包遵循Zope公共许可证。
变更日志
1.0.0 (2012-05-21)
首次发布
项目详情
关闭
stxnext.grayscale-1.0.0.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | e12f98d38ff57c01dc5665e2284d34092d6465d4c04d2bf832b5d4c28cdcc0a1 |
|
MD5 | f73274fdaee94a5e5ac7a0028657d864 |
|
BLAKE2b-256 | 4d0d561d55ed46a87d1b2b88c4e4e5938bcca587a1c5fc3db759b7e0647142a4 |