How to export responsive images for website from XD Photoshop Illustrator
Alright. I wanted to double back in this video to images. We've done images in an earlier video but I want to kind of really highlight responsive images now that we understand what responsive is. We're going to need some different images now for our kind of 100% stretching method that will do next. Okay, we just need a very big image and we're going to scale it down. That's easy enough. The method after that called the SRC set method. The source set. It's going to require different physical, different images at different sizes and we're going to turn them on and off depending on the physical width and the pixel density. Alright, so first up we're going to work with Photoshop make sure the image you want to resize is open within it. Photoshop is not the absolute best web design image program but it gets you so commonly Okay for doing web design. So we'll cover that first. Let's go to file, let's go to export. We're gonna use export as Okay. You might have to reset yours. Your quality is...
probably at 100. It will remember. The last thing you've done. You might have to set your scale back to 100. You might have been some of these if you've got it. So what I want to do is I want it to be a Jpeg because it's an image that looks like it needs to be a Jpeg. I'm gonna have the quality maybe down at 60 because it looks fine. Now The smaller size will start with the smallest. Okay, let's say I want it to be a width of so you need your your overall dimensions. Okay so mine is by default 300 pixels wide. As long as it's bigger than what you need it because I want it to be the small size to be 400, it's gonna be quite small. The ratio kind of works out of our favor so you gotta make sure, don't worry if it gets a little bit off. So we're going to target our mobile phone on a bad screen and that's going to be our kind of times one. Then what I do is I add one more. Okay and this one is going to be the times two for high D P. I you can see you can do times three. Okay. And I'm gonna say that's what I'm gonna do. I'm gonna hit export and on my desktop I'm going to put them just lump them. There. Haven't given them a very good name. Hopefully there they are. So there's that first image. Okay and there's my second one. Now I'm going to open them back up in Photoshop just to show you the size difference. So that is the small one there and that is the big one and twice the size. So that's how to get kind of two versions out of Photoshop XD is very similar. Okay let's say I've got this image of my mock up here. Okay I select it. I double click it so I've got the image part of it and I go File export export the selected one and down here. This is the changing. So down here instead of just design, we're going to go to web and it's going to give me, you can kind of see that teeny tiny writing, editable zoom in so you'll be able to see it fine. But you can see you get a two X and a one X if you're doing stuff for IOS. So that is iphones or ipads, They will require a times three android requires Oh geez, android, so many but we're going to do just one and two times. Cool, I'm going to export that to my desktop as well. Give it a name. It's a bad name. It's gonna fly through this because we've kind of done it already. I just wanted to show you that. That's why you end up with this one with two X at the end. It's just twice the size of the original and open them up in Photoshop just to show you epic vision. Small vision. So for 100% method we're just going to use this one and scale it down. And when we do our source set method, we're going to switch between these two images depending on the size and the pixel density. All right, The last one is illustrator that gets used commonly. Okay, so this one here. If it was it didn't have a gradient and wasn't all this drop shadow. I'd probably just use our SVG. Okay. So what we need to do is window, you need to open up your assets export, select the thing you want to export, drag it into this panel, give it a better name than I've got. Okay. And then down here is where you decide, Okay, so S V G is not gonna work in this case. So I'm gonna have to pick Jpeg. I'm picking picking a 50% Jpeg doesn't give me 60. So we'll take 50. Is that a suffix to it? That is? I don't need that. You can have it. It's just like adding to the file name. Okay, so I'm gonna have a version one. I'm going to have a version. You can see, you can go real high. So I'm going to have just a version two. It's going to add that suffix to the end to match the rest of them will make it that one adding the minus. Well, it says -50. Really just says I'm a 50% quality Jpeg. I'm gonna do those two. I am going to, what am I gonna do? I'm gonna click on him. So he goes blue then I'm going to click export and we end up at the same place. So desktop export, I should have to called backgrounds. Oh, and even put it into little groups. Thank you, illustrator. I'm not sure if that's thank you. But anyway, I got two of them. One to open them both up at Photoshop so you can see the size difference. I don't know why. I don't believe you trust me. Anyway. Small version, gigantic version actually zoomed out there is the small version. 100%. And that's the other version. Double the size, massive. Alright, so we've got our images. Let's work through the rest of this responsive image section. We'll start implementing them in a second.