Skip to content

Converts and saves a Photoshop text layer to SVG + includes CSS file.

License

Notifications You must be signed in to change notification settings

abbyoung/svg-me

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SVG Me

SVG Me is a Photoshop script to simplify the PSD-to-SVG process using Adobe Photoshop and Illustrator. Created with front-end development in mind, the script converts and saves selected text layers to SVG and exports relevant CSS to a file.

Developed for CS6 Version 16.

Installation

To use SVG Me, place the script in Photoshop's Scripts folder /Applications/Adobe\ Photoshop\ CS6/Presets/Scripts

  • Save the script SVG ME.jsx to your Desktop.

  • Open in your favorite text editor...

	$ coda ~/Desktop/SVG\ Me.jsx

...and edit the path variables to your preferred destination(s) for saving.

  • CSS files:
	saveCSS: function(cssText){
		var filePath = "~/Desktop/work/svg-me/"
  • AI files:
	exportFile: function(docRef, callback){
		...
		var filePath = "~/Desktop/work/ps-to-svg/";
  • SVG files:

     openIllustrator: function(file, color){
     	...
     	"var filePath = '~/Desktop/work/svg-me'"+
     
    
  • Move the script into Photoshop's Scripts folder. On the command line, enter:

     $ mv ~/Desktop/SVG\ Me.jsx /Applications/Adobe\ Photoshop\ CS6/Presets/Scripts/
    
  • Close and reopen Photoshop if it's already open. The script should now appear under File > Scripts > SVG Me

Usage

  • Select desired Photoshop layer(s) in the Layers palette

  • Run the script under File > Scripts > SVG Me. Make it better: Set up a keyboard shortcut under Edit > Keyboard Shortcuts > File > Scripts > SVG Me.

  • The script creates and saves CSS and AI files, then Illustrator opens the AI file and shows an options dialog. Check relevant boxes and click OK. The SVG-making magic happens in the background.

Illustrator Dialog

Note: Sometimes AI lags at the dialog box. Working on fixing this 🔨🐱

  • YOU'RE DONE. Your shiny new SVGs, CSS files, and backup AI files will show up in your destination folder(s).

License

See MIT License file.

Contact

Developer

About

Converts and saves a Photoshop text layer to SVG + includes CSS file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published