[Lift] Re: Resizing images

2009-04-16 Thread Viktor Klang
On Thu, Apr 16, 2009 at 7:36 AM, Charles F. Munat c...@munat.com wrote: Has anyone here done anything with Lift in which uploaded images are resized (or otherwise manipulated) before saving? If so, how did you do it? Any recommendations for libraries? GAE offers that kind of functionality.

[Lift] Re: Resizing images

2009-04-16 Thread Charles F. Munat
The Georgia Association of Editors? That's good to know. (Unfortunately, the app is already built and running on my own server and I have no time to play with GAE right now. But I'm getting more and more curious about it.) It's funny. I would think that lots of people would be resizing

[Lift] Re: Resizing images

2009-04-16 Thread Jean-Luc
Imagemagick is said to be very efficient for image processing. http://www.imagemagick.org/script/api.php#java If you develop with MacOSX, some people had some compile issues with JMagick and have prefered a more direct solution using exec :

[Lift] Re: Resizing images

2009-04-16 Thread Alexander Kellett
i used jai in the past, a quick google let me to http://www.digitalsanctuary.com/tech-blog/java/how-to-resize-uploaded-images-using-java-better-way.html On Thu, Apr 16, 2009 at 11:10 AM, Jean-Luc jlcane...@gmail.com wrote: Imagemagick is said to be very efficient for image processing.

[Lift] Re: Resizing images

2009-04-16 Thread Derek Chen-Becker
Jai or just Java2D would work. I use JAI a lot at work (wrote a large-scale image rendering and compositing application), so if you run into issues there just ask. JAI can be somewhat heavy if you have simple requirements, so you could also just use the Image.getScaledInstance method, which is

[Lift] Re: Resizing images

2009-04-16 Thread Charles F. Munat
Thanks! I tried JAI before but couldn't get it to work in Scala. I'm a much better Scala programmer now, though, so maybe I'll give it another look. Do you think it has any advantages of the other methods mentioned (imageio and jmagick)? Have you actually made it work in Lift? Chas.

[Lift] Re: Resizing images

2009-04-16 Thread Charles F. Munat
What do you mean by pure java implementation vs. optimized native code? Chas. Derek Chen-Becker wrote: Yes, I take back my recommendation for it. I didn't realize just how bad it was, but here's a good article on it:

[Lift] Re: Resizing images

2009-04-16 Thread Charles F. Munat
I'm down with that. I tried adding this to my pom: dependency groupIdjavax.media/groupId artifactIdjai_core/artifactId version1.1.2_01/version /dependency But I got this: Failed to resolve artifact. Missing: -- 1) javax.media:jai_core:jar:1.1.2_01 Anyone know how to pull

[Lift] Re: Resizing images

2009-04-16 Thread Derek Chen-Becker
I don't know that it's in maven. A lot of sun libraries aren't distributable via Maven due to licensing. Derek On Thu, Apr 16, 2009 at 4:54 PM, Charles F. Munat c...@munat.com wrote: I'm down with that. I tried adding this to my pom: dependency groupIdjavax.media/groupId

[Lift] Re: Resizing images

2009-04-16 Thread Charles F. Munat
Yeah, I'm pretty sure it's not. Weirdly, it's listed, but when you drill down, there's no jar there. But it's not clear whether it's already available on the system. And finding the damn jar is provide (as always) to be nearly impossible. I'll post if I find it. Chas. Derek Chen-Becker