Giter Site home page Giter Site logo

Comments (6)

pkscout avatar pkscout commented on July 18, 2024 1

I could never get gatsby-plugin-image to work. The documentation assumes you are already a GatsbyJS and GraphQL expert. From what I can tell you have to use some magic incantation get all your images into GraphQL, then with a separate animal sacrifice you query GraphQL with specific unknown parameters to get back what you want. Oh, and there is no information on how you use any of this with the YAML generated by the Netlify CMS.

If someone can figure that out, feel free to update the site code. After two weeks of pulling my hair out, I gave up.

from kodi-tv.

pkscout avatar pkscout commented on July 18, 2024

I'm hoping @razzeee can make some suggestions. I exhausted my CSS knowledge getting the image to look moderately crappy in every usage case and size on a variety of devices.

Inline images are easier because they only have to render in the page body. The header image is used as the header of the blog post as well as the top of the card on the index page. So the header images tend to get copped and stretched based on need. If you optimize the image for one of the two, the other one almost always looks like crap.

We could require two "header" images for every blog post (on for the ribbon header on the blog post and the other for the card) with specific dimensions, but that seems like a real hassle to manage. And will require a fair amount of code update on the site too.

from kodi-tv.

razzeee avatar razzeee commented on July 18, 2024

We should probably bite the bullet and maybe do two images in a backwards compatible mannor?

Right now loading https://kodi.tv/blog loads 6.81mb of images, that's not very good. As it's loading the full size images used for the headers.

So if we would separate those images, we could load a small one on the overviews and a different big one on the page itself (with the correct aspect)

Do we still remember what the old page did with these images?

from kodi-tv.

ProfYaffle avatar ProfYaffle commented on July 18, 2024

Just in case it's useful...

https://www.gatsbyjs.com/plugins/gatsby-plugin-image

from kodi-tv.

razzeee avatar razzeee commented on July 18, 2024

Even if we get that working, it doesn't help with aspect ratios of images? At least I would be surprised.

from kodi-tv.

JohnVeness avatar JohnVeness commented on July 18, 2024

I realise that no one asked for an example of this problem, but https://kodi.tv/article/kodi-community-may-2015/ is particularly bad!

from kodi-tv.

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.