-
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
FEATURE: Add way to automatically resize/optimize photos #18
Comments
Perhaps use this https://github.com/tcoopman/image-webpack-loader |
I actually have this on my to-do list but after some consideration and poking around, I realized webpack configuration would be a round-about way to do it. Images aren't imported as modules when they're inlined in markdown so webpack doesn't really see them. I'm thinking a markdown-it plugin may be the easiest way. |
@pamo yeah the image optimization only happens if you require an image which is only a sub-set of the images you have on your site and wouldn't include images that are part of a blog like yours. I'd like something where I could drop and image in a folder and when copying it'd to I'll change the title to make more clear what this issue is about. |
That'd be the best solution. My google-fu was waning yesterday but I'm sure there's something that is capable of it. |
Probably this isn't something that should be built into gatsby but that
|
Shipped solution to this in 0.12 https://github.com/gatsbyjs/gatsby/releases/tag/v0.12.0 |
When copying assets to the public folder, optimize images.
The text was updated successfully, but these errors were encountered: