f.a.r. stands for fixed aspect ratio.
With farJS you can export your .psd photoshop design to a:
-
fixed aspect ratio
-
resizable / fit to screen
HTML layout in just one click!
You only need farExporter.jsx, since it already contains a minified version of far.js (the library that actually does the resizing) that will be exported to a separate file.
-
Create your layout in Adobe Photoshop. Each layer will be exported to a separate .png file.
-
Go to
File -> Scripts -> Browse... -
Select
farExporter.jsx -
You'll get a message when the script is done. The output will be saved in a new subfolder under the path where your .psd file is, named
filename.psd-export.
Check a tiny demo of an example output here!
far.js uses jQuery to select the document's elements.
Tested on Adobe Photoshop CS5.
Find a nice solution for text elements.