-
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-transformer-sharp: Added the option to use the original image #1556
gatsby-transformer-sharp: Added the option to use the original image #1556
Conversation
Deploy preview ready! Built with commit cf64ff5 |
Deploy preview ready! Built with commit cf64ff5 |
Deploy preview ready! Built with commit cf64ff5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
@@ -16,6 +16,11 @@ const { | |||
} = require(`gatsby-plugin-sharp`) | |||
|
|||
const sharp = require(`sharp`) | |||
const {promisify} = require('util'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a Node 8 only function. You can use https://www.npmjs.com/package/util.promisify
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just added!
Deploy preview failed. Built with commit 188426f https://app.netlify.com/sites/image-processing/deploys/596fd4bd8ebdd96cb87ffd70 |
Done with my changes. Passing again in my local tests :) |
Deploy preview failed. Built with commit 188426f https://app.netlify.com/sites/using-remark/deploys/596fd4be8ebdd96cb87ffd7c |
Thanks! |
Users who don't want Sharp to process anything now have that option.