{"_id":"@dylanvann/gatsby-image","_rev":"4-70942c6a565c43de4123352d00bc8cea","name":"@dylanvann/gatsby-image","dist-tags":{"latest":"2.0.0-beta.7"},"versions":{"2.0.0-beta.4":{"name":"@dylanvann/gatsby-image","description":"Lazy-loading React image component with optional support for the blur-up effect.","version":"2.0.0-beta.4","author":{"name":"Kyle Mathews","email":"mathews.kyle@gmail.com"},"bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"dependencies":{"@babel/runtime":"7.0.0-beta.51","prop-types":"^15.6.1"},"devDependencies":{"@babel/cli":"7.0.0-beta.51","@babel/core":"7.0.0-beta.51","cross-env":"^5.1.4"},"homepage":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-image#readme","keywords":["gatsby","gatsby-component","react-component"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-image"},"scripts":{"build":"babel src --out-dir . --ignore **/__tests__","prepare":"cross-env NODE_ENV=production npm run build","watch":"babel -w src --out-dir . --ignore **/__tests__"},"_id":"@dylanvann/gatsby-image@2.0.0-beta.4","_npmVersion":"6.1.0","_nodeVersion":"10.4.1","_npmUser":{"name":"dylanvann","email":"dylan@dylanvann.com"},"dist":{"integrity":"sha512-z5Cavda+pbbiwceUuouqgO6QvBaxFYV/Tdb1TlJG0LuTh8mt3GW+MDUjz8pR4/1OyozaNfl6RFFbDyGJUfdKFg==","shasum":"eb9c60aa2154d8642e77de7c36212e05e92da559","tarball":"https://registry.npmjs.org/@dylanvann/gatsby-image/-/gatsby-image-2.0.0-beta.4.tgz","fileCount":7,"unpackedSize":29261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbQ4NjCRA9TVsSAnZWagAAbh0P+QBOzwN3OxngEnOl5xGi\njSvteakVpacv1t1Wm0IiGghwjTI7AnQ8+8Xb6vQso8RZarfmGs0SqrgQx6TI\nlEBUt1FzEjnaKrAim3nfzaVc4DDRn2GkEUzNz7Jgg05KO2OKVmbvjUynb7/6\nSWoYtiMZphT2PSlXilVEzwTkbN3th0B78lOkRSEQAhuPgLZGXNP2eiRoJMD0\nN1wcBQo7k5Rw78EhC2EeVDCu+K13JZjO7xKMw+YrI6HezaiR4c6yJnVbZFZb\nYbtdXyx1ql/IqlFnEv6qvrHgozXKTBkUCARz+Y+nfLDfTGAhi2ZZdIAWHfMA\n6kEseUZAvCEqQSonr/2ujIzsVVpLOFKWeS9hYNpbF4Etd20UaQ7meWIZiVmf\n6k8YqHrHOEIaVMEJ9pLcCti1Hvn2NUUipc4KDhZuuOqHVuO13JeYO+9DCgYZ\nbSZt9N7sRm7ZUumGFL/HWjWg2UzFnDjfsayUX/GtjYGvQXCVNcj9P+SRppkt\nKG1m6DnuD7cJSOCk+aYKaxgj/hXMqpQ0RnRu3LHpTBZsZAuRFx9yKd2xVM33\nNnz/wMNICKaaK0iDLiUvbMwQWGfQ1KP0+TZ7O/aI02Kl8J+vtDX7J3OcWcuq\nRsrUKSuEHrRy5tF3tx+Tbhp7KoGyB1GWzqscb30BDhvrrpub4ezXNU81Otsc\nvdFo\r\n=+8Tt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfI8JnUNJ7AWlB2JPB5LDJOHCXVRYdyDdGfBnz1KmL9wIgX6QBZlAtDQoXzw6w3SSclYngqUInprE+OpPiGE6Rh9g="}]},"maintainers":[{"name":"dylanvann","email":"dylan@dylanvann.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-image_2.0.0-beta.4_1531151203845_0.9490097094247638"},"_hasShrinkwrap":false},"2.0.0-beta.5":{"name":"@dylanvann/gatsby-image","description":"Lazy-loading React image component with optional support for the blur-up effect.","version":"2.0.0-beta.5","author":{"name":"Kyle Mathews","email":"mathews.kyle@gmail.com"},"bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"dependencies":{"@babel/runtime":"7.0.0-beta.51","prop-types":"^15.6.1"},"devDependencies":{"@babel/cli":"7.0.0-beta.51","@babel/core":"7.0.0-beta.51","cross-env":"^5.1.4"},"homepage":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-image#readme","keywords":["gatsby","gatsby-component","react-component"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-image"},"scripts":{"build":"babel src --out-dir . --ignore **/__tests__","prepare":"cross-env NODE_ENV=production npm run build","watch":"babel -w src --out-dir . --ignore **/__tests__"},"_id":"@dylanvann/gatsby-image@2.0.0-beta.5","_npmVersion":"6.1.0","_nodeVersion":"10.4.1","_npmUser":{"name":"dylanvann","email":"dylan@dylanvann.com"},"dist":{"integrity":"sha512-2g07eips0Tt1iBtqQFcjaJRd0xKh/BGuEYjcdLjv05ZBl0latEC4u8rr0C1N7DHgWVYkhcDUjZaar7TOCA1Cvw==","shasum":"21f5e1288c5395f181e24fb5b1b2aa9e4840770f","tarball":"https://registry.npmjs.org/@dylanvann/gatsby-image/-/gatsby-image-2.0.0-beta.5.tgz","fileCount":7,"unpackedSize":29308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbQ4dECRA9TVsSAnZWagAA8R8P/3UyB+jaiZHhfbccRACm\nwHY7TP/aeqHCugImukvGL4v5zRUyZcbwQrOESx47WT7DfZcGtTIwJT0oIDSN\ne1eSow/pbquh8tEHXoBDy1btvwXRBgNbAEQGs/ba/OsGbzuUfVAyzDtiv7D9\nrCwYLxkFi0LQRlKKjEDWJTv25ttle1L7KPwx1uZS97YwO1wO/2/ueZL8QKKo\nrXK02iulUGT/Ja8DqpTt+dMJzXh1YVi8jaCvsRbWxmtZkvoc8cISmCsyyRv8\nO96AADCQQNKW29GccFKfeXsGtpihQ2Uq2Jpwo+xbJarzP99fLDF914IGyn8L\nLV0tDWaa52giNniz2fsCitdetA3XZfIK/rOwGDmtTCdg04SdieXrYdstPsux\ncm7vkc5uKU2hFgc3RfC3EzMLBlejFVwN3JlfijZd5xtlNW+0qgA+fhMXa+Du\n0C6//3h0S1ACo0Bd19KP1H25ZlERTA4pb6Gh3OZCLMk3p/+K6weXV75rKC2y\n7jdXzTGNrr1rHJmOLm0NG/gpH1W/l5oidLZfBntZS125Qul8zwE5s31zPSYZ\nVzKc9BRhSPlPeFFMcR2f5HZA9u+jPfkqA6LCzntvWHUxxEJC7rcF4tahpT4E\nSvyINDiYTdXaYRhrT9jL5ZY7S797eogAFxdWRa1aWo1kK3jShxeqBDfLK66z\nkrLy\r\n=J1YD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC18v1cOEOvm8+M0MC9fzOrWDZTC3YFk+FJuZpaXmKnkAIhAI7sBNmgmtWDi3Cq55IwVQcgkqC/234DzpkPpYegXmeA"}]},"maintainers":[{"name":"dylanvann","email":"dylan@dylanvann.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-image_2.0.0-beta.5_1531152195962_0.7857233605010117"},"_hasShrinkwrap":false},"2.0.0-beta.6":{"name":"@dylanvann/gatsby-image","description":"Lazy-loading React image component with optional support for the blur-up effect.","version":"2.0.0-beta.6","author":{"name":"Kyle Mathews","email":"mathews.kyle@gmail.com"},"bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"dependencies":{"@babel/runtime":"7.0.0-beta.51","prop-types":"^15.6.1"},"devDependencies":{"@babel/cli":"7.0.0-beta.51","@babel/core":"7.0.0-beta.51","cross-env":"^5.1.4"},"homepage":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-image#readme","keywords":["gatsby","gatsby-component","react-component"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-image"},"scripts":{"build":"babel src --out-dir . --ignore **/__tests__","prepare":"cross-env NODE_ENV=production npm run build","watch":"babel -w src --out-dir . --ignore **/__tests__"},"_id":"@dylanvann/gatsby-image@2.0.0-beta.6","_npmVersion":"6.1.0","_nodeVersion":"10.4.1","_npmUser":{"name":"dylanvann","email":"dylan@dylanvann.com"},"dist":{"integrity":"sha512-XDICMCBCgdrZcTMgD9YDYhSBazSPfGjVBEvdJPvGXJ+O92fCNJXOyc6LDf5ZAKAXP95uwvxb+iJ3/dPjp4XOsg==","shasum":"41a9d14522e2f0c193088b8e74c3b4940c687e73","tarball":"https://registry.npmjs.org/@dylanvann/gatsby-image/-/gatsby-image-2.0.0-beta.6.tgz","fileCount":7,"unpackedSize":29345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbQ6pSCRA9TVsSAnZWagAAg60P/05dqpbB4lj9PxNb80+m\nq6XyLLSh0Hnd9FE11RzLlUL2IWAYoi3/vIvSFl1g0B2Zhgff9FY/ZGF47zUr\nNGaim6hcfv/2aqz+tauG7yP6JVUPSCB2b2Twg80+0S6OXu3NgOtYWwjVGv9z\nk5rANneacHKQQCmNnkc6//7AfPthH7xQB9IBonzwJTiYrUszqAYOfA6fXP6I\ndJLOuLEHJIbWptsRoxmQ4+hQz2rZ1Ki/YNmIEPUg4JXRWjEtVb4/suUUs9Ru\n8dlFXLMngSt8o3AJjqDQvBCs2Mx2jvXDA7DXWkQA3b17QRH0PMOHHMO4Ij3k\nCnVOHaDxRiA9ZmOoG7S91SoJBp4EEz4L8/7T2MA4hyov+42ERBrzr9lTqIqb\nUN34QDLsCrMkLh9GQ5lJ14aO5PTrY4O41dxWiDYhjnaHHMAecc69vH7NN1fs\n9DNBCsUqSNWntEozUwkom7rB4CyO9f2Wd8xkbxXeqceeNOO2BFy/hBClgp9v\nG7XBTLlOyirjvqMRaY3P6W8PE6oca0ufT1rUQthHmiCH1rxuIpdHzH7AFjou\noT2lhxw7wGOV7ENu3aetx3IZB5DhYrZw6Lqsra9RaVDlbzLNBVOh29gzdSg9\nmrRV59M4j6JrIUT2nNnWX1fHRoeUvlsyv1I4iaYRQVgM5lTaHYObvip9z76N\neEfz\r\n=y4Io\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICKdQWsFqAzMTg1EnofI5eoMNp61RPwYsDXdJr19+SAxAiBwkBILxkjJlOsCg8M4IkSoHAOoB6QGYJrfcx+Z0wt7Ew=="}]},"maintainers":[{"name":"dylanvann","email":"dylan@dylanvann.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-image_2.0.0-beta.6_1531161170430_0.21282933047731656"},"_hasShrinkwrap":false},"2.0.0-beta.7":{"name":"@dylanvann/gatsby-image","description":"Lazy-loading React image component with optional support for the blur-up effect.","version":"2.0.0-beta.7","author":{"name":"Kyle Mathews","email":"mathews.kyle@gmail.com"},"bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"dependencies":{"@babel/runtime":"7.0.0-beta.51","prop-types":"^15.6.1"},"devDependencies":{"@babel/cli":"7.0.0-beta.51","@babel/core":"7.0.0-beta.51","cross-env":"^5.1.4"},"homepage":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-image#readme","keywords":["gatsby","gatsby-component","react-component"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-image"},"scripts":{"build":"babel src --out-dir . --ignore **/__tests__","prepare":"cross-env NODE_ENV=production npm run build","watch":"babel -w src --out-dir . --ignore **/__tests__"},"_id":"@dylanvann/gatsby-image@2.0.0-beta.7","_npmVersion":"6.1.0","_nodeVersion":"10.4.1","_npmUser":{"name":"dylanvann","email":"dylan@dylanvann.com"},"dist":{"integrity":"sha512-8D5P2e3O3uMU5uvUoWjU502zTWMckpkJPvcT3ZSlpGSNxKu2JIyEHtlAR6qy7V82KyXqcDVydjrFtxHvbJaoHQ==","shasum":"2e20d409c921525d3e5f61cd82141476b6101a84","tarball":"https://registry.npmjs.org/@dylanvann/gatsby-image/-/gatsby-image-2.0.0-beta.7.tgz","fileCount":7,"unpackedSize":29308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbQ8iOCRA9TVsSAnZWagAA6LoP/RIXNtvZJ2oQR74y3uda\n1lP/gO31e0q7xZqSGPoCZQlrVBfsjGXcrwiH7XfdhngNOWQbfpy/XbRt1dFh\nRd4mCO/KItDku76xIWvCyAoVUXcNEItHGwp7hY1TnL1zKwGxRNjewEldixTs\n2Hi1udj3hqDEuMKLFZpwUSWjCSe/rHHZuHAO6nF7PXM+IZzPYkYxE/YvkXh1\n0d1SDt3dZAvQLqlCw/ukrvN8z1Ncu9BLy1H0pX0netoasOZxtP12daUiR0sS\npX+oe9UR9INUNoiD+ZIuye4/loDskF3s2RyS299GUBGZXvZ0NsRecEMICJI6\nDjRPP7++c2SjjDWf7lRvLrh5E0cHhC0HS1TNJflBtXQ9P01KLELXjqfXg8eG\n8RpdmeLWpa8YnpioIloNeDpQ/3uz5MV/C7sG26fFCSjIQEKpmOgqM1XQmfs1\nuTKDvXrzc++2TvLxSu3shBtg2pc3/SLowi8N071ggFOY9NFsmTxVzYybftrB\nPgYiF43REskboqTMJELf6lP0JSvREusgFAyqkhU6LBPjwHx49jJO7xw/HE5/\n1WxvPRA4/V3eXfvgsDwKWdLzhz9OGizT3jsF9YzZyTdBXj/5jwoyoN5cTPcW\n4hxWD+VDATEAQhZF1Clp0I3Lh+7WBcGnhXHBRXrltRZEhSkk4Bt9VNk0Btls\n8ADa\r\n=8pEm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhGgG3zacpwzsThcp2F2aP9Q0ielnEgYGxFVBwW6p+fAiEAhlhKoNoODBorifu2iV/MoW2pqvEQIMfXQkBeGh85X3M="}]},"maintainers":[{"name":"dylanvann","email":"dylan@dylanvann.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-image_2.0.0-beta.7_1531168910399_0.3813252122185946"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-09T15:46:43.603Z","2.0.0-beta.4":"2018-07-09T15:46:43.918Z","modified":"2022-04-05T06:17:27.047Z","2.0.0-beta.5":"2018-07-09T16:03:16.009Z","2.0.0-beta.6":"2018-07-09T18:32:50.511Z","2.0.0-beta.7":"2018-07-09T20:41:50.492Z"},"maintainers":[{"name":"dylanvann","email":"dylan@dylanvann.com"}],"description":"Lazy-loading React image component with optional support for the blur-up effect.","homepage":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-image#readme","keywords":["gatsby","gatsby-component","react-component"],"repository":{"type":"git","url":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-image"},"author":{"name":"Kyle Mathews","email":"mathews.kyle@gmail.com"},"bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"license":"MIT","readme":"# gatsby-image\n\nSpeedy, optimized images without the work.\n\n`gatsby-image` is a React component specially designed to work seamlessly with\nGatsby's GraphQL queries. It combines\n[Gatsby's native image processing](https://image-processing.gatsbyjs.org/)\ncapabilities with advanced image loading techniques to easily and completely\noptimize image loading for your sites. `gatsby-image` uses\n[gatsby-plugin-sharp](/packages/gatsby-plugin-sharp/)\nto power its image transformations.\n\n_Warning: gatsby-image is **not** a drop-in replacement for `<img/>`. It's\noptimized for fixed width/height images and images that stretch the full-width\nof a container. Some ways you can use `<img/>` won't work with gatsby-image._\n\n**[Demo](https://using-gatsby-image.gatsbyjs.org)**\n\n## Problem\n\nLarge, unoptimized images dramatically slow down your site.\n\nBut creating optimized images for websites has long been a thorny problem.\nIdeally you would:\n\n- Resize large images to the size needed by your design\n- Generate multiple smaller images so smartphones and tablets don't download\n  desktop-sized images\n- Strip all unnecessary metadata and optimize JPEG and PNG compression\n- Efficiently lazy load images to speed initial page load and save bandwidth\n- Use the \"blur-up\" technique or a\n  \"[traced placeholder](https://github.com/gatsbyjs/gatsby/issues/2435)\" SVG to\n  show a preview of the image while it loads\n- Hold the image position so your page doesn't jump while images load\n\nDoing this consistently across a site feels like sisyphean labor. You manually\noptimize your images and then… several images are swapped in at the last minute\nor a design-tweak shaves 100px of width off your images.\n\nMost solutions involve a lot of manual labor and bookkeeping to ensure every\nimage is optimized.\n\nThis isn't ideal. Optimized images should be easy and the default.\n\n## Solution\n\nWith Gatsby, we can make images way _way_ better.\n\n`gatsby-image` is designed to work seamlessly with Gatsby's native image\nprocessing capabilities powered by GraphQL and Sharp. To produce perfect images,\nyou need only:\n\n1.  Import `gatsby-image` and use it in place of the built-in `img`\n2.  Write a GraphQL query using one of the included GraphQL \"fragments\"\n    which specify the fields needed by `gatsby-image`.\n\nThe GraphQL query creates multiple thumbnails with optimized JPEG and PNG\ncompression. The `gatsby-image` component automatically sets up the \"blur-up\"\neffect as well as lazy loading of images further down the screen.\n\n## Install\n\n`npm install --save gatsby-image`\n\nDepending on the gatsby starter you used, you may need to include [gatsby-transformer-sharp](/packages/gatsby-transformer-sharp/) and [gatsby-plugin-sharp](/packages/gatsby-plugin-sharp/) as well, and make sure they are installed and included in your gatsby-config.\n\n```\nnpm install --save gatsby-transformer-sharp\nnpm install --save gatsby-plugin-sharp\n```\n\nThen in your `gatsby-config.js`:\n\n```\nplugins: [\n  `gatsby-transformer-sharp`,\n  `gatsby-plugin-sharp`\n];\n```\n\n## How to use\n\nThis is what a component using `gatsby-image` looks like:\n\n```jsx\nimport React from \"react\"\nimport Img from \"gatsby-image\"\n\nexport default ({ data }) => (\n  <div>\n    <h1>Hello gatsby-image</h1>\n    <Img fixed={data.file.childImageSharp.fixed} />\n  </div>\n)\n\nexport const query = graphql`\n  query GatsbyImageSampleQuery {\n    file(relativePath: { eq: \"blog/avatars/kyle-mathews.jpeg\" }) {\n      childImageSharp {\n        # Specify the image processing specifications right in the query.\n        # Makes it trivial to update as your page's design changes.\n        fixed(width: 125, height: 125) {\n          ...GatsbyImageSharpFixed\n        }\n      }\n    }\n  }\n`\n```\n\nFor another explanation of how to get started with gatsby-image, see this blog post by community member Kyle Gill [Image Optimization Made Easy with Gatsby.js](https://medium.com/@kyle.robert.gill/ridiculously-easy-image-optimization-with-gatsby-js-59d48e15db6e)\n\n## Two types of responsive images\n\nThere are two types of responsive images supported by gatsby-image.\n\n1.  Images that have a _fixed_ width and height\n2.  Images that stretch across a _fluid_ container\n\nIn the first scenario, you want to vary the image's size for different screen\nresolutions -- in other words, create retina images.\n\nFor the second scenario, you want to create multiple sizes of thumbnails for\ndevices with widths stretching from smartphone to wide desktop monitors.\n\nTo decide between the two, ask yourself: \"do I know the exact size this image\nwill be?\" If yes, it's the first type. If no and its width and/or height need to\nvary depending on the size of the screen, then it's the second type.\n\nIn Gatsby's GraphQL implementation, you query for the first type by querying a\nchild object of an image called `fixed` — which you can see in the sample\ncomponent above. For the second type, you do a similar query but for a child\nobject called `fluid`.\n\n## Fragments\n\nGraphQL includes a concept called \"query fragments\". Which, as the name\nsuggests, are a part of a query that can be used in multiple queries. To ease\nbuilding with `gatsby-image`, Gatsby image processing plugins which support\n`gatsby-image` ship with fragments which you can easily include in your queries.\n\nNote,\n[due to a limitation of GraphiQL](https://github.com/graphql/graphiql/issues/612),\nyou can not currently use these fragments in the GraphiQL IDE.\n\nPlugins supporting `gatsby-image` currently include\n[gatsby-transformer-sharp](/packages/gatsby-transformer-sharp/),\n[gatsby-source-contentful](/packages/gatsby-source-contentful/) and [gatsby-source-datocms](https://github.com/datocms/gatsby-source-datocms).\n\nTheir fragments are:\n\n### gatsby-transformer-sharp\n\n- `GatsbyImageSharpFixed`\n- `GatsbyImageSharpFixed_noBase64`\n- `GatsbyImageSharpFixed_tracedSVG`\n- `GatsbyImageSharpFixed_withWebp`\n- `GatsbyImageSharpFixed_withWebp_noBase64`\n- `GatsbyImageSharpFixed_withWebp_tracedSVG`\n- `GatsbyImageSharpFluid`\n- `GatsbyImageSharpFluid_noBase64`\n- `GatsbyImageSharpFluid_tracedSVG`\n- `GatsbyImageSharpFluid_withWebp`\n- `GatsbyImageSharpFluid_withWebp_noBase64`\n- `GatsbyImageSharpFluid_withWebp_tracedSVG`\n\n### gatsby-source-contentful\n\n- `GatsbyContentfulFixed`\n- `GatsbyContentfulFixed_noBase64`\n- `GatsbyContentfulFixed_tracedSVG`\n- `GatsbyContentfulFixed_withWebp`\n- `GatsbyContentfulFixed_withWebp_noBase64`\n- `GatsbyContentfulFluid`\n- `GatsbyContentfulFluid_noBase64`\n- `GatsbyContentfulFluid_tracedSVG`\n- `GatsbyContentfulFluid_withWebp`\n- `GatsbyContentfulFluid_withWebp_noBase64`\n\n### gatsby-source-datocms\n\n- `GatsbyDatoCmsFixed`\n- `GatsbyDatoCmsFixed_noBase64`\n- `GatsbyDatoCmsFluid`\n- `GatsbyDatoCmsFluid_noBase64`\n\nIf you don't want to use the blur-up effect, choose the fragment with `noBase64`\nat the end. If you want to use the traced placeholder SVGs, choose the fragment\nwith `tracedSVG` at the end.\n\nIf you want to automatically use WebP images when the browser supports the file\nformat, use the `withWebp` fragments. If the browser doesn't support WebP,\n`gatsby-image` will fall back to the default image format.\n\n_Please see the\n[gatsby-plugin-sharp](/packages/gatsby-plugin-sharp/#tracedsvg)\ndocumentation for more information on `tracedSVG` and its configuration\noptions._\n\n## \"Fixed\" queries\n\n### Component\n\nPass in the data returned from the `fixed` object in your query via the\n`fixed` prop. e.g. `<Img fixed={fixed} />`\n\n### Query\n\n```graphql\n{\n  imageSharp {\n    # Other options include height (set both width and height to crop),\n    # grayscale, duotone, rotate, etc.\n    fixed(width: 400) {\n      # Choose either the fragment including a small base64ed image, a traced placeholder SVG, or one without.\n      ...GatsbyImageSharpFixed\n    }\n  }\n}\n```\n\n## \"Fluid\" queries\n\n### Component\n\nPass in the data returned from the `fluid` object in your query via the `fluid`\nprop. e.g. `<Img fluid={fluid} />`\n\n### Query\n\n```graphql\n{\n  imageSharp {\n    # i.e. the max width of your container is 700 pixels.\n    #\n    # Other options include maxHeight (set both maxWidth and maxHeight to crop),\n    # grayscale, duotone, rotate, etc.\n    fluid(maxWidth: 700) {\n      # Choose either the fragment including a small base64ed image, a traced placeholder SVG, or one without.\n      ...GatsbyImageSharpFluid_noBase64\n    }\n  }\n}\n```\n\n## `gatsby-image` props\n\n| Name                    | Type                | Description                                                                                                                 |\n| ----------------------- | ------------------- | --------------------------------------------------------------------------------------------------------------------------- |\n| `fixed`                 | `object`            | Data returned from the `fixed` query                                                                                        |\n| `fluid`                 | `object`            | Data returned from the `fluid` query                                                                                        |\n| `fadeIn`                | `bool`              | Defaults to fading in the image on load                                                                                     |\n| `title`                 | `string`            | Passed to the `img` element                                                                                                 |\n| `alt`                   | `string`            | Passed to the `img` element                                                                                                 |\n| `className`             | `string` / `object` | Passed to the wrapper element. Object is needed to support Glamor's css prop                                                |\n| `outerWrapperClassName` | `string` / `object` | Passed to the outer wrapper element. Object is needed to support Glamor's css prop                                          |\n| `style`                 | `object`            | Spread into the default styles in the wrapper element                                                                       |\n| `imgStyle`              | `object`            | Spread into the default styles for the actual `img` element                                                                 |\n| `position`              | `string`            | Defaults to `relative`. Pass in `absolute` to make the component `absolute` positioned                                      |\n| `backgroundColor`       | `string` / `bool`   | Set a colored background placeholder. If true, uses \"lightgray\" for the color. You can also pass in any valid color string. |\n| `onLoad`                | `func`              | A callback that is called when the full-size image has loaded.                                                              |\n| `Tag`                   | `string`            | Which HTML tag to use for wrapping elements. Defaults to `div`.                                                             |\n\n## Image processing arguments\n\n[gatsby-plugin-sharp](/packages/gatsby-plugin-sharp) supports many additional arguments for transforming your images like\n`quality`, `sizeByPixelDensity`, `pngCompressionLevel`, `cropFocus`, `greyscale` and many more. See its documentation for more.\n\n## Some other stuff to be aware of\n\n- If you want to set `display: none;` on a component using a `fixed` prop,\n  you need to also pass in to the style prop `{ display: 'inherit' }`.\n- Images don't load until JavaScript is loaded. Gatsby's automatic code\n  splitting generally makes this fine but if images seem slow coming in on a\n  page, check how much JavaScript is being loaded there.\n","readmeFilename":"README.md"}