On Fri, 11 May 2007 at 23:44, Fr?d?ric wrote:
> On Friday 11 May 2007 23:31, Elvelind Grandin wrote:
>
>> Yes. I understand the problem. that's why I suggested doing the
>> resizing on the fly when the image is requested by the user. or am I
>> missing some key part of the app?
>
[...]
>
> If positions can be ignored by the model (the navigator will do the job
> according to the CSS embedded in the template), the size of photos has to
> be known by the controler (at either editing time, to only resize them
> once, or at displaying time, with the mecanism you suggested), for the
> reasons we know.
>
> And except by parsing the template, I don't see how the controller can
> retreive the information...

Unless I'm missing something, Elvelind was suggesting that you have the
template writers put the size information into the url that will be used
in the 'src' link to retrieve the image.  That way the size information
will be transmitted to your controller that handles serving the image,
which can then do the resize on the fly.

--David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to