p.a.imaging scaling

Maarten Kling <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <CA+WXogPd9-qGA-4bFZfiAYEu6ootEJDedr8VR-Ky5gbL2f48jA@mail.gmail.com>
Hi all,

When using "scale.scale('image', width=1200, height=800,
direction='down').tag()" in a template is the image created on the fly? and
more important, is this done for every single call? or is the scaled image
stored in blob?

<img tal:define="scale context/@@images"
     tal:replace="structure python: scale.scale('image',
                  width=1200, height=800, direction='down').tag()" />

Second question, when using a direct url, so i don't need to get the object
when looping brains:

<img tal:attributes="src string:${brain/getUrl}/@@images/image/preview;
alt: view/Title" />

Is the preview image already created and saved as blob, or made on view and
this way it still calls the object?

Last question:
Is it possible to create a new scale having direction 'down' or 'up'
setting, so i can call this scaled image directly by url? When creating a
new scale in propertiestool.xml you cannot select any directions and image
format is respected.

Regards,

-- 
-- 
Maarten Kling
http://fourdigits.nl/mensen/maarten-kling

Four Digits BV
http://www.fourdigits.nl
Jansbinnensingel 26, 6811 AL, Arnhem
tel: +31 (0)26 4422700 fax: +31 (0)84 2206117

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk

_______________________________________________
Plone-developers mailing list
Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/plone-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.