-
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
feat(gatsby-image): Placeholder Improvements #10944
feat(gatsby-image): Placeholder Improvements #10944
Commits on Jan 16, 2019
-
feat(gatsby-plugin-sharp): Configurable base64 width
Allows for using larger(or smaller) than the default `20px` width, trading size for quality via more/less pixels. Adds the `base64Width` arg to the fixed & fluid nodes.
polarathene committedJan 16, 2019 Configuration menu - View commit details
-
Copy full SHA for 5865ef1 - Browse repository at this point
Copy the full SHA 5865ef1View commit details -
chore(gatsby-plugin-sharp): Remove magic numbers
Provides added clarity for where these numbers are used. Especially for the value of `72` where it's not clear if the value was for image or display density. `defaultBase64Width` improves clarity and keeps it DRY across both usages.
polarathene committedJan 16, 2019 Configuration menu - View commit details
-
Copy full SHA for 241c2f6 - Browse repository at this point
Copy the full SHA 241c2f6View commit details -
fix(gatsby-image): Support placeholder image with backgroundColor
Place the `backgroundColor` div before/behind the placeholder img.
polarathene committedJan 16, 2019 Configuration menu - View commit details
-
Copy full SHA for 34bc962 - Browse repository at this point
Copy the full SHA 34bc962View commit details -
chore(gatsby-image): Share common transitionDelay variable
They seem all intended to use the same duration of `0.25s`, `fluid` backgroundColor div actually used `0.35s` for some reason which seemed a possible typo, this corrects that and avoids it in future.
polarathene committedJan 16, 2019 Configuration menu - View commit details
-
Copy full SHA for 43c971f - Browse repository at this point
Copy the full SHA 43c971fView commit details -
feat(gatsby-plugin-sharp): Allow base64 format to differ, allow WEBP
For example, WEBP base64 placeholders with a `backgroundColor` as fallback while using JPG/PNG with WEBP for the `<picture>` element. Adds the `forceBase64Format` config option. Adds support for WEBP base64 images.
polarathene committedJan 16, 2019 Configuration menu - View commit details
-
Copy full SHA for b06b9e0 - Browse repository at this point
Copy the full SHA b06b9e0View commit details -
chore(gatsby-image): Update test snapshot
polarathene committedJan 16, 2019 Configuration menu - View commit details
-
Copy full SHA for c12ec40 - Browse repository at this point
Copy the full SHA c12ec40View commit details -
feat(gatsby-plugin-sharp): Support base64Width as a config option
Allows setting a project wide default, rather than having to request it per image. Updates `defaultBase64Width` to be a function as `pluginOptions` has not initialized when assigned.
Configuration menu - View commit details
-
Copy full SHA for 5a62ede - Browse repository at this point
Copy the full SHA 5a62edeView commit details -
feat(gatsby-plugin-sharp): Support forceBase64Format as query arg
polarathene committedJan 16, 2019 Configuration menu - View commit details
-
Copy full SHA for 142f484 - Browse repository at this point
Copy the full SHA 142f484View commit details
Commits on Mar 4, 2019
-
Change
density_72PPI
todefaultImagePPI
Co-Authored-By: polarathene <polarathene@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ec0071b - Browse repository at this point
Copy the full SHA ec0071bView commit details -
Change
density_72PPI
todefaultImagePPI
2Co-Authored-By: polarathene <polarathene@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 7d961da - Browse repository at this point
Copy the full SHA 7d961daView commit details
Commits on Mar 12, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 66d64d3 - Browse repository at this point
Copy the full SHA 66d64d3View commit details