Package: collective.atimage.transformtoolbar
IntroductionThe 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 tocollective.atimage.transformmenu.FeaturesToolbar is in plone.abovecontentbody viewlet manager for Image and News ItemPerforms image transformations with AJAX to prevent reloading the pageDegrades gracefully in non-JavaScript browsersi18n support by using atcontentypes and plone i18n domains.Tested in Plone 3.3.5 and Plone 4.0‘Transforms’ tab is hidden in Image objects as its functionalities are now provided by the toolbar.InstallationAddcollective.atimage.transformtoolbarto the list of eggs to install, e.g.:[buildout]
...
eggs =
    ...
    collective.atimage.transformtoolbarTell the plone.recipe.zope2instance recipe to install a ZCML slug:[instance]
recipe = plone.recipe.zope2instance
...
zcml =
    collective.atimage.transformtoolbarRe-run buildout, e.g. with:$ ./bin/buildoutYou 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 ContributorsMarcos F. Romero <marcos.romero {at} inter-cultura {dot} com> (developer)Juan Pablo Giménez <jpg {at} rcom {dot} com {dot} ar > (unconditional help)CreditsThe icons used in this package were thankfully taken fromfamfamfam.comwebsite, where Mark James offers for free his 1000 icons work under theCreative Commons Attribution 3.0 LicenseIcons below were renamed to ease the implementation of this solution:shape_flip_vertical:transform-0.gifshape_flip_horizontal:transform-1.gifshape_rotate_anticlockwise:transform-2.gifshape_rotate_clockwise:transform-4.giftransform-3.gificon is an adaptation ofshape_flip_horizontal.Changelog1.2.3 (2011-11-25)Fixed icon for vertical axis / horizontal axis transformations1.2.2 (2010-09-21)Added simplejson dependency, which is used to automatically create JSON from Python objects (thanks to kojiro)Change http headers for JSON responses: added content-length, changed mimetype for application/json (thanks to MacYET3)Test updated according to above changesTested in Plone3.3.5 and Plone4.01.2.1 (2010-07-28)New test cases with News Items and Page objects and with AJAX interactionsViewlet is only shown in News Item when it has an image1.2 (2010-07-26)Enables Transform toolbar for News ItemsToolbar 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 constraints1.1 (2010-07-16)Performs transformations with AJAX (jQuery)Keeps “Transform” tab hidden if collective.atimage.transformmenu is installedNecessary i18n taken from plone domain1.0 (2010-06-04)Initial releaseHides “Transform” tab in ATImage by means of generic setup extension profileAdds “Transform” toolbar in ATImage with the available transformationsi18n taken from Products.ATContentTypesTested in Plone 3.3.5 and Plone4.03b