This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 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/

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
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