File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Uploading an image and resizing it and saving it to disk. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Uploading an image and resizing it and saving it to disk." Watch "Uploading an image and resizing it and saving it to disk." New topic
Author

Uploading an image and resizing it and saving it to disk.

Abhilash
Greenhorn

Joined: Nov 02, 2004
Posts: 12
Hi all ,
I am sorry if i am in a wrong place .

I have a problem with the resized image.

I uploaded an image resized it and saved it to the disk .. the resized image compared to the original one .. is of poor quality.Pixels are scatered all over . not much .. but one can make out the difference.

Is there any way i can improve the quality of the image while resizing.

all i do is

Image newimage = myImage.getScaledInstance(width,height,java.awt.Image.SCALE_DEFAULT);

and stored the image to a file.

Kindly guide me
Thanx and regards
Abhilash A t
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Please see the previous requests to change your display name.

If you do not change immediately your account will be deleted and you won't be able to ask any more questions.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Just in case you didn't realise, this is your last warning before your account is deleted.

Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Uploading an image and resizing it and saving it to disk.