Skip to content

Commit

Permalink
Reorganize and start example script
Browse files Browse the repository at this point in the history
  • Loading branch information
meltingice committed May 8, 2013
1 parent 164a4df commit 67fa33f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ spec/reports
test/tmp
test/version_tmp
tmp
.DS_Store
File renamed without changes.
6 changes: 6 additions & 0 deletions examples/parse.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require './lib/psd'

psd = PSD::File.new('examples/images/example.psd')
psd.parse!

puts "#{psd.width}x#{psd.height} #{psd.header.mode_name}"

0 comments on commit 67fa33f

Please sign in to comment.