Need a pixel-perfect scalable image, but all you have is a low-res GIF? You could use image-rendering: pixelated
and hope the browser will scale it
right, or you could use this tool to convert a raster image to SVG.
Each color is merged into one path
, optimized for combining horizontal runs where possible to keep file size down. Works best with 8-bit images, or graphics where colors are limited and the dimensions are relatively small. Large or complex
images may lock the browser.