|
recaplica
Vector vs Raster Images: Formats and Compression | |||||||||||||||||||||||||||
| © 2026 Recaplica · recaplica.com — All rights reserved | |||||||||||||||||||||||||||
Vector vs Raster Images: Formats and CompressionWhat to print Page numbers appear when printing with default margins. SlidesChoose a cut Flash10 slidesThe essential thread, to present in classFull15 slidesEvery chapter and the deeper detailBoth come with speaker notes. In 30 seconds quick readA raster image is a grid of pixels, each one holding its own color, and stretching it past its original resolution leaves it blurry or jagged. A vector image stores no pixels at all: it stores mathematical instructions, points, lines, curves, that the computer redraws every time it's shown, which is why it stays sharp at any size. GIF, JPEG and PNG are raster formats, while SVG is the most common vector format on the web. Compression shrinks file size in two different ways: lossy compression throws away part of the data to make the file smaller, lossless compression rebuilds the file exactly as it was. Key Points
Key figures
Deep DiveEvery image on a screen is, underneath, a file, and image files get written in two profoundly different ways. The difference isn’t about how sharp they look, but about how they describe the image: as pixels, or as mathematical formulas. The grid of pixelsA raster image (also called bitmap) is a grid of individual dots, pixels, and each one holds its own color. Every pixel, underneath, is a number written in binary code: three values indicating how much red, green and blue that dot contains. When a raster image is enlarged past its original resolution, its edges turn jagged: the file has no extra information to add, so the existing pixels simply get stretched. Mathematical instructionsA vector image contains no pixels at all: it contains instructions. Points connected by lines and curves, called paths, that the computer interprets and redraws every time the image is displayed. Because those paths are numbers rather than fixed dots, a vector image stays sharp at any size, from a postage stamp to a billboard.
GIF, JPEG and PNG: three raster formatsAccording to MDN Web Docs, in 1987 CompuServe introduced the GIF format to give every member of its online service a compressed format they could all use: GIF compresses images without loss (lossless), using the LZW algorithm over a palette of 256 colors (8 bits). Those were also the years personal computers were showing up in homes and connecting to early online services: for that backdrop, see the history of the internet. The Joint Photographic Experts Group states it created the JPEG standard (ISO/IEC 10918) in 1992, with a revision in 1994. JPEG compresses with loss (lossy), relying on a technique called the discrete cosine transform, and remains the most widely used lossy format for photographs. PNG, according to MDN Web Docs, uses lossless compression and supports more colors than GIF, plus full transparency. The historic libpng project site explains that PNG was designed to replace the older GIF format and, to some extent, the more complex TIFF format: neither of the two sources consulted, however, states an exact birth year in a direct sentence, so it’s fair to say only that PNG showed up in the mid-1990s, without leaning on a date that no source states outright.
SVG, the vector format of the webSVG is an XML-based format that, according to MDN Web Docs, describes an image as a set of drawing commands: shapes, lines, colors, filters. The W3C published a first draft (Candidate Recommendation) in August 2000, then the official SVG 1.0 Recommendation in September 2001, followed by SVG 1.1 in January 2003. MDN Web Docs also flags the format’s limit: SVG is the ideal choice when an image can be represented as a series of drawing commands, especially when the final display size isn’t known ahead of time, but it isn’t built for strictly photographic images. Lossy and lossless: what happens when a file gets compressedCompression shrinks the weight of an image file, but it does so in two opposite ways. Lossy compression discards part of the image’s data to produce a much smaller file: that’s JPEG’s approach. Lossless compression, instead, reorganizes the data more efficiently but rebuilds it identically to the original once the file is reopened: that’s the approach behind GIF and PNG. The procedure that decides how to group or discard that data is an algorithm, applied systematically to every file. When to choose raster, when to choose vectorTeaching materials such as those from the City University of New York offer a practical rule: use the vector format for text, line art and illustrations, and reserve raster for photographs or images with complex, non-uniform shading.
Slide deckSlides ready to download and make your own in PowerPoint or Google Slides, with speaker notes. Pick the Flash cut or the Full one. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Common myths
Mind mapDrag the background to move around and the nodes to reposition them; use − and + to collapse and expand branches.
Quiz: test yourselfAnswer the questions to check what you have learned: you get instant feedback and a short explanation. Grade 0/10 0/5
FlashcardsTap the card to flip it and check whether you remember the answer, then move to the next one. 1 / 8 Explain it in your own wordsThe ultimate test: if you can explain it in simple words, you've truly understood it. Write your explanation, then compare it with the Recap. Your explanation is saved only on this device.
Frequently asked questionsWhat's the difference between a raster image and a vector image?Raster stores the color of every single pixel in a grid; vector stores mathematical instructions, points and curves, that the computer uses to redraw the shapes at any size. That's why vector images stay sharp when enlarged, while raster images lose definition. Why do photographs get saved as JPEG instead of SVG?A photograph has continuous, complex color shading that's hard to describe as a set of geometric shapes. SVG is built for lines, text and illustrations with clean outlines, while JPEG is the lossy standard made specifically for photographic images. What does it mean for compression to be lossless?It means the compressed file, once reopened, reproduces the original image identically, with no information discarded. PNG and GIF use lossless compression; JPEG, by contrast, uses lossy compression that discards part of the data. What year did the SVG format appear?SVG 1.0 became an official W3C Recommendation in 2001, after a draft (Candidate Recommendation) circulated in 2000; a later version, SVG 1.1, became a Recommendation in 2003. Every Recap goes through an independent review before publication. |












