diff options
author | 2023-02-16 14:30:27 -0300 | |
---|---|---|
committer | 2023-02-16 11:30:27 -0600 | |
commit | 802ae458fede1c2bd6f21be48585914879366e1f (patch) | |
tree | 1e69dc7724a5d369629cbde9cae3b168337770a4 | |
parent | 0fe74b6648fe79951da5443b73208cdc6742442e (diff) | |
download | astro-802ae458fede1c2bd6f21be48585914879366e1f.tar.gz astro-802ae458fede1c2bd6f21be48585914879366e1f.tar.zst astro-802ae458fede1c2bd6f21be48585914879366e1f.zip |
Clarify SVG image gotcha info (#6254)
* Clarify SVG image gotcha info
* More wording improvements!
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
-rw-r--r-- | packages/integrations/image/README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/integrations/image/README.md b/packages/integrations/image/README.md index d1cc22f2c..0c04cb541 100644 --- a/packages/integrations/image/README.md +++ b/packages/integrations/image/README.md @@ -177,7 +177,7 @@ The output format to be used in the optimized image. The original image format w This property is required for remote images when using the default image transformer Squoosh, this is because the original format cannot be inferred. -> When using the `svg` format, the original image must be in SVG format already (raster images cannot be converted to vector images). The SVG image itself won't be transformed but the final `<img />` element will get the optimization attributes. +Added in v0.15.0: You can use the `<Image />` component when working with SVG images, but the `svg` option can only be used when the original image is a `.svg` file. Other image formats (like `.png` or `.jpg`) cannot be converted into vector images. The `.svg` image itself will not be transformed, but the final `<img />` will be properly optimized by the integration. #### quality |