Data AccessCore JavaApp FrameworksViewTestingBuildingDeploymentDev ToolsSecurityOpinions

Monday, December 29, 2008

javax.imageio.ImageIO and degrading JPEG

JPEG is a lossy compression encoding algorithm. Each time you encode a JPEG image, you lose image quality because of the cosine coefficients dropped in order to perform the compression.

Using the read and write methods from javax.imageio.ImageIO.read and javax.imageio.ImageIO.write method will amplify this quality loss, because of varying detail levels during the read and write. You may be reading a jpeg and 90% detail and writing it with 50% detail.

Avoid jpeg interpretation of image files unless image processing is required.

5 comments:

  1. Really nice you shared great information which is useful to us, thanks a lot for sharing it. packers and movers in hyderabad packers and movers kukatpally

    ReplyDelete
  2. The payback time allotment is organized for a 6-9 months term, however it's not settled, and there won't be any punishments on the off chance that it takes longer. Cash Advance Carson

    ReplyDelete
  3. Your advance applications can be affirmed in 24 to 48 hours.There are times that you can even get affirmed inside minutes and get the cash you require inside hours.car title loans chicago

    ReplyDelete