Skip to main content

stxnext.grayscale

Introduction

The stxnext.grayscale package is an add-on Product for Plone that gives the possibility of displaying the web content of the site in the grayscale colors.

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

Colors transformation

The images are transformed on-the-fly using the PIL library.

The css and html documents are transformed with regular expression to substitute the colors definitions with their grayscale equivalent values.

In Plone 4 (with plone.resource package installed) the transformed resources (images, css files) are cached in the file system to avoid multiple transformation of the same resource.

Installation

Plone 3

1. Add stxnext.grayscale to your plone.recipe.zope2instance section’s eggs (Note the use of the [Zope2.10] extra, which brings in the ZPublisherEventsBackport package for forward compatibility with Zope 2.12 / Plone 4):

[instance]
recipe = plone.recipe.zope2instance
...
eggs =
    ...
    stxnext.grayscale [Zope2.10]
  1. Install the Product via portal_quickinstaller.

Plone 4

1. Add stxnext.grayscale to your plone.recipe.zope2instance section’s eggs. Define the resources parameter to point to the existing directory where the transformed resources will be stored to avoid multiple transformation of the same resource:

[instance]
recipe = plone.recipe.zope2instance
...
resources = ${buildout:directory}/var/resources
...
eggs =
    ...
    stxnext.grayscale
  1. Install the Product via portal_quickinstaller

Configuration

In the stxnext.grayscale tool’s control panel (/@@grayscale_settings) choose the Plone skins to be transformed to grayscale colors.

Author & Contact

  • Radosław Jankiewicz radoslaw.jankiewicz@stxnext.pl

  • Sebastian Kalinowski sebastian.kalinowski@stxnext.pl

  • Krzysztof Skarupa 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

License

This package is licensed under the Zope Public License.

Changelog

1.0.0 (2012-05-21)

  • Initial release

Metadata

Release files for stxnext.grayscale 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stxnext.grayscale 1.0.0
File Size Uploaded Provenance
stxnext.grayscale-1.0.0.tar.gz 97.7 kB Without provenance Details

Release files / stxnext.grayscale-1.0.0.tar.gz

Download URL stxnext.grayscale-1.0.0.tar.gz
Size 97.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e12f98d38ff57c01dc5665e2284d34092d6465d4c04d2bf832b5d4c28cdcc0a1
BLAKE2b-256 checksum
How to use checksums
4d0d561d55ed46a87d1b2b88c4e4e5938bcca587a1c5fc3db759b7e0647142a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for stxnext.grayscale 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page