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 Beginning Java and the fly likes Quality image 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 » Beginning Java
Bookmark "Quality image" Watch "Quality image" New topic
Author

Quality image

Kia Phia Ben
Ranch Hand

Joined: Dec 16, 2005
Posts: 48
Hi all
I have problem when I writing my program.
I have two image: A.jpeg and B.jpeg. I do not know what image which have quality highter than other image?
Please tell me how to know quanlity of image with Java.
Thank for help me.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

I typed in "java jpeg quality" in Google and got a whole list of answers in a fraction of a second. This one looks useful:

The Java Developers Almanac - Compressing a JPEG File

It shows how you can set the compression quality when writing a JPEG with the Java ImageIO API.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
What does or does not constitute high quality is of course a subjective notion.

Assuming that both images are of the same pixel size, and are in fact the very same image, then it is pretty safe to assume that the one that is larger in byte size has a higher quality.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Quality image
 
Similar Threads
ImageIO.write(...) significantly reduces quality of image...
image resizing
Can you please give me details how to improve the picture quality and resolution in j
image enhancement / smoothing
Uploading an image and resizing it and saving it to disk.