forked from fredrikekelund/grav-plugin-resize-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blueprints.yaml
76 lines (72 loc) · 1.83 KB
/
blueprints.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Resize Images
version: 0.2.2
description: Generate responsive versions of images as they are uploaded
icon: picture-o
author:
name: Fredrik Ekelund
email: [email protected]
homepage: https://github.com/fredrikekelund/grav-plugin-resize-images
keywords: images, responsive, srcset
bugs: https://github.com/fredrikekelund/grav-plugin-resize-images/issues
docs: https://github.com/fredrikekelund/grav-plugin-resize-images/blob/develop/README.md
license: MIT
form:
validation: strict
fields:
enabled:
type: toggle
label: Plugin status
highlight: 1
default: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
adapter:
type: select
label: Image editing module
help: Imagick will produce better results, but isn't available in all environments
default: imagick
options:
imagick: Imagick
gd: GD
remove_original:
type: toggle
label: Remove original after resizing
help: By default, the original image will be preserved as the largest variant. Enable this to remove it instead.
highlight: 0
default: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
sizes:
type: list
label: Image sizes
btnLabel: Add image size
fields:
.width:
type: number
label: Width
placeholder: 1280
min: 1
.quality:
type: number
label: JPEG quality
placeholder: 82
min: 0
max: 100
default: 82
sizesattr:
type: list
label: Sizes directive per class
btnLabel: Add size directive
fields:
.class:
type: text
label: class
.directive:
type: text
label: sizes attribute