Image
Specific image preview settings.
Example
[preview.image]
exclude = "*" # hide image previews in all channels
include = { channels = ["#halloy"] } # show image previews in #halloy
Configuration
action
Action when clicking on a image. open-url will open the image in the browser, and preview will display a larger version of the image in-app.
# Type: string
# Values: "open-url", "preview"
# Default: "preview"
[preview.image]
action = "preview"
round_corners
Round the corners of the image.
# Type: boolean
# Values: true, false
# Default: true
[preview.image]
round_corners = true
exclude
Exclusion conditions for when image previews
will be hidden. Inclusion conditions will take precedence over exclusion
conditions. You can also exclude all conditions by setting to "all" or "*".
# Type: inclusion/exclusion conditions
# Values: any inclusion/exclusion conditions
# Default: not set
[preview.image]
exclude = { criteria = [{ server_message = "topic", channel = "#linux" }] } # exclude previews from topic messages in #linux
include
Inclusion conditions for when image previews
will be shown. Image previews will be shown for all conditions (when enabled)
unless explicitly excluded, so this setting is only relevant when combined with
the exclude setting.
# Type: inclusion/exclusion conditions
# Values: any inclusion/exclusion conditions
# Default: not set
[preview.image]
include = { users = ["BridgeBot"] }