Skip to main content

Unified interface to access image data in different Zope image objects

Project description

Introduction

gomobile.imageinfo is abstraction layer to access image data in different Zope image objects. It takes in any image object or traversable path and returns Python Imaging Library object for it.

Supported different image objects include

  • Skin layer images, both file system based and ZMI uploads

  • Archetypes ATImage

  • Resource folder images (static media)

  • Images hosted on another server (http:// download)

This package is mainly used with Go Mobile for Plone project to dynamically resize images for mobile presentation, regardless what kind of image there was in the source code. It is used to extract image width and height, calculate proper mobile image size and then resize the image for that size on a second pass.

Usage

See tests for code examples.

TODO

  • Tests depends on gomobile.mobile presence

Source code

Source code is available via Google Code.

Beta software

This software is still in much development and aimed for advanced Python developers only.

Author

mFabrik Research Oy - Python and Plone professionals for hire.

Changelog

0.1

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gomobile.imageinfo-0.1.tar.gz (17.8 kB view details)

Uploaded Source

File details

Details for the file gomobile.imageinfo-0.1.tar.gz.

File metadata

File hashes

Hashes for gomobile.imageinfo-0.1.tar.gz
Algorithm Hash digest
SHA256 9828e6a269262c3f3f22994c4576ea712ba6dd61510a4fac3f7d030bfe829f1a
MD5 171d4d17832c8ae5eacc8e6a4866f306
BLAKE2b-256 ebc5864e60403f4f34e583daaf6b61cc36022f7cd533b056be362e9a88f3b72e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page