mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
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>
This commit is contained in:
parent
0fe74b6648
commit
802ae458fe
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue