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
Copy file name to clipboardExpand all lines: README.textile
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,7 +140,7 @@ h4. Attributes (in addition to standard txp:thumbnail tag attributes)
140
140
: Adds the image file modification time to the end of the thumbnail's URL. Use @add_stamp="1"@ to switch this feature on. This helps prevent stale images, but may prevent browsers from cacheing the thumbnails properly, thus increasing bandwidth usage.
141
141
: Default: @0@.
142
142
; @aspect="ratio"@
143
-
: Only consider images of a particular aspect ratio. Choose from: @portrait@, @landscape@, or @square@. Or specify your own aspect ratio width:height, e.g. @16:9@ or @4:3@.
143
+
: Only consider images of a particular aspect ratio/size. Choose from: @portrait@, @landscape@, or @square@. Or specify your own aspect ratio width:height, e.g. @16:9@ or @4:3@, or numeric ratio such as @aspect="1.33"@ or @aspect="0.8". You may also specify just a width or height, e.g. @aspect="300:"@ (only consider images that are exactly 300px wide) or @aspect=":800"@ (only consider images that are exactly 800px tall).
144
144
: Default: unset.
145
145
; @break="tag"@
146
146
: HTML tag to apply between each thumbnail when iterating over them.
@@ -1837,7 +1842,7 @@ function smd_thumbnail($atts, $thing = null)
1837
1842
1838
1843
if ($rs) {
1839
1844
extract($rs);
1840
-
$thumbs = safe_rows('*, ROUND(width/height, 2) AS ratio', SMD_THUMB, implode(' AND ', $typeClause) . $havingClause . $orderClause);
1845
+
$thumbs = safe_rows('*', SMD_THUMB, implode(' AND ', $typeClause) . $orderClause);
1841
1846
$outset = array();
1842
1847
$force_size = do_list($force_size);
1843
1848
@@ -2156,7 +2161,7 @@ function smd_thumbnail_info($atts, $thing = null)
2156
2161
: Adds the image file modification time to the end of the thumbnail's URL. Use @add_stamp="1"@ to switch this feature on. This helps prevent stale images, but may prevent browsers from cacheing the thumbnails properly, thus increasing bandwidth usage.
2157
2162
: Default: @0@.
2158
2163
; @aspect="ratio"@
2159
-
: Only consider images of a particular aspect ratio. Choose from: @portrait@, @landscape@, or @square@. Or specify your own aspect ratio width:height, e.g. @16:9@ or @4:3@.
2164
+
: Only consider images of a particular aspect ratio/size. Choose from: @portrait@, @landscape@, or @square@. Or specify your own aspect ratio width:height, e.g. @16:9@ or @4:3@, or numeric ratio such as @aspect="1.33"@ or @aspect="0.8". You may also specify just a width or height, e.g. @aspect="300:"@ (only consider images that are exactly 300px wide) or @aspect=":800"@ (only consider images that are exactly 800px tall).
2160
2165
: Default: unset.
2161
2166
; @break="tag"@
2162
2167
: HTML tag to apply between each thumbnail when iterating over them.
0 commit comments