-
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
resize(rotate: xx) in gatsby-transformer-sharp is not work. #5086
Comments
Huh, that's odd. Would love if you have time to investigate what's causing this. |
So i've did some digging and it seems this was broken for quite some time. Here we do "empty" rotation to orient image using EXIF information - https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-sharp/src/index.js#L75 Later we do actual rotation if Problem is - when we do empty rotation So what we could do is don't start with empty rotation, check if user want to rotate and if not fallback to empty rotation or take this upstream ( |
Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help! |
This is still broken. I've created a PR following the suggestion from @pieh. |
Description
GraphQL function
resize(width: 125, height: 125, rotate: 180)
is not work.Steps to reproduce
Visit demo page https://image-processing.gatsbyjs.org/
Compare images in resize part with the original images
I also checked that problem on my local test code.
Expected result
In demo page, images in resize part should be rotated.
Actual result
In demo page, images in resize part is not rotated.
Environment
Please check here https://github.com/gatsbyjs/gatsby/blob/master/examples/image-processing/package.json
The text was updated successfully, but these errors were encountered: