Use Sharp if available for Image Optimization (#27346)
* Use sharp for image transformations when available * Refactor resizeImage and add sharp warning * only show sharp warning once per instance * Modify sharp error message * Add documentation for optional sharp dependency * Update docs/basic-features/image-optimization.md Co-authored-by:Steven <steven@ceriously.com> * Import types for sharp * Update lockfile * Add testing against sharp * use fs-extra for node 12 * Rename test sharp path variable * Apply suggestions from code review Co-authored-by:
Steven <steven@ceriously.com> * update squoosh specific test * Apply suggestions from code review Co-authored-by:
Steven <steven@ceriously.com> * update tests * Apply suggestions from code review Co-authored-by:
Steven <steven@ceriously.com> Co-authored-by:
Steven <steven@ceriously.com> Co-authored-by:
JJ Kasper <jj@jjsweb.site>
Showing
| ... | @@ -53,6 +53,7 @@ | ... | @@ -53,6 +53,7 @@ |
| "@types/fs-extra": "8.1.0", | "@types/fs-extra": "8.1.0", | ||
| "@types/http-proxy": "1.17.3", | "@types/http-proxy": "1.17.3", | ||
| "@types/jest": "24.0.13", | "@types/jest": "24.0.13", | ||
| "@types/sharp": "0.28.4", | |||
| "@types/string-hash": "1.1.1", | "@types/string-hash": "1.1.1", | ||
| "@typescript-eslint/eslint-plugin": "4.22.0", | "@typescript-eslint/eslint-plugin": "4.22.0", | ||
| "@typescript-eslint/parser": "4.22.0", | "@typescript-eslint/parser": "4.22.0", | ||
| ... | ... |
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
This diff is collapsed.
Please
register
or
sign in
to comment