A vector image stores shapes as math — points, lines, and curves with fill colors — so it can scale to a billboard without losing an edge. A raster image stores a grid of colored pixels at a fixed resolution, so it looks best at its native size and degrades when pushed beyond it. The practical split: vectors win for logos, type, icons, and anything that must resize; rasters win for photographs, texture, and continuous-tone imagery. Pick wrong and you'll either bloat a file with unnecessary detail or watch a logo turn soft on a business card.
The confusion is usually not conceptual — most people understand "pixels vs. shapes" in about ten seconds. The confusion is operational. Which file should I export from Illustrator? Why does my client's PNG pixelate when printed? Can I convert a JPG to SVG? Those are the questions that cost time, and they're the ones this article answers with specific formats, real failure cases, and the numbers behind resolution decisions.
How Vector and Raster Files Store an Image Differently
A raster file records color per pixel on a fixed grid. A 4,000 × 3,000-pixel image contains 12 million pixels, each carrying a color value in a defined color space (RGB, CMYK, or grayscale). Enlarge it 300% and the software has to invent 108 million pixels by interpolating between the originals — smoothing, blurring, or blocking them depending on the resampling algorithm.
A vector file records geometry instead: an anchor point at coordinate (124.5, 88.2), a Bézier control handle, a stroke weight of 2 points, a fill of #1A4D8F. The renderer recalculates that geometry at whatever size the output requires. A logo file that's 800 KB as an SVG can render perfectly on a 4-meter banner because the file never contained "pixels" — only instructions.
That distinction drives everything downstream. Raster files scale in one direction (down, gracefully). Vector files scale in both. Raster files compress well for photographic content because neighboring pixels resemble each other. Vector files stay small for flat shapes and blow up when they contain thousands of gradient meshes or embedded raster effects.
The edge cases live in the hybrids. A PDF can contain both vectors and rasters. An SVG can embed a JPEG. A Photoshop file can hold a smart object that's itself a vector. Those hybrids are where bad exports happen.
Raster Formats Ranked: When JPEG Costs You Quality and PNG Saves the Day
Four raster formats cover nearly every real-world need. The choice hinges on three factors: whether the image has continuous tone or flat color, whether transparency matters, and whether file size is constrained.
| Format | Compression | Transparency | Best for | Known failure |
|---|---|---|---|---|
| JPEG | Lossy (adjustable) | No | Photos, web hero images | Generational loss on re-save; flat graphics get edge artifacts |
| PNG | Lossless | Yes (alpha) | Screenshots, logos on web, UI assets | Large file size on photos — 5–10× JPEG at same dimensions |
| GIF | Lossless, 256 colors | Yes (1-bit) | Legacy animations | Banding on gradients; no partial transparency |
| TIFF | Lossless or LZW | Yes | Print production, archival | Huge files; browsers can't display it |
JPEG's failure mode deserves attention. Every save re-quantizes the image. Open a JPEG, edit a pixel, save at quality 80, repeat ten times, and you'll accumulate visible blocking along edges — the DCT compression artifacts compound. That's a real workflow hazard in multi-editor environments.
TIFF is the professional print default. A 300-DPI TIFF at 8 × 10 inches uncompressed runs roughly 24 MB (8 × 10 × 300² × 3 bytes ÷ 1,000,000 ≈ 21.6 MB), which is why print shops accept 50–100 MB submissions without blinking.
Vector Formats Ranked: SVG Wins the Web, AI and EPS Rule the Production Floor
Vector formats split by ecosystem. Web and UI work flows through SVG. Print and signage flows through AI, EPS, and PDF. A third tier — CDR, DWG, DXF — serves specific industries.
| Format | Native app | Web-displayable | Typical use | Limitation |
|---|---|---|---|---|
| SVG | Many (open standard) | Yes, in browsers | Icons, logos, charts | Fonts can fall back if not outlined or embedded |
| AI | Adobe Illustrator | No (export required) | Design source files | Proprietary; version compatibility issues |
| EPS | Many (PostScript) | No | Print, legacy exchange | Doesn't support transparency cleanly |
| Many | Yes (viewer) | Print-ready, documents | Can embed rasters — verify before assuming it's vector |
SVG's open standard status makes it the default for anything that needs to render in a browser at arbitrary size. But SVGs with live text depend on the viewer having the font. A logo SVG with "Acme" rendered as a text element will show as Helvetica, Times, or a system fallback on a machine missing that font — which is why production files get outlined. Outlining converts text to paths and freezes the appearance at the cost of editability.
AI files carry version baggage. A CS6 AI file opened in a much newer Illustrator may warn about unsupported features, and the reverse — a current AI file opened in older software — usually fails outright. EPS is the older cross-version bridge, but it predates transparency as a first-class feature, so drop shadows flatten unpredictably.
The Resolution Math: Why 72 DPI and 300 DPI Are Different Jobs
Printers want 300 pixels per inch (PPI — often called DPI loosely) at final print size. Screens are happy with 72–150 PPI. The gap between those numbers multiplies file size fast, and it's the most common source of "why does my print look soft?"
Run the arithmetic. A 4 × 6-inch print at 300 PPI needs 1,200 × 1,800 pixels — 2.16 megapixels. The same print at 72 PPI needs 288 × 432 pixels — about 124,000 pixels, or roughly 17 times fewer. A 16 × 20-inch poster at 300 PPI needs 4,800 × 6,000 pixels — 28.8 megapixels, beyond many phone cameras.
That last figure is the edge case people miss. A modern 12-megapixel phone camera produces roughly 4,000 × 3,000 pixels, which at 300 PPI prints at 13.3 × 10 inches. Stretch it to 16 × 20 and effective resolution drops to about 200 PPI — acceptable for wall art viewed at two feet, marginal for a magazine spread. Professional print standards trace to commercial prepress conventions, not a law of physics; larger prints viewed from farther away tolerate lower PPI.
Downsampling a vector to a raster is lossless in effect (it just bakes in the chosen resolution). Upsampling a raster to a larger raster is lossy — every added pixel is a guess.
How to Tell What You're Actually Holding Before You Export
The fastest identification is file extension, but extensions lie when someone renames a file. A five-step check resolves it.
1: Look at the extension first: .svg, .ai, .eps, .pdf suggest vector; .jpg, .png, .gif, .tif suggest raster. 2: Open the file and zoom to 500%. If edges stay crisp, it's vector. If they soften or show pixel blocks, it's raster. 3: In Illustrator, open the Layers panel — vector paths list as individual objects or groups. 4: Inspect file size against pixel dimensions: a 2,000 × 2,000-pixel JPEG typically runs 200 KB–2 MB; an SVG at the same visual footprint often runs 10–100 KB. 5: For PDFs, check Document Properties or open in Illustrator — if objects are selectable, the page is vector.
That zoom test catches the most common trap: a raster logo placed into an Illustrator file. The AI extension makes people assume it's vector. It isn't. Zoom reveals the box of pixels. When a client sends a "vector logo" that's actually a 400-pixel-wide PNG, the fix is not a format conversion — it's getting the original source file or redrawing. Automated "PNG to SVG" tools trace the image into shapes, and the result usually has wobbling edges, extra nodes, and a bloated node count.
The cost of that mistake is concrete. A designer who ships a pixelated logo to a trade-show printer discovers the problem after a reprint — and a 10 × 20-foot banner reprint easily runs into four figures. Checking the file before submission costs two minutes.
Failure Cases: When the Right Format Still Ships the Wrong Output
Three failure scenarios repeat across design and print work, and none of them is fixed by simply knowing the definitions.
The outlined-type problem. You send an SVG logo to a client, they edit it in Canva, the text becomes gibberish because it was outlined into paths and the client's tool treated the paths as shapes. The reverse happens when an unoutlined SVG renders in a fallback font on a third-party site. Neither error message says "font issue."
The gradient mesh ceiling. A vector illustration with heavy gradient meshes can hit 40+ MB and slow rendering in Illustrator to a crawl. At that point the file is vector in name only — the practical workflow is to rasterize the mesh at 300 PPI and treat it as a raster element inside a vector layout.
The embedded-raster PDF. A "vector PDF" sent to a printer turns out to contain a 72-PPI image because someone exported at screen resolution. Printers flag this on preflight, usually with a resolution warning, but only if the preflight check is run. Prepress departments at commercial printers routinely reject files under 200 PPI.
Vector vs Raster by Medium: Print, Web, UI, and Signage Decisions
The medium, not the content, often determines the format.
For print at final size, rasters at 300 PPI are standard; vectors stay vector until the RIP (raster image processor) handles the conversion internally. For web, rasters should ship at 1× and 2× (retina) sizes, and vectors as SVG where possible. For UI assets, SVG is the near-universal default because it survives theme changes, dark mode, and screen density shifts. For signage and large-format, vector is mandatory above roughly 3 feet of viewing width — the pixel math gets ugly fast.
Edge cases break the rules in useful ways. A photograph going to web can be a JPEG at 85% quality and look indistinguishable from the original at 2× display size. A photograph going to a billboard is still raster, but nobody inspects it from 18 inches away — a 30-PPI billboard image is normal. The viewing distance governs the required resolution, not the medium's label.
Five Conversion Traps That Cost Hours
Conversion is where the two worlds collide, and it's almost never clean. Rasters convert to vectors only by tracing (approximation). Vectors convert to rasters by rasterizing (baking at a chosen resolution — irreversible in practice).
Trap one: tracing a photo. Autotrace a photograph into a vector and the result is a mosaic of color patches, not a usable vector photo. It's a stylistic effect, not a format swap.
Trap two: assuming SVG is universally editable. Many vector tools can open SVG; relatively few handle complex SVG without dropping nodes, gradients, or clipping masks.
Trap three: converting text to paths for print. Outlining freezes appearance but also freezes typo corrections — a client's "final" file becomes uneditable the moment it's outlined, so keep an editable master.
Trap four: DPI tags on JPEGs. Setting an image to 300 DPI in Photoshop metadata doesn't add pixels — it relabels the number of pixels as belonging to a smaller physical size. If the pixel dimensions don't support 300 PPI at the intended print size, the tag lies.
Trap five: exporting PNG for print. PNG is a screen format. Some print shops accept it, but the color management and resolution handling are weaker than TIFF or PDF, and the encoder can't be trusted for CMYK output.
Picking the Right Format in 60 Seconds
Decision speed matters more than encyclopedic knowledge. Five questions shortlist the format.
Is the content a photograph or does it have continuous tone? → raster (JPEG for web, TIFF for print). Does it have flat colors, type, or simple shapes? → vector (SVG for web, AI or PDF for print). Does it need transparency? → PNG (raster) or SVG (vector) — JPEG and GIF are out. Will it be resized past 2× original size? → vector is required unless you have a larger raster source. Is it going to a commercial printer? → PDF with 300 PPI embedded images, or AI with linked files collected and fonts outlined.
The one honest limitation: the "vector for logos" rule assumes the logo is genuinely vector — not a raster placed in a vector container. Verify with the zoom test before shipping.
FAQ
Can you convert a JPEG to SVG?
Only through tracing, and tracing a photograph produces a mosaic of color patches, not a true vector. For flat-color logos, manual redrawing in Illustrator or Inkscape yields clean paths; automated trace tools leave wobbling edges and hundreds of surplus anchor points. If the source image is a photo, the honest answer is that there's no genuine conversion — only approximation.
Why does my logo look blurry when printed but fine on screen?
Print at 300 PPI requires far more pixels than a typical screen asset carries. A logo that's fine at 500 pixels wide looks sharp on a 2-inch screen and soft at 3 inches in print. The root cause is usually a raster logo (or a raster placed in a vector file) rather than a vector source. Zoom-test the file before sending it to a printer.
Do SVG files support gradients and transparency?
Yes on both, but support varies by renderer. SVG 1.1 supports linear and radial gradients natively, plus alpha transparency on fills and strokes. Gradient meshes (mesh gradients) are an SVG 2.0 feature with patchy browser support as of the reference date, so complex gradient work may not render identically across viewers. Test in the target renderer, not just the editing app.
Is PDF always vector?
No. PDF is a container format that can hold vectors, rasters, or a mix on different pages and within the same page. A PDF exported from a vector design can still contain a 72-PPI embedded image. Commercial printers run preflight checks to catch this, but designers should verify locally — opening the PDF in Illustrator reveals whether objects are selectable.
What's the practical difference between TIFF and PNG?
Both are lossless with transparency support. TIFF is the print-industry standard with broad CMYK and spot-color support, while PNG is browser-centric and doesn't handle CMYK reliably. A photographic image destined for a print shop should ship as TIFF (or a PDF with embedded 300-PPI images). A transparent web asset should ship as PNG.
How large can a vector file get before it's a problem?
Gradient-mesh-heavy illustrations and highly detailed traced maps regularly top 30–50 MB and slow editing. Once a vector file crosses roughly 20 MB for a single artboard, rendering lags and export times stretch — at that point, rasterizing specific elements or splitting into layers often restores workflow speed without losing the key scalability of the rest.
Can I use a vector file in Word or PowerPoint?
Modern Microsoft 365 apps support SVG insertion, but rendering fidelity varies and some gradients or effects may flatten. Legacy .eps insertion requires a converter or plugin and often produces poor results. For office documents, export a high-resolution PNG (300 PPI at final size) unless you need to resize inside the document, in which case SVG is the safer choice.