Using images in Anvil Assets in a python-pptx slide

This worked!!! I don’t know what I would do without the support I get from both Anvil, but also the community…

  file = app_tables.images.search(name='warning_yellow')[0]['file']
  print(file.name)
  print(file)
  with anvil.media.TempFile(file) as img_file:
    warning_img = first_slide.shapes.add_picture(img_file, Inches(0), Inches(.3), height=Inches(1))
2 Likes