Topics Covered in This Photoshop for Web Design Tutorial:
Exporting SVG from Photoshop, Exporting SVG from Illustrator
Exercise Preview

Exercise Overview
Understanding the fundamental difference between pixel-based and vector-based graphics is crucial for web design professionals. Photographs rely on pixels for their rich detail and color gradations, while icons, logos, and interface elements perform best as vectors. In this comprehensive exercise, you'll master the art of exporting vectors as SVG (scalable vector graphics)—the web-optimized vector format that has become the industry standard for responsive design. Unlike pixel-based formats such as JPEG that require multiple resolution variants (1x, 2x, and sometimes 3x for high-DPI displays), a single, well-crafted SVG file delivers crisp visuals across every device and screen resolution imaginable.
Here's the critical limitation every designer must understand: Photoshop can only export proper SVG files from native Photoshop vectors—those created using the Pen tool, Shape tools, or other built-in vector functions. The Vector Smart Objects that we commonly place or paste from external sources cannot be properly exported as SVG from Photoshop. Since most professional workflows involve imported vector assets, this limitation means we typically need to turn to Adobe Illustrator for reliable SVG export. This workflow knowledge can save hours of troubleshooting and ensure your final assets meet professional web development standards.
Vector vs Pixel-Based Graphics for Web
| Feature | Vector (SVG) | Pixel (JPEG/PNG) |
|---|---|---|
| Resolution Independence | Infinite scalability | Fixed resolution |
| File Versions Needed | Single file | 1x and 2x versions |
| Best Use Cases | Icons, logos, simple graphics | Photographs, complex imagery |
| File Size | Small for simple graphics | Larger, varies by compression |
Exporting SVG from Photoshop
For those rare instances when you're working with native Photoshop vector layers, the export process is refreshingly straightforward:
- In the Layers panel, Right–click on the vector shape layer you want to export, and choose Export As.
- Set Format to SVG.
- Click Export.
Quick SVG Export from Photoshop
Select Vector Layer
In the Layers panel, right-click on the native vector shape layer you want to export
Choose Export Option
Select 'Export As' from the context menu
Set Format
Set Format to SVG in the export dialog
Export File
Click Export to save your SVG file
Getting Started in Photoshop
Let's begin by setting up our workspace and examining the logo asset we'll be optimizing. We'll work with a complete design file that demonstrates real-world conditions you'll encounter in professional projects.
- In Photoshop, close any files you have open to ensure a clean workspace.
- Go to File > Open or hit Cmd–O (Mac) or CTRL–O (Windows).
- Navigate to Desktop > Class Files > yourname-Photoshop for Web Class > iTastify and double–click iTastify Design Done.psd.
- Choose View > 100% to work at actual size—this gives you the most accurate representation of how your assets will appear in the browser.
- Scroll to the top left of the artboard so you can see the iTastify logo clearly.
- In the Layers panel, expand the nav folder to reveal the navigation elements.
- Click once on the itastify-logo layer to select it—notice this is likely a Smart Object, indicated by the small icon in the thumbnail.
- In the Properties panel (Window > Properties) note that the W (Width) is 229 px. Document this measurement carefully—maintaining consistent sizing between design and development phases is essential for pixel-perfect implementation.
Photoshop Setup Tasks
Start with a clean workspace
Navigate to the specified class files folder
Ensures accurate size reference for export
Found within the nav folder in Layers panel
Critical for maintaining proper sizing in Illustrator
Exporting SVG from Illustrator
Now we'll move into the primary workflow for professional SVG export. This process ensures we maintain vector fidelity while optimizing for web performance—a balance that separates amateur work from professional-grade assets.
- In the Layers panel, double–click the itastify-logo layer's Smart Object thumbnail (the small square icon to the left of the layer name). This action will launch the source application.
- If you get an alert about what to do after editing, click OK to acknowledge the workflow.
Adobe Illustrator should launch automatically. If you encounter a PDF Modification warning, check Discard changes and click OK—this prevents unwanted modifications to your source file.
You should now see the iTastify logo in Illustrator's native environment. Before exporting, we need to address a critical aspect of professional SVG creation: initial sizing. While SVG files can scale infinitely without quality loss, setting the correct initial dimensions saves web developers time and reduces the likelihood of implementation errors. When developers receive properly sized assets, they can drop them directly into code without additional scaling calculations—a small consideration that significantly impacts workflow efficiency.
- Hit Cmd–A (Mac) or CTRL–A (Windows) to select all artwork elements.
- Open the Transform panel by choosing Window > Transform to access precise sizing controls.
- Locate the Link icon
to the right of W and H fields. Ensure this is enabled (linked) to maintain proportional scaling. Set W (Width) to 229 px and hit Return (Mac) or Enter (Windows) to apply the transformation.
The logo will scale proportionally to match your design specifications. This precision ensures seamless integration during the development phase.
Choose File > Export > Export As to access Illustrator's modern export engine.
IMPORTANT: While Illustrator offers SVG export through File > Save As, the File > Export method utilizes Adobe's updated SVG engine, which generates cleaner, more efficient code with smaller file sizes. This translates directly to faster load times and better web performance—critical factors in today's mobile-first web environment.
- Navigate to Desktop > Class Files > yourname-Photoshop for Web Class > iTastify > optimized folder.
- Set Format (Mac) or Save as Type (Windows) to SVG (svg).
- Click Export to proceed to the optimization settings.
Configure the SVG export options with these professional-grade settings:
Styling: Presentation Attributes Font: Convert to Outlines Images: Embed Object IDs: Layer Names Decimal: 2 Check Minify Uncheck Responsive These settings optimize for web delivery while maintaining design integrity. Converting fonts to outlines eliminates font dependency issues, while the minify option removes unnecessary code bloat. For comprehensive details on each setting and advanced optimization techniques, reference the complete guide at tinyurl.com/ai-svg-export
- Click OK to generate your optimized SVG file.
- Close the Illustrator file without saving changes—this preserves your original source file in its unmodified state.
Switch back to Photoshop to complete the workflow.
CAUTION: If you accidentally saved changes in Illustrator, the logo may appear smaller in your Photoshop design. Simply hit Cmd–Z (Mac) or CTRL–Z (Windows) to restore the original sizing.
Close the Photoshop file without saving changes to maintain your original design file integrity.
While SVG files can be scaled to any size, setting the correct initial dimensions saves web developers from having to code specific sizes, streamlining the implementation process.