Hour 11. Images

As you've read, SVG efficiently handles vector artwork display and transmission. Luckily, many graphics you create can be displayed in a vector format. Any flat, graphic imagery, in fact, is best suited for SVG's vector format.

There will, however, be many situations wherein you will need to include photographic imagery within your artwork. Consider, for instance, a news network site, such as CNN.com. Although a large portion of their imagery is bold, colorful vector artwork, they also house several photographic images. Not being able to include photos on such a site would be somewhat preposterous.

Thankfully, SVG has a method of referencing and loading other image formats to accommodate designers' needs to include raster imagery. ...

Get Sams Teach Yourself SVG in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.