aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 14114
    
  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: 41574
    
  54
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
 
 
subject: Quality image