#2969 - Support for apng overrides of .gif theme image files
| Identifier | #2969 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Support for apng overrides of .gif theme image files |
| Status | Completed |
| Tags |
Skills: Graphic design (custom) |
| Handling member | Chris Graham |
| Addon | core_themeing |
| Description | If the web browser supports apng then a .gif should be substituted with a .gif.png by the theme image system if that file exists.
We need to create apng's of all our animated emoticons. Include a LEGACY comment in our code as eventually we want to remove the need for progressive enhancement and just serve to all browsers. We have to wait for that. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
Added this to .htaccess...
# Rewrite .gif emoticons for browsers that support APNG (LEGACY; when possible we want to get rid of the gifs, but Edge does not yet support)
RewriteCond %{HTTP_USER_AGENT} (Chrom|Firefox|Safari)
RewriteRule ^(themes/default/images/cns_emoticons/.*\.gif)$ $1.png [L,QSA]
Now just awaiting Manoj's images.