Project

ruby-psd

0.0
No commit activity in last 3 years
No release in over 3 years
Generating psd skeleton file simple and by scriping of Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

ruby-psd

Library for generating psd skeleton file simple and by scripting of Ruby.

Overview

Sometimes sharing a specification of application is difficult. Even director or planner made a based specification on document, designer feels stress sometimes to check specification again and again.

This library is made for generate skeletons consisted by layer groups in psd files easy. With using ruby code, you can make folder / file structures by coding.

Install

gem install ruby-psd

Usage

require 'ruby-psd'

# Generate New Document
psd = RubyPSD.new("./path/to/you/want/generate/sample.psd")

# Set psd document's canvas size. default is 0 each. 
psd.width = 640
psd.height = 960

# Define layer group structure you want to generate
psd.layers =
[
  "title",
  [
  	"button",
  	"inner_group",
  	[
  	  "more_inner"
  	]
  ]
]

# Generate psd 
psd.generate

# If you want to change path, reset the path string
psd.path = ("./another/path/sample.psd")