-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gatsby-image-sharp missing 'resize' export #6394
Comments
You would use resize in the GraphQL query. Or what did you try to do? |
@cupojoe I'd be interested to hear what you're aiming to do! I just had a dig through the history of See the tests for example usages, or take a look at I'd love to see a PR updating the docs to remove Edit to add: @LekoArts is right, typically you wouldn't use these functions directly, but via a GraphQL query. Check out the image processing example (src) to see how that'd look. |
We could export a resize function that just calls queueImageResizing if someone wanted to PR that. |
I'm making a gatsby plugin to process |
Sounds like a sweet plugin! And yeah! Please PR the change! |
@KyleAMathews will do, also a PR to include the plugin in the plugins registry. Gotta checkout the plugin contribution guidelines first :) |
Sweet! Plugins btw are auto pulled in if you add "gatsby-plugin" as a keyword |
you mean if I add |
We're suggesting that most plugins should be maintained in your own repo. We like to maintain some really core plugins here that are widely used but we have limited bandwidth so most plugins we ask authors to keep in your own repo. But definitely want it in the plugin library so please add the keyword to your package.json so it shows up! |
sounds good 👍 |
Added the plugin: https://www.npmjs.com/package/gatsby-remark-video-poster |
@KyleAMathews I can see the new plugin in the list of plugins, but if you select it you get a 404. Did I miss something for it to populate correctly? |
Description
According to the documentation for gatsby-image-sharp v2 beta 3 there is a method called resize to just resize one image. Trying to import this method from the package fails and looking at the source the export is not there:
gatsby/packages/gatsby-plugin-sharp/src/index.js
Lines 740 to 747 in c4ee17a
Should it be added or the documentation updated?
The text was updated successfully, but these errors were encountered: