dragon66 / java-image-scaling

Automatically exported from code.google.com/p/java-image-scaling
Other
1 stars 1 forks source link

Implementation of a servlet filter using the library would be nice #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Attached is a draft of a servlet implementation that can handle image 
resizing. It is working but I'm still working on a caching mechanism that 
would prevent the recreation of the thumbnails

I've used the latest svn version

Original issue reported on code.google.com by valo...@gmail.com on 16 Mar 2010 at 2:26

Attachments:

GoogleCodeExporter commented 9 years ago
I think the servlet is a little outside the scope of the project. However I'm 
sure that 
your servlet will be appreciated by the users of the library, so maybe I'll 
create an zip 
file with example usage.

I must say that I was impressed with your work. I think you have a very clear 
way of 
writing source code.

For the caching part, I suggest that you take a look at EHCache (or the JSR107 
JCACHE API).

Original comment by m%nobel-...@gtempaccount.com on 20 Mar 2010 at 7:50

GoogleCodeExporter commented 9 years ago

Original comment by m%nobel-...@gtempaccount.com on 20 Mar 2010 at 7:51

GoogleCodeExporter commented 9 years ago
Thanks, You can use the code provided as you wish!

By the way, I was looking at a JSR107 based solution witch could fall back to a 
simple 
disk persistence based cache in case of no jsr107 implementation.

I think it becomes a little bit bigger than a simple java file implementing a 
Servlet 
:-) 

Original comment by valo...@gmail.com on 21 Mar 2010 at 7:36

GoogleCodeExporter commented 9 years ago
Thanks again :-)

I think I'll add the servlet you created pretty much as it is, and then point 
out that it 
must add some kind of cache mechanism to be useful in a production environment. 
Adding a cache is absolutely required, but it also spoils the simplicity of the 
servlet.

I'll add the servlet in the next release. Maybe in it's own file.

Original comment by m%nobel-...@gtempaccount.com on 21 Mar 2010 at 7:42