Open Presentation

Search docs

Loading documentation…
    OpenPresentation/opf
    Browse docs
    On this page
    View source

    Image Placement

    Bleeds an image block to one edge of the slide: the image takes a band along that edge, edge to edge, and the headings and other content compose in the rest of the slide at the normal padding. Only top-level blocks (slides.N.blocks.I) can be placed, at most one per edge. Template layout regions do not supply image placement; set it on the image block itself. Bands are taken in block order, each spanning the free area left by earlier ones. Placement is the only mechanism that moves content aside; a background never does. A slide whose only body is placed images is composed like a cover: its headings center in the free area. 'start' and 'end' follow the deck's direction: 'start' is the left edge in a left-to-right deck and the right edge in a right-to-left one.

    Metadata

    Definition
    #/$defs/ImagePlacement
    Form
    object
    Source
    spec/schemas/opf.schema.json

    Field index

    FieldTypeReq.Description
    edgeenumyesThe slide edge the image bleeds to.
    edge · Allowed values
    "start""end""top""bottom"
    sizenumber—Share of the slide width (start, end) or height (top, bottom) given to the band. Default 0.5.
    insetboolean—Draw the frame inside the slide padding on every side of the band, like a card, instead of edge to edge. Default false.

    edge

    typeenumrequiredyesdefault—

    The slide edge the image bleeds to.

    edge · Allowed values
    "start""end""top""bottom"
    edge.json
    {
      "edge": "start"
    }

    size

    typenumberrequirednodefault—

    Share of the slide width (start, end) or height (top, bottom) given to the band. Default 0.5.

    inset

    typebooleanrequirednodefault—

    Draw the frame inside the slide padding on every side of the band, like a card, instead of edge to edge. Default false.

    Complete definition constraints
    Schema constraints
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "edge"
      ],
      "description": "Bleeds an image block to one edge of the slide: the image takes a band along that edge, edge to edge, and the headings and other content compose in the rest of the slide at the normal padding. Only top-level blocks (slides.N.blocks.I) can be placed, at most one per edge. Template layout regions do not supply image placement; set it on the image block itself. Bands are taken in block order, each spanning the free area left by earlier ones. Placement is the only mechanism that moves content aside; a background never does. A slide whose only body is placed images is composed like a cover: its headings center in the free area. 'start' and 'end' follow the deck's direction: 'start' is the left edge in a left-to-right deck and the right edge in a right-to-left one.",
      "properties": {
        "edge": {
          "type": "string",
          "enum": [
            "start",
            "end",
            "top",
            "bottom"
          ],
          "description": "The slide edge the image bleeds to."
        },
        "size": {
          "type": "number",
          "minimum": 0.1,
          "maximum": 0.9,
          "description": "Share of the slide width (start, end) or height (top, bottom) given to the band. Default 0.5."
        },
        "inset": {
          "type": "boolean",
          "description": "Draw the frame inside the slide padding on every side of the band, like a card, instead of edge to edge. Default false."
        }
      },
      "examples": [
        {
          "edge": "start",
          "size": 0.45
        },
        {
          "edge": "end",
          "size": 0.4,
          "inset": true
        }
      ]
    }