Comments (6)
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.
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.
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.
Just in case it's useful...
https://www.gatsbyjs.com/plugins/gatsby-plugin-image
from kodi-tv.
Even if we get that working, it doesn't help with aspect ratios of images? At least I would be surprised.
from kodi-tv.
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)
- Include more recent Devcon pictures HOT 2
- Donor wall is broken HOT 7
- Fix typing errors on the home page
- Set a minimum donation amount HOT 6
- Eslint Errors HOT 4
- Where is the full JSONRPC spec or ServiceDescription.json? HOT 2
- Endaoment donation HOT 4
- Limit recent donations HOT 1
- Netlify CMS Limitations/Options HOT 4
- Jiotv not working with new version HOT 1
- "Essay writing" spam on Kodi blog HOT 10
- Enable Netlify CMS "Open Authoring" feature HOT 7
- Add sentry to sponsors HOT 1
- Forum count shows a zero HOT 2
- Provide download button for Apple Silicon (arm64) HOT 7
- "[CR]" showing in addon descriptions
- Add OSUOSL to sponsors HOT 5
- Admin login sometimes doesn't connect with github HOT 4
- CRT shader 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 kodi-tv.