anti_image_reflow 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/anti_image_reflow/version.rb +1 -1
- data/lib/anti_image_reflow.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c55afc681dbcc018e08d8802f67bc07e0d4dc3585bdb5da4bf71af22a2a70bd
|
4
|
+
data.tar.gz: c210e32e6341c03bf90c99368c9e474de277686838447820b0610b61282a2d50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb60d6c45fc0bc8d4753b3c1c3a710482c47ef532d8e2eab369e800c1bfce1bcbbf3c848b8463b0fb595cacce1e7aecbe1aeb3f8c4f9f744d5e3fdf93d9a2a01
|
7
|
+
data.tar.gz: 6db06910a32eaf251268c2ceaf08285cbdd410c754d81fb65028679a1f737fe4771cd72218ffa045e91aa9a8b6a64ce912311584323eace2532de6d31aaef858
|
data/lib/anti_image_reflow.rb
CHANGED
@@ -30,8 +30,9 @@ module Jekyll
|
|
30
30
|
if tag.name == "img"
|
31
31
|
# get path relative to root
|
32
32
|
path = File.join(Dir.pwd, tag["src"])
|
33
|
-
#
|
34
|
-
|
33
|
+
# skip if directory
|
34
|
+
next if File.directory?(path)
|
35
|
+
|
35
36
|
size = FastImage.size(path)
|
36
37
|
tag["width"] = size[0] unless tag["width"] || size.nil?
|
37
38
|
tag["height"] = size[1] unless tag["height"] || size.nil?
|