Asked by Brian Purkiss, a freelance designer in San Antonio Texas.
When you do the standard “save a jpg/gif/etc” it’s saved as an Adobe Photoshop jpg/gif/etc - and the file size is fairly large. How do you avoid that?
With your file open, or with a slice made on your psd go to : File > Save for web. You will then be prompted with with a huge dialog box:

It might seem confusing and intimidating at first but allow me to walk you through it.
Up here you have four choices to choose from to layout the preview window.
This section in the window will display the file size of the chosen file format and will also give a download time on certain connections. I’m not sure if the adobe crew sat down with stopwatches and timed it, but its safe to say its pretty accurate.
Here you can adjust the settings of the chosen file format. For instance, with a .gif you can change the max amount of colors to be used, or the matte color on the edges. Or with a .jpg you can edit the quality of the jpg compression ranging from “low” quality to “maximum” quality. Or you can choose to use Transparency with your .png’s
Photoshop also gives the nifty little option to view your selected file format in your default browser (hopefully firefox). You can edit your browser list so you can view in all your favorite browsers. I guess it helps some people, but I never use this feature.
After clicking save you’re prompted with the save as dialog box.

Here, photoshop gives you the option to save the image by itself, or to write the html along with the image. Never trust photoshop to write your code. It’s more fun to do it yourself
The settings field gives you some options like, having photoshop make an images folder and putting the saved file in that image. Or you can underscores and hyphens to the filename. To change the settings use the pulldown and choose “Other…” This will bring up the settings window and you can tweak them all you want.
In this field you can choose to save “All slices”, “All user slices”, or “Selected slices”. I prefer to just go with selected slices and ignore the other options.
I could write about every section on the window but where’s the fun in that? The best way to learn it, is to go experiment with it. I hope this helped, even if just a little. Enjoy!
OR follow on Twitter
Twitter.com/DeDestruct
Comments
Holy cow.
How did I not get that…
lol
Thanks so much!
Very nice tutorial.
Brian Purkiss’s last blog post… Minimalism - A Designer’s Excuse - Powered by CommentLuv
I agree with 5. Save as Type, PhotoShop writes horrible code with tables and its extremely messy. Very important not to let t do your code and just do it yourself. Very good point
Also,
If you double click on a slice in “Safe for Web” you can change the name which is used to save your images. In case you do not want to have something like index_01.jpg
I want my slices so that when I save for web, it will save each individual slice by itself. That way I can use the images for backgrounds.
My issue is that sometimes I want to save the entire piece without slices. Right now I save, clear slices, then save for web. Once I get my full page shot I then undo the clear slices.
There has to be a step I am missing that will allow me to save for web and somehow toggle whether I want slices or not for the current save for web.
I hope that makes sense.
Trackbacks
Leave a reply