Amazon Echo Show的背景图片不会缩放

问题描述:

我正在尝试在Python3中为亚马逊Echo显示创建测验美国各州用户的技能。为了做到这一点,我想在Show的屏幕上显示一个图像。但是,当我尝试这样做时,我的图像被切断。我尝试调整图像的大小,但这无能为力。Amazon Echo Show的背景图片不会缩放

为了使我使用下面的代码(原谅空字符串我作为占位符文本)的模板:

'directives': [{ 
     'type': 'Display.RenderTemplate', 
     'template': { 
      'type': 'BodyTemplate1', 
      'token': 'some sample card', 
      'backButton': 'VISIBLE', 
      'title': '', 
      'backgroundImage': { 
       'contentDescription': '', 
       'sources': [ 
        { 
         'url': 'https://upload.wikimedia.org/wikipedia/commons/9/94/California_in_United_States.svg', 
         # 'widthPixels': 350, --> Tried these as well 
         # 'heightPixels': 350, 
         'size': 'SMALL' 
        } 
       ] 
      }, 
      'textContent': { 
       'primaryText': { 
        'type': 'RichText', 
        'text': '' 
       } 
      } 
     } 
    }] 

我怀疑它可能有一些做我的模板类型(BodyTemplate1)或我试图使用backgroundImage来实现它不应该用于的东西。

有什么想法?

我通过找到1024像素x 600像素的背景图像(亚马逊为显示屏幕指定的大小)解决了该问题。