Re: [Lift] Re: Image resize code

2010-01-31 Thread Timothy Perrett
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 retri

[Lift] Re: Image resize code

2010-01-28 Thread Strom
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 gande

Re: [Lift] Re: Image resize code

2010-01-28 Thread Jonathan Hoffman
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/Im

[Lift] Re: Image resize code

2010-01-28 Thread Strom
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 mu

Re: [Lift] Re: Image resize code

2010-01-28 Thread Jonathan Hoffman
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/63614a64a053c619c4330a8bad364677af49e8a2 On Jan 28, 2010, at 6:38 AM, Jepp

Re: [Lift] Re: Image resize code

2010-01-28 Thread Jeppe Nejsum Madsen
Strom 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-imaging/ /Jeppe -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to

[Lift] Re: Image resize code

2010-01-27 Thread Strom
Where exactly is the code? I don't see anything about image resizing here. Thanks, Strom On Jan 15, 2:50 pm, Timothy Perrett wrote: > I've added the code here: > > http://github.com/dpp/liftweb/tree/wip_tim_285 > > Cheers, Tim > > On Jan 15, 8:52 pm, Ross Mellgren wrote: > > > This is already o

[Lift] Re: Image resize code

2010-01-15 Thread Timothy Perrett
I've added the code here: http://github.com/dpp/liftweb/tree/wip_tim_285 Cheers, Tim On Jan 15, 8:52 pm, Ross Mellgren wrote: > This is already on the main list, I moved it there after Peter mentioned it. > Sorry, I have a bad habit of starting conversations on lift-committers I'm > trying to

Re: [Lift] Re: Image resize code

2010-01-15 Thread Ross Mellgren
This is already on the main list, I moved it there after Peter mentioned it. Sorry, I have a bad habit of starting conversations on lift-committers I'm trying to break before David breaks it for me ;-) GIF resizing was a huge sticking point for the project here at Paytronix that this code was o