On 5/11/07, Frédéric <[EMAIL PROTECTED]> wrote:
> On Friday 11 May 2007 21:38, Elvelind Grandin wrote:
>
> > > > perhaps writing a custom controller for serving the images and send
> > > > the sizes along with the url like
> > > > "/images/000001.png?height=100&amp;width200" and do the resizing on
> > > > the fly (with caching of course).
> > >
> > > The idea is good, but I still need to retreive the size of the
> > > photo... And I don't know how to do that if the size is in the
> > > template.
> >
> > Why do you need to retrieve the size?
>
> To resize the uploaded photo, and make it fit exactly the size in the
> template (or to be contained in it, if ratios are different).
>
> As I explained, navigators interpolators are very poor, and the result is
> ugly. I need to use a program like convert, PIL or so to have a good
> interpolation.

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?

>
> --
>    Frédéric
>
>    http://www.gbiloba.org
>
>


-- 
cheers
    elvelind grandin

--~--~---------~--~----~------------~-------~--~----~
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