Skip to content

Commit

Permalink
i18n(zh-cn): Update images.mdx (withastro#6131)
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
  • Loading branch information
liruifengv and sarah11918 authored Jan 5, 2024
1 parent d761f90 commit 25fe3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/zh-cn/guides/images.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ const optimizedBackground = await getImage({src: myBackground, format: 'webp'})

## 默认图像服务

[Sharp](https://github.com/lovell/sharp)`astro:assets` 使用的默认图像服务。
[Sharp](https://github.com/lovell/sharp)`astro:assets` 使用的默认图像服务。你可以使用 [`image.service`](/zh-cn/reference/configuration-reference/#imageservice) 选项进一步配置图像服务。

:::note
当使用像 `pnpm` 这样的[严格包管理器](https://pnpm.io/pnpm-vs-npm#npms-flat-tree)时,即使 Sharp 已经是 Astro 的依赖项,你也可能需要手动安装 Sharp 到你的项目中:
Expand Down

0 comments on commit 25fe3b7

Please sign in to comment.