SVG For Web Designers & Developers

It’s time for designers and developers to adopt Scalable Vector Graphics (SVG) for websites and digital projects! Images have been part of the web from very early in it’s development. The inclusion of visuals helped fuel its growth and recently become a focal point for the most popular services on the web. Facebook, Google+, Instagram, Vine, Flickr, the list of website that focus on our visual lives continues to grow. That growth is accompanied be a need for faster computers, increased bandwidth, and larger displays to consume our digital lives. Even entry-level phones provide resolutions that rival those used when the internet’s popularity entered most people’s homes.

SVG for web designers and developers

What is SVG?

Scalable Vector Graphics or SVG is a format for digital graphics that allows images to be rendered using XML as opposed to bitmap data. This has several advantages over pixel data and formats like GIF, JPG, or PNG: lessened file weight, it’s parsable and searchable, and, most importantly, the files can be scaled without a loss in quality.

Many designers and developers are already using vector data on the web without hesitation as Adobe Acrobat (PDF) files. Although PDFs require a plug-in to work, there is increasing support built into browsers. Google’s Chrome and Mozilla’s Firefox both support PDFs natively in recent releases. The same advantage of highly detailed  and lightweight files are available even more widely in the form of SVG images and graphics.

Vector graphics are nothing new to visual artists. The format has been around for many years, originally supported by PostScript at the dawn of desktop publishing. Among it’s most notable advantages is its ability to scale without any degradation is quality. It does so by rendering points and lines from mathematical data. It’s lightweight and efficient. It lacks some of the subtle details to capture photography, but is ideal for many styles of graphics and illustrations.

A barrier to vector graphic’s adoption for viewing on the web was wide support from browser manufacturers. For many years, Adobe Flash Player provided ubiquitous support for vector art, but it was largely used for animation and as a video player. With the wide adoption of tablets and smartphones, Flash has lost some of it’s luster as a vehicle for vector graphics with designers and developers.

The Problem SVG Solves

What should drive designers and developers to SVG is the need for graphics that are scalable and responsive to support the vast variety of devices we consume the web from. Many designers have already taken to the trend of responsive web design to answer a growing mobile market and avoid creating multiple websites. Doing so requires creating multiple images for the variety of screens and resolutions. Even those designers who create dedicated mobile and desktop experiences still require a library of images in multiple resolutions for various clients. A single SVG can be used at multiple sizes from a single hosted file.

Those mobile users will also benefit from SVG’s compact size. Being able to deploy images that can be full-screen and larger over cellular networks mean not having to compromise on aesthetics when creating designs and interfaces.

SVG images are also an ideal response to new ultra high-resolution displays being sold with new tablets and laptops from Apple, Microsoft, Asus, and several other manufacturers. These displays simply scale images that are not large enough to populate the screens resulting in blurry or lackluster experiences. Vector images, being resolution agnostic, look perfect regardless of the display’s resolution or technology.

SVG Has Some Challenges

Although SVG has the genetics for an ideal image format, it does have several challenges that may impede wildfire-like adoption. The biggest barrier for SVG is legacy support. Although open source browsers like Firefox and Chrome and mobile browser for iOS and Android have supported SVG since their early builds, Microsoft has been slow to adopt the format. Internet Explorer 9, with wide support for HTML5, is the first IE release to provide rendering for SVG. There is a work around available that substitutes bitmap images for those older browsers-making it ideal for those who need to support older operating systems or minimum business requirements for client work.

For artists used to working with vector images, one of the side-effects from working outside of the constraints of bitmap art is the loss of pixel-perfect image management. Because vector art uses math to render art “at runtime” for each presentation, every computer renders the lines slightly different based on how big it is drawn, how it is scaled, etc. This is most evident in fine-line work and how the computer will “alias” high-contrast edges. I believe the benefits far outweigh this small drawback, but it is an important component in the exchange for a lightweight illustrative file format.

SVG image comparison against JPG with high quality compression

SVG files are often noted for the performance they provide for the size and impact. Because this file format uses plotted points to render the artwork and that work is done real-time by the viewer’s computer, there is a point at which the art’s complexity may have a pixel image be the better solution. These situations are not typical and I would put a well prepared SVG file against the same image as pixel data any day.

Like any other decision for a website’s design and coding, there are many different ways to the same or similar outcome. The solutions are as varied as there are ways to experience them. SVG images are simply another tool in the designer and developer toolkit and one that is more widely supported than ever before.

Making a change like this is a barrier for web developers. It introduces questions about compatibility, work-flow, consistency of quality. A web designer or developer is likely to ask themselves what advantages they hope to achieve as a result of using SVG. The response (and decision to move forward), should be informed by the type of content you create.

I work for a healthcare communications agency. Much of the visual content we plan for and build contains charts, graphs, and infographics. This style of imagery, usually originating as vector artwork is an ideal candidate to deploy as SVG. I say so not only because the line art and graphic style will be more crisp and allow for indexed files, but because the power of SVG images is the ability to provide much greater detail to otherwise illegible graphics.

More efficiency can be gained from an SVG workflow can be gained by using various javascript libraries and extensions to allow for zooming in, and expanding images to reveal small print, additional details, or provide enhanced views. For many agencies and content creators this provides a great advantage with less files to manage and a much more responsive user experience.

Bringing SVG To Your Next (Or Current) Project

Obviously, I am a proponent of scalable vectors. I believe they provide a better solutions many graphics online (or any digital project) and also answer a need within the responsive web design workflow. If you are not familar with vector images, you should be aware that SVGs are not a solve-all solution. One disadvantage to the SVG format is that you are storing all of the various points you’ve used to draw an image. If you have a particularly complicated images, the size of the file is going to grow as well. For some very complex image with many lines and points, it may be much more efficient to convert that image into a bitmap for digital sharing and viewing. When in doubt, test and then test again.

There is little reason to delay in adoption of SVG for your web design projects. The support is in place and from almost every major platform-from mobile to desktop to televisions. If you still have questions, post a comment or visit some of the references I’ve included below.

References:

http://caniuse.com/#feat=svg
http://coding.smashingmagazine.com/2012/01/16/resolution-independence-with-svg/
http://dbushell.com/2012/04/03/svg-use-it-already/
http://alistapart.com/article/using-svg-for-flexible-scalable-and-fun-backgrounds-part-i
http://alistapart.com/article/using-svg-for-flexible-scalable-and-fun-backgrounds-part-ii
http://en.wikipedia.org/wiki/Scalable_Vector_Graphics

Follow:

@dbushell
@zeldman
 

The New Windows 8 Workstation

With the RTM version of Windows 8 being released, I’ve had a chance to dabble in the interface and spend some time ‘working’. It’s really quite nice. It’s very usable and intuitive OS for day to day use and Windows 8 has all of the winning components from the previous generation and quite a bit more.

The Windows 8 user experience, formerly known as Metro, is beautiful to look at. The graphic approach to the user interface and chrome is current, user friendly, and honestly, a very relevant solution for both powerhouse desktops and tablets alike.

What has really captured my attention is the integration between Windows 8 and their peripheral platforms. The tablet platform, Surface in particular, seems like an ideal pairing that extends the desktop as a platform and may completely replace it. Windows 8 Phone is also an impressive offering. Despite the smartphone market being well serviced by iOS and Android, I think this new scrappy platform might still have a shot.

I think that for the first time perhaps a decade, Microsoft has a truly innovative solution that can be an ideal platform for Creatives. Crazy as this idea seems, for those who produce content for a digital audience, Windows is a producing an almost ideal offering for writing, designing, developing, and supporting big digital ideas.

The desktop environment itself serves many purposes for the creator (as in content creator). Traditional applications can be run in keyboard and mouse mode and now, through large touch screens and hybrid overlays, users can select, scale, move, draw, paint, and otherwise interact directly with the user interfaces via touch screens. For additional or supplemental input, Windows 8 tablets can be paired with desktops to extend the display or used as a touch input like a Wacom Tablet-ideally suited for creative teams.

That same tablet is an ideal portable interface for capturing ideas. Photographing from life, drawing, writing, recording audio and video can all be done on the device and acted upon using the same software that’s run on the Windows desktop. Content can also be synchronized and used immediately on a desktop interface if additional computing power is required (video being an example of such an instance).

Windows 8 Phone offers another example of a similar scenario. Smartphones have become our planners, wallets, health centers, cameras, notebooks, and sketchbooks. Having a truly synchronous environment would make the lines between these platforms irrelevant and hurdles of the past.

I’m looking at Windows 8 as a bit of a reinvention for Microsoft and would like to see people really consider it as a contender for their workstation. This is a chrysalis moment for Microsoft. Although they have a market majority, they have lost some of their relevance to companies like Apple and Google. This new crop of software is something that shows a renewed attention to users and a serious shot to stay connected to the market they helped create.

I think there is real opportunity for Windows 8 to find a place as a Creative workhorse. As OS X starts to show a move towards a very consumer oriented experience via Mountain Lion, Content authors will need heavy-lifting, high end workstations to create videos, web sites, manuscripts, mobile apps, and new media creations. The new Windows 8 experience can bring much of the user experience offering to users and also support a multi-window, heavy-lifting, experience at the same time.