Current time: 12-17-2017, 08:14 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
image compression: how does webpagetest check if an image can be compressed??!?
04-19-2014, 05:30 AM (This post was last modified: 04-25-2014 10:38 AM by dlam.)
Post: #1
image compression: how does webpagetest check if an image can be compressed??!?
hey! I was wondering how exactly webpagetest figures out if an image could be more compressed or not, so I could test/tweak stuff see if my site is generating the "right" sized images

i gave a shot at looking at the source and found this constant in wpt_test.cc:37 which looks like maybe a clue... ->

wpt_test.cc
37:static const BYTE JPEG_DEFAULT_QUALITY = 30;


HuhAngelSmile
Find all posts by this user
Quote this message in a reply
04-25-2014, 10:38 AM
Post: #2
RE: image compression: how does webpagetest check if an image can be compressed??!?
*bump bump*
Find all posts by this user
Quote this message in a reply
04-29-2014, 04:25 AM
Post: #3
RE: image compression: how does webpagetest check if an image can be compressed??!?
The code you're looking for is actually here: https://github.com/WPO-Foundation/webpag...ks.cc#L327

It recompresses jpegs at a quality level of 85 which is pretty generous (usually you can go down to 75 without even thinking about it). The process also strips out meta-data like exif tags.
Visit this user's website Find all posts by this user
Quote this message in a reply
05-06-2014, 03:09 PM
Post: #4
RE: image compression: how does webpagetest check if an image can be compressed??!?
cool! thanks Pat! Big Grin Smile Wink Angel
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)