GithubHelp home page GithubHelp logo

Website on Safari about iiifc-theme HOT 6 CLOSED

glenrobson avatar glenrobson commented on September 4, 2024
Website on Safari

from iiifc-theme.

Comments (6)

hadro avatar hadro commented on September 4, 2024

from iiifc-theme.

hadro avatar hadro commented on September 4, 2024

@glenrobson is the webserver configuration option here an option for us?
https://github.com/sverrirs/jekyll-webp#advanced-use-webserver-configuration

from iiifc-theme.

glenrobson avatar glenrobson commented on September 4, 2024

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.

glenrobson avatar glenrobson commented on September 4, 2024

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.

glenrobson avatar glenrobson commented on September 4, 2024

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.

glenrobson avatar glenrobson commented on September 4, 2024

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.

Screenshot 2021-10-20 at 03 32 22

from iiifc-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.