For example, if you want images that are 200, 340, 520, and 890 wide youĬan add srcSetBreakpoints: as a parameter. If you want more control over which sizes are output you can use the srcSetBreakpoints Rendered markdown file is 800px, the sizes would then be: 200px, 400px, 800px, 1200px,ġ600px – enough to provide close to the optimal image size for every device If the max width of the container for the ParametersĬreate fluid sizes (in width) for the image. Methods resize ParametersĪutomatically create sizes for different resolutions - we do 1x, 1.5x, and 2x. Other options are deprecated, and should only be used for the legacy fixed and fluid functions. Set to false to continue the build on error. By default builds will fail if there is a corrupted image. defaults: default values used for gatsbyImageData and StaticImage from gatsby-plugin-image.Īvailable options are: formats, placeholder, quality, breakpoints, backgroundColor, tracedSVGOptions, blurredOptions, jpgOptions, pngOptions, webpOptions, avifOptions.įor details of these, see the reference guide. Options :, // Set to false to allow builds to continue on image errorsįailOnError : true, // deprecated options and their defaults:įorceBase64Format : ` `, // valid formats: png,jpg,webp
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |