GeeCON Prague 2014*
The moose likes Spring and the fly likes Image resizing, compressing before storing on file system Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Image resizing, compressing before storing on file system" Watch "Image resizing, compressing before storing on file system" New topic
Author

Image resizing, compressing before storing on file system

sachin pachpute
Ranch Hand

Joined: Aug 05, 2004
Posts: 35
My application is successfully storing user uploaded image on a file system and image name in the database. If size of the image is large, it will throw an error. Its Spring 3/ Hibernate application.

Now I want to,

1. Change dimension of the image before storing on file system
2. Rather than throwing an error (if image size is large), I want to compress image to the maximum allowed limit (set by me) and then store it

Can someone please suggest the best way to achieve this or a reference?


Thanks in advance
sachin pachpute
Ranch Hand

Joined: Aug 05, 2004
Posts: 35
closing this post because this forum seems to be incorrect for this topic
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Image resizing, compressing before storing on file system