You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
: When using automatic thumbnails, specifies a cropping ratio and optional cropper.
36
+
: **Values:** A width-to-height ratio, specified as two numbers separated by either `x`, `:` or `.` (e.g. `4x3`, `16:9`, `1.1`).
37
+
: A third parameter can be added after another `x`, `:` or `.` to specify which cropper to use:
38
+
`centered` (the default). Crop the edges on all four sides. Fast.
39
+
`topcentered`. Crop the bottom, left and right edges only. Fast.
40
+
`smart`. Automatically crop based on analysis of the image to try and keep the subject as the focus. Slowest, and results may vary depending on the image.
41
+
For example: `crop="2:3.smart"` applies a smart cropper in the portrait 2-to-3 ratio.
42
+
: **Default:** unset (thumbnails will be scaled only).
: Escape [HTML entities](https://developer.mozilla.org/en-US/docs/Glossary/Entity) such as `<`, `>` and `&` for the image's `alt` and `title` attributes.
36
46
: **Values:** See the [tag escaping](/tags/learning/#tag-escaping) documentation for all possible values.
@@ -40,10 +50,6 @@ Tag will accept the following attributes (**case-sensitive**) as well as the {%
40
50
: Specify an image `height` which overrides the value stored in the database. Use `height="0"` to turn off the output of a width attribute in the `<img>` tag (thus the browser will scale the height if a width is used).
41
51
: **Default:** height of image stored in the database.
: The HTML `id` attribute applied to the `wraptag`, if set, otherwise to the `<img>` tag.
45
-
: **Default:** unset.
46
-
47
53
`id="integer"`
48
54
: Specifies the `id`, assigned at upload of the image, to display. Can be found on the Images panel. If both `name` and `id` are specified, `name` is used while `id` is ignored. If neither is specified, the tag must be used within an [images](/tags/images) tag or form.
49
55
@@ -55,13 +61,17 @@ Tag will accept the following attributes (**case-sensitive**) as well as the {%
55
61
`name="image name"`
56
62
: Specifies which image to display by its image `name` as shown on the Images panel.
57
63
64
+
`quality="percentage"`
65
+
: The thumbnail quality percentage value from 1 to 100. In general, the higher the number, the better quality the image, the larger the image size.
66
+
: Only applicable to PNG, JPG, WEBP, and AVIF files. Has no effect on other file formats.
67
+
58
68
`style="style rule"`
59
69
: Inline CSS `style` rule. It's recommended that you assign CSS rules via the `class` attribute instead.
: Adds the given text as an HTML 'title' attribute to the image. If used as a valueless attribute, will use the caption as text.
@@ -70,7 +80,7 @@ Tag will accept the following attributes (**case-sensitive**) as well as the {%
70
80
: Specify an image `width` which overrides the value stored in the database. Use `width="0"` to turn off the output of a width attribute in the `<img>` tag (thus the browser will scale the width if a height is used).
71
81
: **Default:** width of image stored in the database.
72
82
73
-
{% include atts-global.html %}
83
+
{% include atts-global.html sort="" limit="" offset="" %}
74
84
75
85
## Examples
76
86
@@ -102,8 +112,23 @@ Had the `wraptag` attribute been used, the `class="promoted"` attribute/value wo
102
112
103
113
Displays full-size images for all images found by the [images](/tags/images) tag.
104
114
115
+
### Example 4: Display an automatic thumbnail
116
+
117
+
Automatically crop it using the smart cropper in a square aspect ratio at 50% quality:
If the thumbnail of that particular image is already set as 'automatic' then the `thumbnail` attribute value can be omitted (i.e. `thumbnail` can be used on its own).
0 commit comments