Open blmarket opened 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
FWIW: My workaround currently is to not process SVG files because in most cases they are smaller in file size than pixel-based image files. But having an option to optimize them using SVGO would be rad.
Nice contribution @blmarket, definitely a great addition ! But I agree with @stephanbogner. @blmarket what do you think? Could you please update the PR? I'll be glad to work on this together.
This change allows SVG images can be processed by astro-imagetools. (e.g. converting svg into webp etc)
As the
file-type
library parse the SVG image as 'xml' extension, we should addxml
to supportedImageTypes.