Skip to content

Commit

Permalink
Clarify SVG image gotcha info (#6254)
Browse files Browse the repository at this point in the history
* Clarify SVG image gotcha info

* More wording improvements!

Co-authored-by: Sarah Rainsberger <[email protected]>

---------

Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
yanthomasdev and sarah11918 authored Feb 16, 2023
1 parent 0fe74b6 commit 802ae45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/integrations/image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 802ae45

Please sign in to comment.