-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make Sharp the default image service (#7908)
* feat: make Sharp the default image service * chore: lockfile
- Loading branch information
1 parent
f01eb58
commit c0de7a7
Showing
4 changed files
with
22 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
'astro': major | ||
--- | ||
|
||
Sharp is now the default image service used for `astro:assets`. If you would prefer to still use Squoosh, you can update your config with the following: | ||
|
||
```ts | ||
import { defineConfig, squooshImageService } from "astro/config"; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
image: { | ||
service: squooshImageService(), | ||
} | ||
}) | ||
``` | ||
|
||
However, not only do we recommend using Sharp as it is faster and more reliable, it is also highly likely that the Squoosh service will be removed in a future release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters