Comments (6)
from iiifc-theme.
@glenrobson is the webserver configuration option here an option for us?
https://github.com/sverrirs/jekyll-webp#advanced-use-webserver-configuration
from iiifc-theme.
Yes I think that would be possible although I was half hoping to get rid of the nginx proxy in front of the website to remove one layer and save some money. Once I've got the validators working Ill know if I can do with out the proxy.
I thought the 'automated-webp-production-in-jekyll' article looked promising. Did you give that a go?
from iiifc-theme.
Just documenting what we briefly discussed on the call. The two links above point to a plugin called jekyll-webp which looks good and maybe is something we should look at. It converts the jpg/pngs to webp when it builds the website so you only need to have the jpgs/pngs in the repo not the webp.
It provides two ways of showing these files but assumes both the jpg/png and webp are present in the generated website. I have the HTML picture / option method working and we could look at the server option in the second link which instead of having the two image links in the html re-writes the request so that if you request a jpg and you support webp it will forward you to the webp version.
The problem I've come across is we have some webp files with out a png/jpg source image. We will need to generate a jpg/png version of these files to do either the HTML method or the server redirects.
from iiifc-theme.
It looks like there isn't a good way to do webp/png switching with css so the hero images are an issue. The server option would fix this...
from iiifc-theme.
I think its all fixed. I've implemented the HTML method for most but for the hero images I've done it server side. It all looks good on safari.
from iiifc-theme.
Related Issues (20)
- yaml hash-driven editor listings
- Sanity check for later: find way to check internal links for correct API variables HOT 2
- a11ty audit
- scss pruning
- Print layout style sheet?
- Implement theme gem on Cookbook sites HOT 3
- Implement theme on Guides site HOT 3
- Add third iteration of include that has text side by side HOT 1
- Use 1/4 width sidebar on spec pages instead of 1/3
- Transfer `iiifc-theme` ownership over to IIIF org
- Line-height increased somehow? HOT 1
- Credit line for header image
- Spec layout and api-table css have changed? HOT 1
- Integration tests fail to pickup YAML error HOT 1
- Add ability to anchor link onto tabs (e.g. on News & events page)
- Fix janky styling on newsletter form HOT 1
- Event JSON HOT 10
- Non-gridded news item layout
- Golive changes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iiifc-theme.