跳转到主要内容

Plone插件产品,用于以灰度显示内容。

项目描述

stxnext.grayscale

简介

《stxnext.grayscale》包是Plone的一个插件产品,允许在网站上以灰度颜色显示网页内容。

https://github.com/stxnext/stxnext.grayscale/raw/master/docs/stxnext.grayscale.example.png

颜色转换

图像通过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]
  1. 通过portal_quickinstaller安装产品。

Plone 4

1. 将stxnext.grayscale添加到您的plone.recipe.zope2instance部分的eggs中。将资源参数定义为指向存储转换后资源的现有目录,以避免对同一资源的多次转换

[instance]
recipe = plone.recipe.zope2instance
...
resources = ${buildout:directory}/var/resources
...
eggs =
    ...
    stxnext.grayscale
  1. 通过portal_quickinstaller安装产品。

配置

在stxnext.grayscale工具的控制面板(/@@grayscale_settings)中选择要转换为灰度的Plone皮肤。

作者 & 联系方式

  • 拉多斯拉夫·扬克维奇 radoslaw.jankiewicz@stxnext.pl

  • 塞巴斯蒂安·卡利诺夫斯基 sebastian.kalinowski@stxnext.pl

  • 克日什托夫·斯卡鲁帕 krzysztof.skarupa@stxnext.pl

http://stxnext.pl/open-source/files/stx-next-logo

STX Next Sp. z o.o.

http://stxnext.pl

info@stxnext.pl

许可

本软件包遵循Zope公共许可证。

变更日志

1.0.0 (2012-05-21)

  • 首次发布

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分发

stxnext.grayscale-1.0.0.tar.gz (97.7 kB 查看哈希值)

上传时间

支持者