If you’re creating content on the web, you’ll likely come across a range of different file types. But which one is best? In this short series from Shorthand, we’re going deep on some of the most popular file types, so you can talk a little more confidently to your designer, developer, or team.
SVG files are Scalable Vector Graphics files. They are used to create and edit vector images.
Unlike bitmap images, which are made up of a fixed number of pixels, vector images are composed of mathematical formulas that define the shapes and colours in the image. This makes them scalable, so that hey can be enlarged or reduced without losing quality. Files in the SVG format are often used for logos, icons, and illustrations.
That’s the potted summary! But now, let's dive into the detail. Feel free to skim down to find an answer to all your SVG questions.
In this post, we’ll cover:
Create interactive content for free with Shorthand.
Prepare stunning, interactive web content for free. No code required.
Get started.
If you've ever opened an image file, chances are it was in one of two formats: JPEG or PNG. These are the most popular image formats on the web. But there's another format that's becoming increasingly popular, especially for vector images: SVG.
SVG stands for Scalable Vector Graphics. Unlike JPEG, PNG, and GIF files, which are made up of pixels, SVG files are made up of vector graphics. That means they can be scaled to any size without losing quality. They're also usually smaller in file size than pixel-based images.
To get slightly more technical, SVG files are XML files, which means they contain markup tags that define the image. This makes them easy to edit and customise. You can open an SVG file in a text editor and change any of the markup tags to change the image. For example, you can change the colour of an SVG image simply by changing the colour attribute in the markup tag.
SVG files have been around since 1999, but they're only now gaining widespread popularity. That's because modern web browsers have finally started to support them natively. (In the past, you needed a plugin like Adobe Flash or Microsoft Silverlight to view SVG files).
SVG files are most commonly used for logos, icons, and illustrations. They're well-suited for these types of images because they can be scaled to any size without losing quality. This makes them perfect for use on the web, where images need to be resized frequently.
SVG files are also becoming more popular for use in email marketing and advertising. That's because they can be scaled down to small sizes without losing quality, which is important for email images.
The SVG file format was first proposed by Dutch software engineer, Martijn Koster, in 1994. SVG files were first introduced in 1999 by the World Wide Web Consortium (W3C) as an open standard vector graphic format that could be used on the web.
However, it wasn't until 2003 that the SVG file format was finalised and approved as an ISO standard.
The SVG was designed to replace the JPEG and PNG formats, which are both raster graphics formats. Raster graphics are made up of a series of pixels, whereas vector graphics — as we mentioned above — are made up of mathematical equations that define the lines and shapes in an image. This makes SVG files much smaller in size than raster graphics, and they can be scaled to any size without losing quality.
There are many benefits of using SVG files:
There are a few potential drawbacks to using SVG files:
If you're using a modern browser, you can open an SVG file just like any other image file. Just drag and drop the file into your browser, or click on the file to open it.
SVG files can be opened in most vector graphic editors and design apps, such as Adobe Illustrator, Adobe Photoshop, Inkscape, or Affinity Designer. They can also be opened in text editors, such as Atom or Notepad++.
If you're using an older browser, you'll need to install a plugin like Adobe Flash or Microsoft Silverlight to view SVG files.
Creating and editing SVG files is a bit more complex than working with raster graphics. That's because you need to use vector-based apps like Adobe Illustrator, Inkscape, CorelDRAW, GIMP, or Sketch.
If you're not familiar with vector-based software, it can be tricky to get started. But once you get the hang of it, it's actually quite easy to use.
There are also a few online tools that you can use to create and edit SVG files, such as Method Draw, Vectr, and Figma.
The two most common image formats on the web are JPEG (or JPG) and PNG. Both of these formats are raster graphics or raster images, which means they're made up of pixels.
This makes them ideal for photos, as they will always look sharp and clear no matter what size they are. However, raster graphics can only be scaled a certain amount before they start to lose quality.
This means that if you need to use an image at a different size than what it was originally created for, it might not look as good.
SVG files are vector graphics, which means they're made up of vectors. This makes them ideal for logos, icons, and illustrations. SVG graphics can be scaled to any size without losing quality, while raster files will become blurry and pixelated if they're scaled too large.
There is a big difference between SVG and EPS files.
EPS files are binary files, while SVG files are XML files. This means that you can't edit an EPS file with a text editor.
Another difference is that EPS files are designed for print, while SVG files are designed for the web. This means that EPS files will usually be much larger in file size than SVG files.
SVG files are a great way to share vector graphics online. They're easy to create and edit, and they're supported by all major browsers. If you need to use an image on a website or in an email, and you want it to look its best, try using an SVG file. You might be surprised at how much difference it makes.