rshackleton / gatsby-transformer-kontent-image Goto Github PK
View Code? Open in Web Editor NEWTransforms assets from Kontent.ai into nodes usable by Gatsby Image
Transforms assets from Kontent.ai into nodes usable by Gatsby Image
Describe the solution you'd like
Add support for the base64 field on fixed
, fluid
and resize
resolvers to enable the "blur up" effect in Gatsby Image.
Describe alternatives you've considered
N/A
Additional context
N/A
Love the idea here, just running into a problem. When I try to use local images, I end up with null values for height and width of images.
I have the proper values under contract
, but they don't appear in fixed
, fluid
, or resized
. This means the srcSet
s also have a lot of NaN
for the values.
I'd like to be able to use the srcSet functionality if possible. Any hints what I could change to get there?
Is your feature request related to a problem? Please describe.
Using the plugin is not currently clear.
Describe the solution you'd like
Describe how the plugin should be used in a project and how the fragments can be used to populate the Gatsby Image component.
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
Proper test coverage is necessary in order to have confidence in release new versions with CI/CD.
Describe the solution you'd like
Add test coverage for custom transformation logic when implemented. Investigate whether it is feasible for the local option; however this is a thin wrapper on gatsby-source-filesystem
so should be fairly stable.
Describe alternatives you've considered
N/A
Additional context
Example test scenarios for an existing transformer plugin.
Is your feature request related to a problem? Please describe.
When using other Gatsby Image compatible plugins there are typically fragments that explicitly include base64 data URIs and/or WebP support.
Describe the solution you'd like
Add more fragments to the existing fragments.js
file.
Describe alternatives you've considered
N/A
Additional context
N/A
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.