psd 3.2.3 → 3.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f4587221b7f3298907408b999f0f6974736fdd0
4
- data.tar.gz: 0c0db3b667c5bd30f4796835e6b4fb65d188fb28
3
+ metadata.gz: 5853601336a5bf10d6b88f63b5531ceb88bdd4aa
4
+ data.tar.gz: d7334ea5cf8f8c4ef2ef8ee407ebbe65cffb73db
5
5
  SHA512:
6
- metadata.gz: d10bd3f42e0c24d6bed5a731bce1c6fc48dbbb55bc24c5998b8c9e1aad8f4eee8c6597d20cb9a198aa88772f4f36b7242b80bc357639f5b8948a45f9d0fa2777
7
- data.tar.gz: affa248b3befb994fd365a4f81447517987904ed2b8c6018ec9c25b8f40d0a3517c4f1a56173a6846b2c01339bacc054fe2872a6ae02268f3ae3e7c33b88bfbc
6
+ metadata.gz: 0ce5801d31518ae76637c103b39847ee2a2fc09bd8ca23b4db7e60b63661e76e9881cbb4e6096a2e35ba21c6b3bd6bb640eab4e08be8af64a588e483114b9923
7
+ data.tar.gz: 380ac3504e5de0048aa9d7c229d6bed86da035d3d296dac525231f42ef0bf33c0d02d5656bd2e5aad2c00bbb9b31ead2e1b764b76ed063082470658cff73322c
@@ -75,6 +75,8 @@ class PSD
75
75
  engine_data.EngineDict.ParagraphRun.RunArray.map do |s|
76
76
  ["left", "right", "center", "justify"][[s.ParagraphSheet.Properties.Justification.to_i,3].min]
77
77
  end
78
+ rescue
79
+ []
78
80
  end
79
81
 
80
82
  # Return all colors used for text in this layer. The colors are returned in RGBA
@@ -133,6 +135,7 @@ class PSD
133
135
 
134
136
  css = []
135
137
  definition.each do |k, v|
138
+ next if v.nil?
136
139
  css << "#{k}: #{v};"
137
140
  end
138
141
 
@@ -165,4 +168,4 @@ class PSD
165
168
  end
166
169
  end
167
170
  end
168
- end
171
+ end
@@ -28,6 +28,8 @@ class PSD
28
28
  start_position = @file.tell
29
29
  finish = start_position + mask_size
30
30
 
31
+ PSD.logger.debug "Layer mask section: #{start_position} - #{finish}"
32
+
31
33
  return self if mask_size <= 0
32
34
 
33
35
  parse_layers
@@ -50,6 +50,7 @@ class PSD
50
50
  document: {
51
51
  width: document_width,
52
52
  height: document_height,
53
+ depth: psd.header.depth,
53
54
  resources: {
54
55
  layer_comps: @psd.layer_comps,
55
56
  guides: @psd.guides,
@@ -83,4 +84,4 @@ class PSD
83
84
  end
84
85
  end
85
86
  end
86
- end
87
+ end
data/lib/psd/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class PSD
2
- VERSION = "3.2.3"
2
+ VERSION = "3.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: psd
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3
4
+ version: 3.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan LeFevre
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-26 00:00:00.000000000 Z
12
+ date: 2014-10-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake