next-image-export-optimizer icon indicating copy to clipboard operation
next-image-export-optimizer copied to clipboard

Optimize SVG images

Open Niels-IO opened this issue 1 year ago • 0 comments

This would be a breaking change, as the Image component just passed SVG through.

This PR would optimize SVGs into images (webp or png) which could be smaller sometimes.

The unoptimized prop would yield the original SVG.

What is missing currently, is for remote images to create a src with a downloaded (and unoptimized) version of the svg and fall back to the remote source if the local image is not available.

Niels-IO avatar Dec 01 '23 20:12 Niels-IO