{"_id":"@builder.io/gatsby-transform-images","_rev":"45-db46c7b9730cc91216cfa15df6d6bc80","name":"@builder.io/gatsby-transform-images","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@builder.io/gatsby-transform-images","version":"0.0.1","keywords":["gatsby","gatsby-plugin","gatsby-transformer-plugin","builder.io","@builder.io/gatsby","images"],"license":"MIT","_id":"@builder.io/gatsby-transform-images@0.0.1","maintainers":[{"name":"mrkoreye","email":"korey@builder.io"},{"name":"teleaziz123","email":"aziz@builder.io"},{"name":"caleb.amsden","email":"caleb@builder.io"},{"name":"steve8708","email":"sewell.steve@gmail.com"}],"homepage":"https://github.com/BuilderIO/gatsby-builder-transform-images#readme","bugs":{"url":"https://github.com/BuilderIO/gatsby-builder-transform-images/issues"},"dist":{"shasum":"b7bb4d4e8a6dcb2cff7a9e3c04ccd8d714461250","tarball":"https://registry.npmjs.org/@builder.io/gatsby-transform-images/-/gatsby-transform-images-0.0.1.tgz","fileCount":6,"integrity":"sha512-ImdSu7XxDBtKthi4CJtYjkgYVT8H8JMc6N02D0DPQ4x/IkD3IxORug4h8hfTIZRBiULkNvUG5/6CZ4qTS9dQOA==","signatures":[{"sig":"MEUCIQDFRi7C4IAwNJCpaBzDKIa+LIL+ASKM00HiWVvMoHhJmAIgIKtNbl92XretR2rEoZIinreb73DVWATq+SjUXpbfz+M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6322,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPVskCRA9TVsSAnZWagAAdWUQAJOpEEhGmYqP57335TsS\nfiamYGDzWCEuWBYQOERvuACGY6Ar8HtNhcj/vAUSHR9w2gPW9OjnMpSTZiyz\n/SLzqsOd8TR86jqF0sNjhKPHUMQsm6BMO6BLWVeacTgkFY3CWsGDLGFIQSeQ\nky067uN+mdcNnhrglDtrmb9UcYT6zONdhAEvvw1xZMisNOQgwi+toRqNEeqK\nf+thOLWmOFLXa3rdik13FisPRelC/FQ2Mwb08DrFwJS6dNFdmpLRtZsNaQyq\nq49wsjVMQZXbKFpsAc4eFWnc/hQTnTB3c9YYwL7GEPrLw2OivgO5KeKrWDb2\nPzrnGMw25+dhx+vmzNyngeVoDv+HQFMgEWYO3sCYHIfJgAMKHpA0Z6q8eXf8\ntodsyWWmQFUmAyAiQI2OO6dvJrmhDrorVjCRHYf9PH8rEo5+fWcpH1pEy0kC\nhPh0csy8hVcHafJc0hDkxZu/jnDMspWx9JRg8YcFvi5Okp8N9APbxmV48hlw\nGv3uYSTZGOkR0jZYx1yav9q/EvUsleANGzdmuLRLHidkiW1+be+U0YXG17X9\nAg+OeRF6vMzv96BIQx2P8sdxCx+qwzI5J4LXUIxVOuxmeiaKuHvG5etcHVLS\nQ+ivB9Gro0mWG4KigkemMwSVBE4xBsN8sFdYTAw76UoDNF7+1IZQyaVddOkL\njsKO\r\n=90IM\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}"],"transform":{"^.+\\.[t|j]sx?$":"babel-jest"},"testEnvironment":"node"},"main":"index.js","gitHead":"b482f5de21b9c050b1c25c05325f22eacf438a7a","scripts":{"test":"jest","build":"babel src --out-dir . --ignore **/__tests__","prepare":"cross-env NODE_ENV=production npm run build"},"_npmUser":{"name":"teleaziz123","email":"aziz@builder.io"},"repository":{"url":"git+https://github.com/BuilderIO/gatsby-builder-transform-images.git","type":"git"},"_npmVersion":"6.13.6","description":"A transformer plugin to download all images from builder content to the local filesystem for further processing if they want, it optionally also flip all image cdn links to the new local assets","directories":{},"_nodeVersion":"13.7.0","dependencies":{"traverse":"^0.6.6"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.9.0","cross-env":"^5.2.1","@babel/cli":"^7.6.0","babel-jest":"^24.9.0","@babel/core":"^7.6.0","@babel/runtime":"^7.6.0","babel-preset-gatsby-package":"^0.2.4"},"peerDependencies":{"gatsby":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/gatsby-transform-images_0.0.1_1597856547740_0.70640375682398","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@builder.io/gatsby-transform-images","version":"0.0.2","keywords":["gatsby","gatsby-plugin","gatsby-transformer-plugin","builder.io","@builder.io/gatsby","images"],"license":"MIT","_id":"@builder.io/gatsby-transform-images@0.0.2","maintainers":[{"name":"caleb.amsden","email":"caleb@builder.io"},{"name":"mrkoreye","email":"korey@builder.io"},{"name":"steve8708","email":"sewell.steve@gmail.com"},{"name":"teleaziz123","email":"aziz@builder.io"}],"homepage":"https://github.com/BuilderIO/gatsby-builder-transform-images#readme","bugs":{"url":"https://github.com/BuilderIO/gatsby-builder-transform-images/issues"},"dist":{"shasum":"04b2c662ac29df578e22f444c1e6a2a6944a7361","tarball":"https://registry.npmjs.org/@builder.io/gatsby-transform-images/-/gatsby-transform-images-0.0.2.tgz","fileCount":6,"integrity":"sha512-l1ZC3ux4+FFY/r2nD8WoW5RGAWKcVAeTF5rP/+XfR9XT4ngMcYkX7HjIDO/cJWt+WyzwtbiIDBB9Go9gZLi9gQ==","signatures":[{"sig":"MEQCIAfAajmkl/mfsvov6ven+1nGFqGp2CznBxW3qS3rsPVqAiBLY5zS2mgs9vmI6MN0Y1VWWo1f+x/6DWOigELe1D3bpg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPWFYCRA9TVsSAnZWagAAX2EQAJuJgK/htARsU2KRaPJF\nJEpb54P3AePkxarmOmTelB2KYU3kBbORhyflmHhTtykch8KnTgzdt/aYfC6x\nIflBoMrznncBxyKyghN8WqwVw7fwHpEV0Wv5kz/pZTjHiANf3cESXpJkoDQT\nUMUlm1T5P6P06kUpSNSmWlo2s7MC/BTf+ss+Al5MbDp4c/KpHNOB4jW21jwx\n8WUJTlGOfU86eSQe2ZiQ41m50ZRufMl2Wt+tSJt4EqN9ZVgIINuqCULYpXOT\n+oTvAl9Lp9/F/ozcefozaGU1OT69elEOuaqaZ1WiRqnpUXVzoG6Gp6loOmsE\nibF8MvxyWwF3g5jY2I/CLq2E6dNZj4QQ+l1yEeaLfEffBCUMHhMpGVz3xwaC\nJZdZ/hSssRiqWLHBaBCfU6mhR+B0mAvLjP53DqnI+seK8IXeS5Ge3gFxxtZI\n5Hb5MHncYVsuapsDy7YVLQtbegYWjhsf8PxCQ6yCBHCesOsmbYHhkBnfCIW4\nwQHNbB47qHpjFqmk6u5v0dKrqKBXo7ZSiKRDHZomgik4Xniib62L/rCl7fXq\nrIAjGsMYvAk4+hhZMHRTg/8zZuSUcHY5rNEyxQjgrhJN1M0hWpDZnUh6JxC7\noXyL5UagHc5vAn1HweAS3ep4mK7bZl/pwe+HIB1BhR6fuQdEW2Ir2zVNnOho\nVSOb\r\n=4gzz\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}"],"transform":{"^.+\\.[t|j]sx?$":"babel-jest"},"testEnvironment":"node"},"main":"index.js","gitHead":"f8701e99542a2d2b4ffef6d42744f4b1bc35117a","scripts":{"test":"jest","build":"babel src --out-dir . --ignore **/__tests__","prepare":"cross-env NODE_ENV=production npm run build"},"_npmUser":{"name":"teleaziz123","email":"aziz@builder.io"},"repository":{"url":"git+https://github.com/BuilderIO/gatsby-builder-transform-images.git","type":"git"},"_npmVersion":"6.13.6","description":"A transformer plugin to download all images from builder content to the local filesystem for further processing if they want, it optionally also flip all image cdn links to the new local assets","directories":{},"_nodeVersion":"13.7.0","dependencies":{"traverse":"^0.6.6"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.9.0","cross-env":"^5.2.1","@babel/cli":"^7.6.0","babel-jest":"^24.9.0","@babel/core":"^7.6.0","@babel/runtime":"^7.6.0","babel-preset-gatsby-package":"^0.2.4"},"peerDependencies":{"gatsby":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/gatsby-transform-images_0.0.2_1597858135977_0.053868662452102756","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@builder.io/gatsby-transform-images","version":"0.0.3","keywords":["gatsby","gatsby-plugin","gatsby-transformer-plugin","builder.io","@builder.io/gatsby","images"],"license":"MIT","_id":"@builder.io/gatsby-transform-images@0.0.3","maintainers":[{"name":"mrkoreye","email":"korey@builder.io"},{"name":"teleaziz123","email":"aziz@builder.io"},{"name":"caleb.amsden","email":"caleb@builder.io"},{"name":"steve8708","email":"sewell.steve@gmail.com"}],"homepage":"https://github.com/BuilderIO/gatsby-builder-transform-images#readme","bugs":{"url":"https://github.com/BuilderIO/gatsby-builder-transform-images/issues"},"dist":{"shasum":"230d3c9db5a1e0a5b21033eabcf8ca4385bbeb85","tarball":"https://registry.npmjs.org/@builder.io/gatsby-transform-images/-/gatsby-transform-images-0.0.3.tgz","fileCount":6,"integrity":"sha512-NwKXyGwap5Yb2mMXQWKx1FisVZyx7LJfhP26BUEfKAdEOf22AmWnnpUhFwk7zrzWRQ/34QDqzHBERQDZJgiqoQ==","signatures":[{"sig":"MEUCIBzmOrQW0NKXq6368CyPc5wK+wMJLUKAAgCyQRyzbqJRAiEAk8x4R6VPS7O09pRfYf2JbhWlCEsdhjMgfFmHS0vMF4A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6353,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2B49CRA9TVsSAnZWagAAJmcP/3dqrn4ilN0pAf6vMjrW\ndwyQ30jyPBDdQu4pc1AUvYdH7Ly6v058JaJvHMtuLI2Ux6m6Txzdrpctfl3T\nIF59Vex1YjAZmD411/rz6ltNgJus56gdHB845G/ilK5Jimvd1r7mRHzNIfiP\nvnE4jyvVswe2cp1svVdMkpHakNAqea34bDrLTtZlxyLXQIudke3m4bNeENIa\ncf3hrsgZZx4n+T0haQsqzzBVwYzIHyOAa3auHIFX0CrputcDa88X/BeF2TfQ\nRppR8pL0gncTlOCPyNaZln55x+XFkKpJdOrm7gBuIoYS1TFTuIlWXb5DNBTt\nMSUDPky6yNPDu0UXP5gGCNkCpZpZCxvpCOAxeS8dOP730GCuV0wMiFcz5wUo\nRoSqnhwe9Q91A2y4+sKRMhfvzvZkZPbKq2iDf9rlFhJPca29IqsEgQn+jqdF\nA1QFLLFsbdMmAh+rcZUwxyQ9fF0+69EhrGSU7maIBENk0ju6VAh4qK4HmnJQ\n7uaKdtv+Ed0jdBLKHBwSZLOF6elKOWjJTagYmXYs35nxxPqsshOM9Ce1p3gE\nhNAylugdOwvGqn+2Q9JRcL/X0yqvsNFCFxtCPM2iZ9yEACiJHc93YEDOXBeS\n9u8/7YEDYqFbmRHNZSx6D+myMqMn8ZK7qzUJhogxKOmx/yPLEV/TsfQ8wT1Z\nrBQp\r\n=BYcZ\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}"],"transform":{"^.+\\.[t|j]sx?$":"babel-jest"},"testEnvironment":"node"},"main":"index.js","gitHead":"dfd0e11337ac712ab02171b466e1aac2b998b8ab","scripts":{"test":"jest","build":"babel src --out-dir . --ignore **/__tests__","prepare":"cross-env NODE_ENV=production npm run build"},"_npmUser":{"name":"teleaziz123","email":"aziz@builder.io"},"repository":{"url":"git+https://github.com/BuilderIO/gatsby-builder-transform-images.git","type":"git"},"_npmVersion":"6.13.6","description":"A transformer plugin to download all images from builder content to the local filesystem for further processing if they want, it optionally also flip all image cdn links to the new local assets","directories":{},"_nodeVersion":"13.7.0","dependencies":{"traverse":"^0.6.6"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.9.0","cross-env":"^5.2.1","@babel/cli":"^7.6.0","babel-jest":"^24.9.0","@babel/core":"^7.6.0","@babel/runtime":"^7.6.0","babel-preset-gatsby-package":"^0.2.4"},"peerDependencies":{"gatsby":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/gatsby-transform-images_0.0.3_1600109930939_0.33414662432485587","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-08-19T17:02:27.740Z","modified":"2026-09-09T09:16:41.763Z","0.0.1":"2020-08-19T17:02:27.894Z","0.0.2":"2020-08-19T17:28:56.089Z","0.0.3":"2020-09-14T18:58:51.047Z"},"bugs":{"url":"https://github.com/BuilderIO/gatsby-builder-transform-images/issues"},"license":"MIT","homepage":"https://github.com/BuilderIO/gatsby-builder-transform-images#readme","keywords":["gatsby","gatsby-plugin","gatsby-transformer-plugin","builder.io","@builder.io/gatsby","images"],"repository":{"url":"git+https://github.com/BuilderIO/gatsby-builder-transform-images.git","type":"git"},"description":"A transformer plugin to download all images from builder content to the local filesystem for further processing if they want, it optionally also flip all image cdn links to the new local assets","maintainers":[{"email":"sewell.steve@gmail.com","name":"steve8708"},{"email":"jabersami@gmail.com","name":"samijaber"},{"email":"aziz@builder.io","name":"teleaziz123"},{"email":"korey@builder.io","name":"mrkoreye"},{"email":"misko@hevery.com","name":"mhevery"},{"email":"gustavo@builder.io","name":"gustavohgs"},{"email":"manu.mtza@gmail.com","name":"manucorporat"},{"email":"sanyamkamat@gmail.com","name":"sanyamkamat"},{"email":"benjamingirone@gmail.com","name":"bengirone"},{"email":"kyle.e.fowler@gmail.com","name":"kylefowler"},{"email":"builder-bot@builder.io","name":"builderio-bot"},{"email":"armela@builder.io","name":"armela"},{"email":"aishwaryaparab1@gmail.com","name":"aishwarya_parab"},{"email":"emma@builder.io","name":"emmaac"},{"email":"sidmohanty11@gmail.com","name":"sidmohanty11"},{"email":"jcortese@builder.io","name":"jcortesebuilder"},{"email":"vishwas@builder.io","name":"vishwasgopinath"},{"email":"nicholas@builder.io","name":"nicholaskipchumba"},{"email":"shridharmaskeri@gmail.com","name":"floating_dynamo"},{"email":"lautarogalarza@gmail.com","name":"lihuelg"},{"email":"felfelahmeed@gmail.com","name":"paprikaf"},{"email":"pabloelisseo@gmail.com","name":"pabloelisseo"},{"email":"ldebeasi@gmail.com","name":"liamdebeasi"}],"readme":"## Description\n\nThis plugin extends the Gatsby Builder.io GraphQL schema to add a `localFiles` field to any builder model types specified in options. The field `localFiles` returns a `File`  Array type. This enables downloading remote images to local so you have the flexibility to deploy them to a different CDN (or even process them with `gatsby-plugin-sharp` if you need to). This plugin is inspired by the [localFile field from Sanity](https://github.com/leanjs/gatsby-source-sanity-transform-images).\n\n\n### Dependencies\n\nThis plugin depends on [@builder.io/gatsby](https://github.com/BuilderIO/builder/tree/master/packages/gatsby)\n\n## How to install\n\n`npm i @builder.io/gatsby @builder.io/gatsby-transform-images --save`\n\n```js\n// in your gatsby-config.js\nmodule.exports = {\n  // ...\n  plugins: [\n    // ...\n    {\n      resolve: \"@builder.io/gatsby-transform-images\",\n      options: {\n        models: ['Page', 'LandingPage'] , // Class case\n        replaceLinksToStatic: true,\n      }\n    }\n  ]\n  // ...\n};\n```\n\n## When do I use this plugin?\n\nIf you want to download assets for static distribution instead of using Sanity's CDN. This plugin downloads the Sanity Assets to the local filesystem.\n\nUseful for reduced data usage in development or projects where you want the assets copied locally with builds for deploying without links to Sanity's CDN.\n\n## Examples of usage\n\n```GraphQL\n  query($path: String!) {\n    allBuilderModels {\n      page(\n        target: { urlPath: $path }\n        limit: 1\n        options: { cachebust: true }\n      ) {\n        content\n        # download all image assets from content and make them available on localFiles Array\n        localFiles {\n          publicURL # mandatory field if you pass replaceLinksToStatic: true\n          childImageSharp {\n            fluid(maxWidth: 910) {\n              ...GatsbyImageSharpFluid_withWebp_tracedSVG\n            }\n          }\n        }\n      }\n    }\n  }\n```\n\n## How to contribute\n\nThanks for your interest in contributing to this plugin! Pull Requests welcome for any level of improvement, from a small typo to a new section, help us make the project better.\n\n### How to run the tests\n\n`yarn test`\n\n### Pull Requests\n\nTo submit a pull request, follow these steps\n\n1. Fork and clone this repo\n2. Create a branch for your changes\n3. Install dependencies with `yarn`\n4. Make changes locally\n5. Make sure tests pass, otherwise update the tests\n6. Commit your changes\n7. Push your branch to origin\n8. Open a pull request in this repository with a clear title and description and link to any relevant issues\n9. Wait for a maintainer to review your PR\n","readmeFilename":"README.md"}