Skip to content

Support static images #150

Open
Open
@petrgazarov

Description

@petrgazarov

Summary

gatsby-image has a handy component StaticImage which allows to use it with static images, rather than coming from GraphQL. It would be great if this package also supported it. I skimmed through docs and issues, but nowhere seems to be any information about it.

Basic example

import BackgroundImage from 'gatsby-background-image';

<BackgroundImage src='../images/main-hero.png' />

Motivation

Support for static images is useful when you have images that aren't served in your GraphQL queries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestnot staleThis issue has gone quiet but will be kept open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions