Google Increases JPEG Compression by 35% Without Loss in Image Quality

Discussion in 'HardForum Tech News' started by cageymaru, Mar 17, 2017.

  1. cageymaru

    cageymaru [H]ard as it Gets

    Messages:
    19,815
    Joined:
    Apr 10, 2003
    Google has developed a new compression algorithm for JPEG images that shrinks them 35% smaller than today's methods without image loss. According to the Google blog announcement post, "Guetzli is a JPEG encoder for digital images and web graphics that can enable faster online experiences by producing smaller JPEG files while still maintaining compatibility with existing browsers, image processing applications and the JPEG standard." Guetzli focuses on compression at the quantization stage as that is where more visual degeneration of the image occurs.

    To accomplish this, Guetzli is using psychovisual research based on HVS or the human visual system model. HVS is the study of what humans perceive to be suitably, visually similar. This research worked for the advent of color television as a way to save on bandwidth, and now jpeg compression. This modelling takes longer to process than conventional methods, but in studies 75% of people preferred the Guetzli method over libjpeg even when libjpeg was allowed to use a larger file size. Pretty impressive!

    It is our hope that webmasters and graphic designers will find Guetzli useful and apply it to their photographic content, making users’ experience smoother on image-heavy websites in addition to reducing load times and bandwidth costs for mobile users. Last, we hope that the new explicitly psychovisual approach in Guetzli will inspire further image and video compression research.
     
    AceGoober likes this.
  2. Cali3350

    Cali3350 [H]ardness Supreme

    Messages:
    4,654
    Joined:
    Mar 22, 2002
    Still JPEG, still compatible with everything else out there.

    Sure, why not. Hard to find anything bad here.
     
    Koween, Rahh and cageymaru like this.
  3. travisty

    travisty Gawd

    Messages:
    815
    Joined:
    Feb 3, 2016
    Besides the fact it's jpeg :p
     
    SvenBent and anthrex like this.
  4. rezerekted

    rezerekted 2[H]4U

    Messages:
    3,043
    Joined:
    Apr 6, 2015
    There's another method to make pages load faster, block all the spam.
     
    jeremyshaw, DocSavage and Nenu like this.
  5. Nenu

    Nenu [H]ardened

    Messages:
    18,993
    Joined:
    Apr 28, 2007
    Yeah but how does it cope with a zoomed image?
    Higher compression of this nature will result in more artefacts that might be ok 1:1, but larger?
     
    lostinseganet and AceGoober like this.
  6. Tiberian

    Tiberian DILLIGAFuck

    Messages:
    5,725
    Joined:
    Feb 12, 2012
    If people did that, how would they ever see your posts? :D
     
  7. rezerekted

    rezerekted 2[H]4U

    Messages:
    3,043
    Joined:
    Apr 6, 2015
  8. Ultima99

    Ultima99 [H]ardness Supreme

    Messages:
    4,890
    Joined:
    Jul 31, 2004
    Interesting, but change is hard. I wonder what the realistic uptake potential on this is and over what time frame?
     
  9. Jim Kim

    Jim Kim 2[H]4U

    Messages:
    3,549
    Joined:
    May 24, 2012
    now that's funny.
     
  10. Gigus Fire

    Gigus Fire 2[H]4U

    Messages:
    2,275
    Joined:
    Oct 14, 2004
    Block all ads is even better. Especially on mobile devices.
    I've found that chrome is really popular on phones, but doesn't allow for plugins. Firefox allows for chrome plugins. No need to root and apply ad blocking software, just do it through firefox.
     
    jeremyshaw likes this.
  11. Kelter

    Kelter Limp Gawd

    Messages:
    341
    Joined:
    Dec 23, 2005
    Wait.. . when did Hooli buy Pied Piper?
     
    rgMekanic likes this.
  12. Spidey329

    Spidey329 [H]ardForum Junkie

    Messages:
    8,676
    Joined:
    Dec 15, 2003
    This is Nucleus, PiedPiper will blow this away.
     
  13. SonicTron

    SonicTron Snopes is My Fact Checker

    Messages:
    5,894
    Joined:
    Mar 9, 2000
    No image degradation my ass
     
  14. Kaitian

    Kaitian [H]ardness Supreme

    Messages:
    4,872
    Joined:
    Aug 12, 2008
  15. Jagger100

    Jagger100 [H]ardness Supreme

    Messages:
    7,508
    Joined:
    Oct 31, 2004
    Does this mean I can 'zoom and enhance'?

    Anyway, its not clear if this is a 35% reduction without additional loss or is this a 35% reduction that is lossless or is this a 35% reduction that is perceptually lossless.
     
  16. Retronym

    Retronym Something big is coming.

    Messages:
    11,774
    Joined:
    Mar 5, 2007
    SVG & PNG or bust.
     
    Semantics likes this.
  17. greenman

    greenman Gawd

    Messages:
    588
    Joined:
    Jul 17, 2007
    Is this the same thing as smush.it! ?
     
  18. Spidey329

    Spidey329 [H]ardForum Junkie

    Messages:
    8,676
    Joined:
    Dec 15, 2003
    Pretty sure the quote explains this is based on perceptual loss as it discusses the testing methodology of comparing it to larger file sizes to see if the test subject perceived a degradation in image quality.

    So the loss is there for there to be 35% efficiency gain, but the users it was tested against did not perceive it.
     
  19. DocSavage

    DocSavage 2[H]4U

    Messages:
    2,409
    Joined:
    Dec 18, 2002
    So, in theory, they could split the difference and make images 20% smaller while increasing perceived quality.
     
  20. prime2515102

    prime2515102 [H]ard|Gawd

    Messages:
    1,511
    Joined:
    Mar 3, 2003
    It's the 21st century and we still have bandwidth issues. The web should be filled with uncompressed images by now. :p
     
  21. MrBonk

    MrBonk Limp Gawd

    Messages:
    142
    Joined:
    Sep 19, 2016
    Just what we need, more compression artifacts! (Joking)

    If it can get visually similar to max quality JPEG currently though, it might not be so bad. (Which is nearly visually indistinct from lossless in a lot of ways. You'd be hard pressed to pick out the difference. It's not blatantly covered with artifacts as every level below max quality is)

    Source Image: http://u.cubeupload.com/MrBonk/SG.png
    Here's an image showing the difference between a lossless image and max quality JPEG (+3EV to make it more visible)
    [​IMG]
    And the same with two levels lower of compression
    [​IMG]


    In this day in age though, unless you are making a set of separate images strictly for mobile browsing. There is no excuse not to use Max quality JPGs.
    Which just reminds me the 3DS eShop was rather horrible about this. Super compressed images for everything.


    EDIT: I ran the same image through their new encoder and here is the difference file at 100% JPG.

    [​IMG]

    Very impressive!

    File size difference however is not as impressive. Either some kind of bug or perhaps the encoding is just that much higher quality at max quality.

    PS-Max quality JPG -844kb (3-Scan)
    PS-Level 10 quality JPG-393kb (3-scan)
    Guetzli-quality 100 JPG- 1.25MB

    Edit2: Actually I am not so sure.
    Here's the same image run through Infranview's JPG encoder ((LibJpeg-Turbo))at 100 quality , similar file size as Guetzli 1.28mb
    [​IMG]
     
    Last edited: Mar 17, 2017
  22. c_porter

    c_porter [H]Lite

    Messages:
    114
    Joined:
    Apr 13, 2009
    Mozilla did this years ago with mozjpeg....
     
  23. sleepeeg3

    sleepeeg3 [H]ardness Supreme

    Messages:
    4,859
    Joined:
    Mar 4, 2004
    They only needed to do this about 20+ years ago... Probably more useful for digital camera photos.

    Different programs have different .jpeg compression algorithms anyway. Photoshop always seems to store comparably worse picture quality for a larger photo size. Meanwhile, I have an old copy of PaintShopPro that results in substantially reduced .jpeg file sizes, for slightly improved .jpeg picture quality, when saving with maximum settings in both programs. FastStone Photo Resizer also results in reduced file sizes over PS.
     
  24. Jagger100

    Jagger100 [H]ardness Supreme

    Messages:
    7,508
    Joined:
    Oct 31, 2004
    Tell that to people on data plans. Who don't really need a hi-res image along with the financial considerations.

    The JPG is a way to keep images small but have the detail there for people who are using big boy computers instead of pocket computers.
     
  25. Valset

    Valset [H]ardness Supreme

    Messages:
    6,531
    Joined:
    Apr 4, 2008
    That depends on how fast it is. You could see it be an issue if it requires more horsepower
     
  26. SvenBent

    SvenBent 2[H]4U

    Messages:
    3,146
    Joined:
    Sep 13, 2008
    Guetzli is no quite news. but nice seeing it gets mainstream attention now,

    Guetzli uses a more more CPU power to improve the psychovisuel part of encoding the picture lossy. aka it actually tries to make things look "better"



    alot of that is the massive meta tags that photoshop puts into the pictures.
    you shoudl try optiminzg the jpgs with somthing like mozjpeg. that strip out meta data and uptimisedsthe huffman compression stages.
    you'll see a drop in size with no change in the pixel data.
     
    sleepeeg3 likes this.
  27. MRAB54

    MRAB54 Gawd

    Messages:
    834
    Joined:
    Sep 9, 2001
    But did they solve the mean jerk time algorithm?