• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Quality image

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic