SVG Export in Adobe® Illustrator®
When we work with content these days, if were gonna work with websites, we're gonna work with apps, a lot of these different things, we use SVG a lot. SVG, I think I asked you already, what does SVG stand for, was it scalable vector graphics, right, yeah? If we save a file as SVG, which Illustrator can do, we can take it right to a website, for instance, and use it out there. It's gonna stay vector in the webpage. If we want to save out SVG, for instance, I'm gonna show you a kinda nice little trick to do this, we want to get the artwork that we want to save on its own artboard. I'll show you just a little couple of tips here. What I'm gonna do, I'm not going to do that, I'm gonna grab this whole thing. I'm gonna grab this whole thing and I'm gonna copy it and move it off to the side, I just hid some things, blocked some things and grouped it, I know I'm using shortcut keys, I'm sorry. I'm gonna drag this over here and duplicate it, there we go, we get the coffee cup. What I'd like to ...
do, is I'd like to take that and save that as SVG. A couple ways we can do this. We can actually create a brand new artboard and keep it on there if we want, that's pretty easy. I can actually go to the artboard tool and just draw a little artboard, for instance, like this and it's white on white which is just great, I'm gonna make that a little different color, and I'm not going to make that a little looking color, I'll fill that with the blue, that way we can see it. What I can do now, this is actually a nice little tip, I can take selected art, if I want to take that artboard, I'm gonna fit it right around the object, because if we have web objects, a lot of times, we want them to right to the edges. If I go to the artboard tool right now and select it, there is a command up here under presets called Fit to Selected Art or Fit to Artwork Bounds. I use Fit to Selected Art a lot, it's gonna fit it exactly to the artwork. Now, what I can do is I can save that out of here. There are two ways to save as SVG, if I come under File, I'm gonna come up here and you're gonna see that we have Export as SVG and we have Save as SVG. I'm gonna choose Save As and come down here and you'll see for the format we have SVG, you're gonna see two kinds, just don't use SVG Compressed, I don't even want to explain it, just don't use it. Basically, it's a gzip compression on the server, which, not all servers have, it won't be able to work with it, just to be safe, just save it as SVG and go out and say we're gonna use artboards and we have to tell it which artboard, otherwise, it's gonna make a big old file with all that design out there. I'm gonna say this is artboard two, that was artboard two, right. I'm gonna put it on my desktop and I'll save it. This is actually kinda of an older method for doing it, it's still in here, this is why I want to show it to you, because some people still use this in their workflow, but there's a new way to export SVG or save as SVG and I figure we'd do this because, you can see right up here, use File > Export, give it a try. If you use SVG, unless you're locked into this specific dialog box, which you have in your workflow already, use File > Export, it's a much better SVG file, I'll just click Try. If you screw up and you do Save, just click Try and it'll just take you right over there. Now it's gonna say, "Oh, let's go Export". SVG, basically just code, but what it's gonna do, it's gonna save styling, it's gonna save a lot of different things, it's gonna, if there are any fonts in there, it's gonna try to preserve them as best it can, we gotta be careful with fonts in SVG. Down here, the biggest thing, these two things, Minify and Responsive, Minify just means make it as small as you can. In the past, we saved SVG, I would have to go and take the file and make it smaller somewhere else, it's code and it's a pain, just keep that checked. Responsive means this. Anything you put it in it's gonna be a big if it, I'm gonna click Ok, this is gonna be ridiculous, you guys, this is gonna be a white shape on a white background for a browser, I'm gonna go in and change some of these again. I just realized, I was just like, I'm gonna change one, it's not gonna work, let me just change a few other of these just so you can see them, come on, there we go, you notice I'm kinda switching in here to a line mode, that'll look a little bit better. Now I'm gonna export it, I'm gonna go to File > Export, we did save as before, but I'll do export this time, put it on my desktop, I'm gonna save it as SVG, use the artboards, two, export, sorry, I'm running through that, kinda quick I know, same exact dialog we just saw, I'm trying to get back to the same place, I have to put a different color in, I click Ok. There we've got it, it's a lot to show you, it's pretty cool. I'm gonna go to Chrome, open up a new browser window and I'm gonna take that thing and I'm gonna drag it in here, there we go, maybe I should just open it, it's fine, SVG, and there we go. This is in a browser, take a look and you're gonna see, perfectly scalable, perfectly vector, nice and clean, ready to go, pretty neat. That is actually a dot SVG file that we can use, it's still vector, the browser doesn't need plug-in, nothing with it, pretty easy to create and there it is right there, there's the SVG file. Hopefully, that helps with some of the new stuff, kinda gets you looking once you go back you can take a look at some of it. This has been a lot of stuff, I think, and you guys, you've been troopers, I've gotta be honest, you've been amazing, keeping up and working and
Brian, I think my third part has been watching these guys follow along getting shots at their computers and it just shows that, these guys, some of them knew a little bit of Illustrator, some none, in this two-day workshop you can really go from zero to in two days if you follow along, you do the exercises, you look at the project file. Thank you, really really well done.
Thank you for joining us, CreativeLive, we'll see you next time, thanks very much. (clapping)