Skip to main content

'Transforms' toolbar in Image and News Item to perform image transformations

Project description

Introduction

The solely intention of this product is to show in Image and News Item content types an icon-toolbar viewlet in the plone.abovecontentbody viewlet manager.

By keeping the user in the same page and requiring less clicks and page loads we intend to ease applying transformations in the images.

This is an alternative to collective.atimage.transformmenu.

Features

  • Toolbar is in plone.abovecontentbody viewlet manager for Image and News Item

  • Performs image transformations with AJAX to prevent reloading the page

  • Degrades gracefully in non-JavaScript browsers

  • i18n support by using atcontentypes and plone i18n domains.

  • Tested in Plone 3.3.5 and Plone 4.0b5

  • ‘Transforms’ tab is hidden in Image objects as its functionalities are now provided by the toolbar.

Installation

  • Add collective.atimage.transformtoolbar to the list of eggs to install, e.g.:

    [buildout]
    ...
    eggs =
        ...
        collective.atimage.transformtoolbar
  • Tell the plone.recipe.zope2instance recipe to install a ZCML slug:

    [instance]
    recipe = plone.recipe.zope2instance
    ...
    zcml =
        collective.atimage.transformtoolbar
  • Re-run buildout, e.g. with:

    $ ./bin/buildout

You can skip the ZCML slug if you are using Plone 3.3 or if you are going to explicitly include the package from another package’s configure.zcml file.

Authors and Contributors

  • Marcos F. Romero <marcos.romero {at} inter-cultura {dot} com> (developer)

  • Juan Pablo Giménez <jpg {at} rcom {dot} com {dot} ar > (unconditional help)

Credits

The icons used in this package were thankfully taken from famfamfam.com website, where Mark James offers for free his 1000 icons work under the Creative Commons Attribution 3.0 License

Icons below were renamed to ease the implementation of this solution:

  • shape_flip_vertical: transform-0.gif

  • shape_flip_horizontal: transform-1.gif

  • shape_rotate_anticlockwise: transform-2.gif

  • shape_rotate_clockwise: transform-4.gif

transform-3.gif icon is an adaptation of shape_flip_horizontal.

Changelog

1.2.1 (2010-07-28)

  • New test cases with News Items and Page objects and with AJAX interactions

  • Viewlet is only shown in News Item when it has an image

1.2 (2010-07-26)

  • Enables Transform toolbar for News Items

  • Toolbar viewlet manager in Image is changed to make it consistent with News Item (plone.abovecontentbody)

  • Image update with AJAX now reloads the whole image tag instead of just src attribute to prevent width/height constraints

1.1 (2010-07-16)

  • Performs transformations with AJAX (jQuery)

  • Keeps “Transform” tab hidden if collective.atimage.transformmenu is installed

  • Necessary i18n taken from plone domain

1.0 (2010-06-04)

  • Initial release

  • Hides “Transform” tab in ATImage by means of generic setup extension profile

  • Adds “Transform” toolbar in ATImage with the available transformations

  • i18n taken from Products.ATContentTypes

  • Tested in Plone 3.3.5 and Plone4.03b

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

collective.atimage.transformtoolbar-1.2.1.tar.gz (22.9 kB view details)

Uploaded Source

File details

Details for the file collective.atimage.transformtoolbar-1.2.1.tar.gz.

File metadata

File hashes

Hashes for collective.atimage.transformtoolbar-1.2.1.tar.gz
Algorithm Hash digest
SHA256 414cf25c269bd832f038d44211d7bb5a03629e38a1662e28093639aa5f748977
MD5 27824b12bb4784ee801fef29e94bb2f0
BLAKE2b-256 b0f5b3fb7c04c6de5c0ea71b62f1646061d1f805d61deb8e3102d3f9067ad580

See more details on using hashes here.

Supported by

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