IMO, these are separate concerns. lift-imaging is purely for image manipulation 
and caching etc does not belong there.

Cheers, Tim

On 28 Jan 2010, at 20:25, Strom wrote:

> By caching I mean like EHCache, where you serve an image from the
> cache (some folder on the file system) instead of retrieving the blob
> from the db to reduce db fetching. So I guess it would be stored in
> the file system :)
> 
> I might just be tempted to implement EHCache anyways, but I'll take a
> gander at Ross' code.
> 
> Thanks.
> Strom
> 
> On Jan 28, 11:26 am, Jonathan Hoffman <[email protected]> wrote:
>> By caching, I assume that you mean persistent storage?  You could store onto 
>> the file system after resizing.
>> 
>> I was snooping around Ross's github projects and noticed this example for 
>> serving images back from the 
>> filesystem:http://github.com/Dridus/test-image/blob/master/src/main/scala/test/I...
>> 
>> If you need an example of file uploading take a look a the source to 
>> demo.liftweb.net:http://github.com/dpp/liftweb/tree/master/examples/example
>> 
>> - Jon
>> 
>> On Jan 28, 2010, at 1:26 PM, Strom wrote:
>> 
>>> Thanks for pointing out the location. ImageHelpers is a good idea. As
>>> far as want to see, is there any way to effectively group this helper
>>> with Image serving and uploading and make them have some sort of
>>> caching? That would be really useful to be able to have a decently
>>> working image cache with multiple sizes. Don't know what is possible
>>> right now because I've only quickly glanced at the ImageHelper and
>>> resizer code.
>> 
>>> Strom
>> 
>>> On Jan 28, 8:46 am, Jonathan Hoffman <[email protected]> wrote:
>>>> I'm also working on adding some additional functionality and merging it 
>>>> with the function in ImageHelpers.
>> 
>>>> Let me know if there's anything you want to see.
>> 
>>>> Here's what I have so 
>>>> far:http://github.com/dpp/liftweb/commit/63614a64a053c619c4330a8bad364677...
>> 
>>>> On Jan 28, 2010, at 6:38 AM, Jeppe Nejsum Madsen wrote:
>> 
>>>>> Strom <[email protected]> writes:
>> 
>>>>>> Where exactly is the code? I don't see anything about image resizing
>>>>>> here.
>> 
>>>>> Try here
>> 
>>>>> http://github.com/dpp/liftweb/tree/master/framework/lift-modules/lift...
>> 
>>>>> /Jeppe
>> 
>>>>> --
>>>>> You received this message because you are subscribed to the Google Groups 
>>>>> "Lift" 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 
>>>>> athttp://groups.google.com/group/liftweb?hl=en.
>> 
>>> --
>>> You received this message because you are subscribed to the Google Groups 
>>> "Lift" 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 
>>> athttp://groups.google.com/group/liftweb?hl=en.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Lift" 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/liftweb?hl=en.
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" 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/liftweb?hl=en.

Reply via email to