473,461 Members | 1,754 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Gzip weirdness

I tried using a custom Http Module to Gzip pages since my host wont enable
GZIP via IIS. What i found was that page size actually increased - the
increase came from the images. The total size of the 15 images on the page
increased by about 15K with Gzip enabled using the Http Module. Anyone else
experience this? The acutal size of the rendered HTML did decrease by about
50%.

Ashok Padmanabhan DVM
Sep 6 '07 #1
4 1575
that fairly typical of trying to compress a file thats already been
compressed.

standalone zip makes multiple tries, and will notice nothing works, so
no compression is used and only a little overhead is added to the file.

with http/gzip the blocks must be ziped as they pass and every block
pays the extra overhead, so the file is larger.

-- bruce (sqlwork.com)

Showjumper wrote:
I tried using a custom Http Module to Gzip pages since my host wont enable
GZIP via IIS. What i found was that page size actually increased - the
increase came from the images. The total size of the 15 images on the page
increased by about 15K with Gzip enabled using the Http Module. Anyone else
experience this? The acutal size of the rendered HTML did decrease by about
50%.

Ashok Padmanabhan DVM

Sep 6 '07 #2
So then it really isnt worth to Gzip via an HttpModule since the final
overhead is actually more even though the HTML size is smaller. Right?
"bruce barker" <no****@nospam.comwrote in message
news:eO**************@TK2MSFTNGP05.phx.gbl...
that fairly typical of trying to compress a file thats already been
compressed.

standalone zip makes multiple tries, and will notice nothing works, so no
compression is used and only a little overhead is added to the file.

with http/gzip the blocks must be ziped as they pass and every block pays
the extra overhead, so the file is larger.

-- bruce (sqlwork.com)

Showjumper wrote:
>I tried using a custom Http Module to Gzip pages since my host wont
enable GZIP via IIS. What i found was that page size actually increased -
the increase came from the images. The total size of the 15 images on the
page increased by about 15K with Gzip enabled using the Http Module.
Anyone else experience this? The acutal size of the rendered HTML did
decrease by about 50%.

Ashok Padmanabhan DVM

Sep 6 '07 #3
You are not supposed to GZip images. Gif and Jpeg are already compressed
formats. And you can not compress them more.
Try to configure it so it comresses only aspx, html, js, css.

George.

"Showjumper" <nlsdkfjawrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>I tried using a custom Http Module to Gzip pages since my host wont enable
GZIP via IIS. What i found was that page size actually increased - the
increase came from the images. The total size of the 15 images on the page
increased by about 15K with Gzip enabled using the Http Module. Anyone else
experience this? The acutal size of the rendered HTML did decrease by about
50%.

Ashok Padmanabhan DVM

Sep 6 '07 #4
I am not deliberately zipping the images. Its just that the total image file
size increases when using any Gzip HttpModule. I even tried excluding file
types in web.config and that still still did not help.
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:OL**************@TK2MSFTNGP02.phx.gbl...
You are not supposed to GZip images. Gif and Jpeg are already compressed
formats. And you can not compress them more.
Try to configure it so it comresses only aspx, html, js, css.

George.

"Showjumper" <nlsdkfjawrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>I tried using a custom Http Module to Gzip pages since my host wont enable
GZIP via IIS. What i found was that page size actually increased - the
increase came from the images. The total size of the 15 images on the page
increased by about 15K with Gzip enabled using the Http Module. Anyone
else experience this? The acutal size of the rendered HTML did decrease by
about 50%.

Ashok Padmanabhan DVM


Sep 7 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: bmgz | last post by:
I am having problems trying to use the gzip module, I do the followig >>>import gzip >>>file = gzip.GzipFile("testfile.txt") >>>file.write() -which params does this accept?, archive name? I...
10
by: Xah Lee | last post by:
today i need to use Python to decompress gzip files. since i'm familiar with Python doc and have 10 years of computing experience with 4 years in unix admin and perl, i have quickly located the...
2
by: comp.lang.php | last post by:
I am simply trying to zip together selected files into a single ZIP file. Windows XP doesn't have a native process by which you can do this, so I borrowed gzip, downloaded and installed, and upon...
25
by: Xah Lee | last post by:
Python Doc Problem Example: gzip Xah Lee, 20050831 Today i need to use Python to compress/decompress gzip files. Since i've read the official Python tutorial 8 months ago, have spent 30...
5
by: David Thielen | last post by:
Hi; I am creating png files in my ASP .NET app. When I am running under Windows 2003/IIS 6, the file is not given the security permissions it should have. It does not have any permission for...
14
by: Bill | last post by:
I've written a small program that, in part, reads in a file and parses it. Sometimes, the file is gzipped. The code that I use to get the file object is like so: if filename.endswith(".gz"):...
0
by: Gabriel Genellina | last post by:
En Wed, 19 Nov 2008 13:25:03 -0200, Barak, Ron <Ron.Barak@lsi.com> escribió: Note *where* the exception is raised. Until something is actually read, no check is made for the file format. --...
0
by: Barak, Ron | last post by:
Thanks Gabriel, Okay, I get it: I was under the impression that the format check would be done on the open. Bye, Ron. -----Original Message----- From: Gabriel Genellina Sent: Thursday,...
3
by: sentimental | last post by:
Showjumper, Images and HTML don't load at the same time on a web site. Your browser actually makes a separate request for each resource. So, you CAN use gzip to compress just the HTML on the...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.