You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(gatsby-plugin-sharp): reduce encoding time and install size (#32851)
* feat(gatsby-plugin-sharp): reduce encoding time and install size
- Upgrade sharp to v0.29.0
- Replace use of imagemin with sharp equivalents
- Reduces JPEG, PNG and AVIF encoding time by up to 50%
- Reduces install size/time by ~10% (~19MB smaller)
* sync sharp version in all packages (#1)
Co-authored-by: Michal Piechowiak <[email protected]>
Copy file name to clipboardExpand all lines: docs/docs/conceptual/image-plugin-architecture.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ The plugin exports a number of other helper functions designed to help end-users
30
30
31
31
### `gatsby-plugin-sharp`
32
32
33
-
This includes the actual image processing functions from both sharp but also imagemin and potrace. It includes the functions that generate the image data object, including calculating which srcset sizes to generate. It exports `generateImageData`, which is used by `gatsby-transformer-sharp` and `gatsby-plugin-image`. It takes a `File` node and the image processing arguments, calculates which images to generate, processes these images and returns an image data object suitable for passing to `GatsbyImage`. It also exports helper functions for third party plugins to use, such as `traceSVG`.
33
+
This includes the actual image processing functions from sharp and potrace. It includes the functions that generate the image data object, including calculating which srcset sizes to generate. It exports `generateImageData`, which is used by `gatsby-transformer-sharp` and `gatsby-plugin-image`. It takes a `File` node and the image processing arguments, calculates which images to generate, processes these images and returns an image data object suitable for passing to `GatsbyImage`. It also exports helper functions for third party plugins to use, such as `traceSVG`.
0 commit comments