Mobile app version of vmapp.org
Login or Join
Kaufman445

: Weird unexpected image compression on a web server running Apache on Ubuntu? I have a weird problem on my production web server running Apache on Ubuntu: it compresses my images thereby dramatically

@Kaufman445

Posted in: #Apache2 #Compression #Images #Ubuntu

I have a weird problem on my production web server running Apache on Ubuntu: it compresses my images thereby dramatically lowering their quality!

Actually I have two virtual hosts running, each located in a different folder. Wether I display .gif images by navigating on the two sites, or acceding them directly by their url, their size and quality are invariably degraded.

I tried with three different browsers: same problem. Using them on other sites on the Web: no problem. Of course I disabled mod_deflate on the server (which should not compress images anyway), but the phenomenon remains.

On my local développement server, running the same configuration, everything is Ok.

Now I'm completely lost!

For the record, my configuration: Ubuntu 10.04, Apache 2, Php 5.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Kaufman445

1 Comments

Sorted by latest first Latest Oldest Best

 

@Goswami781

In Apache, the Content Negotiation can be finely configured for different media types. For Image types such as image/jpeg, image/gif etc, there's an option to serve them at different qualities.

With any luck you may have some directives that look like this:
Accept: image/gif, image/jpeg; q=0.40 in your httpd.conf/apache.conf

For more info, see the Content Negotiation section in the Apache Documentation.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme