Current time: 07-24-2019, 01:56 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gzip compreession jpgs
01-04-2014, 04:18 AM (This post was last modified: 01-04-2014 04:32 AM by trx.)
Post: #1
gzip compreession jpgs
Hello Community,
Why is it that the jpgs are not gzipped and fails, but all the other images (gif, png, etc) are gzipped?

http://www.webpagetest.org/result/140103...ess_images

Thoughts?

Thanks!

TRX
Find all posts by this user
Quote this message in a reply
01-04-2014, 04:30 AM
Post: #2
RE: gzip compreession jpgs
That's not gzip, it re-compresses the jpeg's at quality level 85 to see if they were compressed at too high of a quality.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-04-2014, 04:33 AM (This post was last modified: 01-04-2014 05:06 AM by trx.)
Post: #3
RE: gzip compreession jpgs
Sorry I forgot gzip related to text components ONLY. Can you elaborate on the process and logic it performs flagged jpg (other image types) as a compression pass or NOT?

Also is there a thumb rule for the size of a text component as when to gzip or not?
CDN's like EdgeCast states "Note that files larger than 1MB will never be served with compression regardless of whether their content-type is enabled for compression.". So it sounds like compressing text components larger than 1MB does not optimize the data transfer. Is that correct?
Find all posts by this user
Quote this message in a reply
01-07-2014, 04:30 AM (This post was last modified: 01-07-2014 04:33 AM by mrPerezMarc.)
Post: #4
RE: gzip compreession jpgs
Gzip EVERYTHING that is text based, especially if it's 1MB+
As an added bonus, it's always good to minify the content, CSS, JS, HTML.

Also, trying to gzip an image has two negative effects, #1, it's gonna bloat the size, #2 uses system resources for nothing.

As for you images that got flagged, try compressing them in a lossless fashion. You can do it with photoshop or jpegtran.

I also recommend trying JPEGMini on your JPeGs. Maybe you'll get a better file size Smile
Find all posts by this user
Quote this message in a reply
01-08-2014, 03:21 AM
Post: #5
RE: gzip compreession jpgs
Thanks for the clarification.

What would be your size rule for sending text base files over the network in chunks?
Find all posts by this user
Quote this message in a reply
01-09-2014, 02:31 AM
Post: #6
RE: gzip compreession jpgs
Quote:CDN's like EdgeCast states "Note that files larger than 1MB will never be served with compression regardless of whether their content-type is enabled for compression."

Perhaps because files like HTML, CSS and Javascript rarely reach 1MB, and compression of any file above 1MB (though this is not some magic file size, just an imposed limit) is much more costly in terms of CPU-time than your average text files.
Find all posts by this user
Quote this message in a reply
01-14-2014, 12:13 PM
Post: #7
RE: gzip compreession jpgs
Yeah I guess it varies depending on the config as to apply what rules to when to gzip text components.

What's would be the thumb rules on using chunk encoding?
Find all posts by this user
Quote this message in a reply
01-15-2014, 04:06 AM
Post: #8
RE: gzip compreession jpgs
(01-14-2014 12:13 PM)trx Wrote:  Yeah I guess it varies depending on the config as to apply what rules to when to gzip text components.

What's would be the thumb rules on using chunk encoding?

Chunk encoding just send the webpages in pieces, if you have css or js file chunked, the page will have to load the complete file in case their is code that needs to be parsed.

Chunked when combined with flush(); (if using apache). It'll send part of your website as soon as the buffer is ready. But be carefull, if not used properly, visitors will see your page go from text mode, to finished mode. It's usually a good idea to inline some css of the top part of your site, and put a flush right after it. People will see the banner part and the rest of the site to follow.

That's why sometimes you see the googlebar on top of page before the rest of the content is loaded.
Find all posts by this user
Quote this message in a reply
06-27-2014, 11:44 AM
Post: #9
RE: gzip compreession jpgs
Thanks.

In what situations are best to use chunk encoding vs. not chunk encoding?
Find all posts by this user
Quote this message in a reply
06-27-2014, 12:04 PM
Post: #10
RE: gzip compreession jpgs
(06-27-2014 11:44 AM)trx Wrote:  Thanks.

In what situations are best to use chunk encoding vs. not chunk encoding?

I would use chunk for anything that is above the fold content. Other than that, I would recommend you refactor your site to not use it.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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