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:
Yan Thomas 2023-02-16 14:30:27 -03:00 committed by GitHub
parent 0fe74b6648
commit 802ae458fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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. 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 #### quality