You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
SVGs are often used as the highest-fidelity exports from things like Figma - even a lossless image export doesn't really match the quality of an SVG because it can be forever-scaled up while being the same fidelity. For that reason, we try to use SVGs as the source image in source-code too.
However, next-export-optimize-images doesn't currently support optimizing svgs to other file formats like avif/webp (seems like due to #658)
Describe alternatives you've considered
Pre-processing the SVGs to an intermediate format - but this kind of defeats the whole purpose of the automatic optimization in the first place :)
Additional context
N/A
The text was updated successfully, but these errors were encountered:
johnpyp
changed the title
Support optimizing SVGs
Support converting + optimizing SVGs to other image formats
Apr 29, 2024
Is your feature request related to a problem? Please describe.
SVGs are often used as the highest-fidelity exports from things like Figma - even a lossless image export doesn't really match the quality of an SVG because it can be forever-scaled up while being the same fidelity. For that reason, we try to use SVGs as the source image in source-code too.
However,
next-export-optimize-images
doesn't currently support optimizing svgs to other file formats like avif/webp (seems like due to #658)Describe the solution you'd like
A clear and concise description of what you want to happen.
It would be great if the library supported optimizing SVGs, actually the opposite of #658. NextJS now supports this with a flag https://nextjs.org/docs/app/api-reference/components/image#dangerouslyallowsvg
Describe alternatives you've considered
Pre-processing the SVGs to an intermediate format - but this kind of defeats the whole purpose of the automatic optimization in the first place :)
Additional context
N/A
The text was updated successfully, but these errors were encountered: