This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Image resizing before storing on file system Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Image resizing before storing on file system" Watch "Image resizing before storing on file system" New topic
Author

Image resizing 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. Before storing the image I want to,

1. Change dimension of the image so that all images presented to user are consistent in size
2. Reduce image size to lets say 500kb

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


Thanks in advance
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 866
    
    5
sachin pachpute wrote:
Can someone please suggest the best way to achieve this or provide any reference?

http://www.lmgtfy.com?q=java+image+size
http://www.mkyong.com/java/how-to-resize-an-image-in-java/

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Image resizing before storing on file system
 
Similar Threads
Checking the Filesize
image repository in DB
Beginner at Image manipulation...
Image resizing, compressing before storing on file system
Save transparent buffered image