svgo icon indicating copy to clipboard operation
svgo copied to clipboard

Feature Request: Optimize embedded raster images

Open guiconti opened this issue 5 years ago • 1 comments

Hi! First I want to thank everyone involved in this project, it helped me a lot in the past few years.

In some of the projects that I am currently working on, we are receiving a lot of SVGs with embedded raster images. Some of these embedded images are making the SVGs bigger than what they should be. I was thinking if it makes sense to implement a plugin in SVGO that tries to improve the embedded images. Also, I would be more than happy to start working in a PR for it with some guidance.

Thanks!

guiconti avatar Apr 21 '20 21:04 guiconti

Same: my SVG sizes are bloated by raster images at a resolution that is needlessly high for their size in the image.

It would be great if svgo reduced the resolution of raster images to match their display size in the SVG image.

(I suppose this would have to guess at a sensible DPI.)

jameshfisher avatar Jul 01 '22 10:07 jameshfisher

This duplicates #971?

TPS avatar May 30 '23 11:05 TPS

Closing as a duplicate of https://github.com/svg/svgo/issues/971.

It's a nice idea, so we'll hopefully look at it soon, but I'm giving the bug reports and improvements to existing plugins priority atm.

SethFalco avatar Sep 26 '23 23:09 SethFalco