Giter Site home page Giter Site logo

gatsby-transformer-kontent-image's People

Contributors

renovate-bot avatar

Watchers

 avatar  avatar

gatsby-transformer-kontent-image's Issues

Add support for base64 encoded data URIs

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

Getting null values for height and width

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 srcSets 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?

Document the common use-cases

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

Add tests!

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.

https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-transformer-yaml/src/__tests__/gatsby-node.js

Add other fragments for common requirements

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

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.