0

Picture from a Base64

⚠️ This feature may not work at the time of release. Use picture from a public URL in the meantime. We will update this page once it becomes available.

It is possible to provide a picture directly in the data field as a Base64 Data URIs like the example below.

Data

{
  "dog": "$base64dog",
  "$base64dog": {
    "data": "/9j/4AAQSkZJRgABAQAAYABgAAD/4QCMRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABgAAAAAQAAAGAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAGSgAwAEAAAAAQAAAEMAAAAA/+0AOFBob3Rvc2hvcCAzLjAAOEJJTQQEAAAAAAAAOEJJTQQlAAAAAAAQ1B2M2Y8AsgTpgAmY7PhCfv/AABEIAEMAZAMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2wBDAAYEBAUEBAYFBQUGBgYHCQ4JCQgICRINDQoOFRIWFhUSFB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ymbQPAvE3hrSX8YCD7GqRnc+I3ZPmBUA/KRzjivRfBfgrw7YKLyDSbYXQxiZwXf/AL6Yk1xviL/kdk/3ZP8A0Ja9N8Mf8eP5VhHc3exuSfKigcD/AOvTgx2dabL91f8APelH+rNbIwY23YjOD3rYyTGpz2rGg6H61sf8s1+law3M5kTdaSlbrSVqZn//2Q==",
    "extension": "jpg"
  }
}

In the data field, the first part of the Data URIs data:image/jpeg;base64, has to be removed. Add the $ prefix in the data field.

  1. Insert a temporary picture in the template.
  2. Write the marker {d.dog} in the alternative text of the picture.
  3. To access the alternative text on LibreOffice: Right-click the Image > Format... > Text Alternative.
❗ Base64 images can only be set only at the root of a JSON object, not in an array nor in a child object.

Reply

null