Skip to content

Commit

Permalink
Rename and edit "4. Uninstall Sharp"
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah11918 committed Aug 29, 2023
1 parent 5ea73c6 commit a0bc8c5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/content/docs/en/guides/images.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -679,12 +679,9 @@ If you were using the image integration in Astro v2.x, complete the following st

Instead, you can use the HTML image attributes `srcset` and `sizes` or the `<picture>` tag [for art direction or to create responsive images](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images#art_direction).

4. Uninstall Sharp.

[Sharp](https://github.com/lovell/sharp) is now the default image service used for `astro:assets`. You no longer need to install the dependency locally in your project.

Uninstall Sharp using your package manager, or by removing manually from your `package.json`.
4. Choose a default image service.

[Sharp](https://github.com/lovell/sharp) is now the default image service used for `astro:assets`. If you would like to use Sharp, no configuration is required.

If you would prefer to use [Squoosh](https://github.com/GoogleChromeLabs/squoosh) to transform your images, update your config with the following `image.service` option:

Expand Down

0 comments on commit a0bc8c5

Please sign in to comment.