jekyll-images 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -22
- data/lib/jekyll-images.rb +0 -1
- data/lib/jekyll/images/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae6326d21281e0a11c937c7cd9399804b514330097c030e13d4afde55abe168d
|
4
|
+
data.tar.gz: ce83123dfc3be33db70d6f310deb9f25d859b3d6efb19059149ead1182b93fcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c041e5a823e8cedcc6f792696c24bead1a33a8d57102eabec3fa01b4ffd2dee90a1598225bf0c6bce215a12419d5f62fbdb76e2f0e8ffde11aed393e50cd34ff
|
7
|
+
data.tar.gz: d8af52b5b829e774e5e3eec70b87c9229a7803eb02b4c688847792608580d4010e185fbe59beceff9401408a0ccdbe0f88958c53bdf04dbd34365ba29fbe71a1
|
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
# Image optimization for Jekyll
|
2
2
|
|
3
3
|
This Jekyll plugin helps you optimize images by thumbnailing them to
|
4
|
-
the sizes you specify in templates
|
5
|
-
in posts and collections.
|
4
|
+
the sizes you specify in templates.
|
6
5
|
|
7
6
|
It uses [Libvips](https://libvips.github.io/libvips/) for performance
|
8
7
|
and low resource usage. It'll also cache the thumbnails so it only runs
|
@@ -70,31 +69,13 @@ Options for this filter are in the following order:
|
|
70
69
|
If you want to pass `crop` and `auto_rotate` but not `height`, just set
|
71
70
|
`height` to `0` or `''`.
|
72
71
|
|
73
|
-
### Configuration and posts
|
74
|
-
|
75
|
-
Images in a post content need to be configured globally:
|
76
|
-
|
77
|
-
```yaml
|
78
|
-
# _config.yml
|
79
|
-
images:
|
80
|
-
# These are bootstrap4 breakpoints in pixels
|
81
|
-
sizes:
|
82
|
-
- 576
|
83
|
-
- 768
|
84
|
-
- 992
|
85
|
-
- 1200
|
86
|
-
thumbnail:
|
87
|
-
width: 600
|
88
|
-
height: 0 # Leave this out for proportional thumbnailing
|
89
|
-
crop: attention # See Vips::Interesting
|
90
|
-
auto_rotate: true
|
91
|
-
```
|
92
|
-
|
93
72
|
## TODO
|
94
73
|
|
95
74
|
* Use `<picture>` and the `srcset` attribute automatically for posts
|
96
75
|
<https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture>
|
97
76
|
|
77
|
+
* Download and thumbnail images in posts and other documents.
|
78
|
+
|
98
79
|
## Contributing
|
99
80
|
|
100
81
|
Bug reports and pull requests are welcome on GitHub at
|
data/lib/jekyll-images.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-images
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- f
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-vips
|