wood burning stoves 2.0*
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
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: 867
    
    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/

 
jQuery in Action, 2nd edition
 
subject: Image resizing before storing on file system