anti_image_reflow 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/anti_image_reflow/version.rb +1 -1
- data/lib/anti_image_reflow.rb +2 -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: 625940c619a2c4df8177c33bd88901b03f3c67a0f431d58f7820002dafb6490f
|
4
|
+
data.tar.gz: 9a9265a9f862e0ebfa48ba3ac848c0b20e1de83d4f7af92f162ba009b2b98db7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7559ed4e5e86084d45d07609b31848d47d891c1990a8416fe01618c5cce7508ef4e97d8801912f65364d308e96a51b792dc557fb566aef6d793e69f90e91044
|
7
|
+
data.tar.gz: 16bd6e80c2cbed711fabf2ff00e3c1667c0a882cc7864000ac769001ac966fc72f8789ce98b18b02b6b6804c0cea67f6d40a104239227baf3e538eafa66ee9b7
|
data/CHANGELOG.md
CHANGED
data/lib/anti_image_reflow.rb
CHANGED
@@ -29,8 +29,8 @@ module Jekyll
|
|
29
29
|
# add height and width attributes
|
30
30
|
if tag.name == "img"
|
31
31
|
path = File.join(Dir.pwd, tag["src"])
|
32
|
-
# check
|
33
|
-
if File.
|
32
|
+
# check file is not directory
|
33
|
+
if File.file?(path)
|
34
34
|
size = FastImage.size(path)
|
35
35
|
tag["width"] = size[0] unless tag["width"] || size.nil?
|
36
36
|
tag["height"] = size[1] unless tag["height"] || size.nil?
|