termux / termux.github.io

The main termux site and help pages.
https://termux.github.io
883 stars 173 forks source link

Screenshots on multiple pages don't work anymore #7

Closed Neo-Oli closed 8 years ago

Neo-Oli commented 8 years ago

Hi, I've noticed today that the screenshots on the following pages don't work anymore:

https://termux.com/add-on-float.html https://termux.com/add-on-styling.html https://termux.com/add-on-widget.html

Neo-Oli commented 8 years ago

Correction: They work in Chrome, but not in other browsers. The reason is, that they are in the .webp format, which most browsers don't support yet. http://caniuse.com/#feat=webp

fornwall commented 8 years ago

Aha, interesting! They're links into images from the Play Store - I'll change them to be local images instead.

Neo-Oli commented 8 years ago

I investigated this a bit. The Play Store seems to do some User Agent Filtering delivering a PNG for browsers other than chrome. Which image gets loaded depends on the -rw suffix:

WebP

https://lh3.googleusercontent.com/yvQF2Jdemixl3ThDOcRmJzFS0W7X7vjpdMn1Jwl0-MNpRhew0Fcv0qH6dsKh6RkP5w=h310-rw

PNG

https://lh3.googleusercontent.com/yvQF2Jdemixl3ThDOcRmJzFS0W7X7vjpdMn1Jwl0-MNpRhew0Fcv0qH6dsKh6RkP5w=h310