WebP Compression in Chrome
-
I spoke with Chrome support and they’ve said the reason my png’s look worse on Chrome-based browsers/Opera than on Firefox, Safari, and Edge is because WordPress is serving my site from https://i1.wp.com.
When a browser requests data from a server, it will send an HTTP “accept” header, telling the server what format this browser supports.
For Chrome, it sends this:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
The WordPress server can see image/webp is explicitly stated as being supported, so WordPress compresses the image to webp and sends that to Chrome instead.
The problem is in my instance WordPress seems to be overly compressing my png to a point where there is a dramatic quality loss when my page is viewed in a browser that isn’t doing this.Microsoft Edge and Firefox don’t support webp (and also not specified in HTTP “accept” header) which is why my image is looking better in those browsers.
Is there any way I can prevent this?/make the data request send less compressed webp file? I’ve been told this is a server-side fix.
- The topic ‘WebP Compression in Chrome’ is closed to new replies.