Sha256: 9b2c285f956f5bcc797d90dd015e5d44cc663af054990fa39112f7f40fb8cbd2
Contents?: true
Size: 297 Bytes
Versions: 1
Compression:
Stored size: 297 Bytes
Contents
require 'benchmark' require './lib/psd' require 'pp' psd = nil file = ARGV[0] || 'examples/images/example.psd' results = Benchmark.measure "PSD parsing" do psd = PSD.new(file) psd.parse! end if psd.resources[:slices] psd.resources[:slices].data.to_a.each do |slice| pp slice end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bench9000-0.1 | vendor/psd.rb/examples/slices.rb |