SVG vs XBM
Um comparativo detalhado de SVG Vector Image e X BitMap — tamanho de arquivo, qualidade, compatibilidade e qual escolher de acordo com seu fluxo de trabalho.
SVG Vector Image
Raster & Vector ImagesSVG is an XML-based vector image format that scales to any resolution without quality loss. It is the standard for web icons, logos, and illustrations that need to look sharp on all screen sizes.
Sobre os arquivos SVGX BitMap
Raster & Vector ImagesXBM (X BitMap) is a monochrome image format used in the X Window System for cursor and icon bitmaps. The format stores pixel data as C source code arrays, making it directly includable in X11 programs.
Sobre os arquivos XBMComparativo de vantagens
SVG Vantagens
- Resolution-independent — crisp at any size, from 16px icon to 4K billboard.
- Tiny file sizes for flat graphics, logos, and UI illustrations.
- Editable with any text editor; programmatically manipulable via DOM.
- Supports interactivity, CSS styling, and JavaScript inside the image.
- Accessible — text inside SVG is readable by screen readers.
XBM Vantagens
- Valid C source — embeddable.
- Text-editable.
- Tiny files.
- X11-native since 1989.
Limitações
SVG Limitações
- Not suitable for photographs or complex raster imagery.
- Uploading user-provided SVG is risky — embedded scripts are an XSS vector.
- Complex SVGs with thousands of paths render more slowly than a PNG equivalent.
- Inconsistent rendering across browsers for edge-case features (filters, gradients).
- No native concept of layers or groups for design-tool round-tripping.
XBM Limitações
- 1-bit monochrome only.
- Legacy — modern UIs use PNG/SVG.
- No compression.
Especificações técnicas
| Especificação | SVG | XBM |
|---|---|---|
| MIME type | image/svg+xml | image/x-xbitmap |
| Format | XML (text-based) | C source code |
| Current version | SVG 2 (W3C Recommendation, 2018) | — |
| Compression | Gzipped variant is .svgz | — |
| Resolution | Unlimited (vector) | — |
| Animation | SMIL, CSS, JavaScript | — |
| Extension | — | .xbm |
| Bit depth | — | 1-bit |
Tamanhos típicos de arquivo
SVG
- Simple icon 200 B – 2 KB
- Company logo 2–10 KB
- Complex illustration 20–100 KB
- Data-visualization chart 50–500 KB
XBM
- Mouse cursor (16×16) < 1 KB
Pronto para converter?
Converta entre SVG e XBM online, grátis e sem instalar nada. Upload criptografado, exclusão automática em 60 minutos.
Perguntas frequentes
SVG (Scalable Vector Graphics) is an XML-based vector image format maintained by the W3C since 1999. Unlike raster formats, SVG images scale to any size without quality loss, making them perfect for responsive web design.
SVG (Scalable Vector Graphics) is an XML-based vector image formato maintained pelo W3C since 1999. Unlike raster formatoos, SVG images scale to any size sem quality loss, making them perfect para responsive web design.
SVG files open in all web browsers, Adobe Illustrator, Inkscape (free), Figma, and most modern design tools. You can also open SVGs with any text editor since they are XML-based.
SVG arquivos abrir in all web browsers, Adobe Illustrator, Inkscape (free), Figma, e most moderno design ferramentas. You can also abrir SVGs com any text editor since they are XML-based.
Use SVG for logos, icons, and illustrations that need to scale across different screen sizes. Use PNG for complex images like photographs where vector representation is impractical. SVG files are typically much smaller for simple graphics.
Use SVG para logos, icons, e illustrations that precisar scale across different screen sizes. usar PNG para complexo images like photographs where vector representation is impractical. SVG arquivos são tipicamente much smaller para simples graphics.