产品定价 立即试用
PE MQTT Broker
文档 > 白标定制 > 图库
入门
安装 架构 API 常见问题
目录

图片库

文档信息图标
TBMQ PE功能

TBMQ Professional Edition 支持 Image gallery 功能。

图库作为TBMQ应用中管理图片的集中仓库。 为应用登录页面的白标功能提供徽标和网站图标来源。

image

添加图片

可通过图片格式(PNG、JPEG、GIF等)或JSON格式将图片添加到图库。

上传图片

图片格式上传新图片,请按以下步骤操作:

  • Go to the "White labeling" page and click on the "Image gallery" tab. Then, click the “Upload image” button in the top right corner of the screen;
  • Select an image or simply drag it to the "Upload image" window and click "Upload";
  • The image has been uploaded.

从JSON导入图片

JSON格式导入图片,请按以下步骤操作:

  • Go to the "White labeling" page and click on the "Image gallery" tab. Then, click the "Import image" icon in the top right corner of the screen;
  • In the "Import image" window, upload a JSON image file and click "Import";
  • The image has been imported.

切换图片查看模式

支持列表和网格两种查看模式。 在图库窗口左上角选择所需模式即可切换。

图片操作

可通过图片名称旁的对应图标进行下载导出为JSON编辑删除操作。 以下分别说明各操作。

下载图片

以图片格式下载可通过以下两种方式(取决于当前查看模式):

  • 列表视图:点击要导出图片名称旁的“下载图片”图标。
  • 网格视图:将鼠标悬停在要导出的图片上,点击“下载图片”图标。

图片将以图片格式保存到本地。

导出为JSON

导出为JSON可通过以下两种方式(取决于当前查看模式):

  • 列表视图:点击要导出图片名称旁的”导出为JSON”图标。
  • 网格视图:将鼠标悬停在要导出的图片上,点击”导出为JSON”图标。

图片将以JSON格式保存到本地。

编辑图片

点击要编辑图片名称旁的“编辑图片”图标打开编辑窗口(网格视图下,先悬停在图片上再点击)。 在编辑窗口中可修改名称、下载、导出为JSON,以及更新图片

修改图片名称时,输入新名称并在“编辑图片”窗口中点击“保存”图标。

更新图片

当同一张图片被多处用作背景时,更新功能非常实用。 只需修改一次,所有引用该图片的位置都会自动更新,无需逐处编辑。

更新图片时,在编辑窗口中点击“更新图片”按钮,选择新图片或将其拖入“更新图片”窗口后点击“更新”。

删除图片

从图片列表中删除图片,请按以下步骤操作:

  • Click the "Delete image" icon opposite the image's name you want to delete;
  • Confirm deleting the image in the dialog box

删除以网格显示的图片,请按以下步骤操作:

  • Hover your mouse over the image you want to delete and click the "Delete image" icon;
  • Confirm deleting the image in the dialog box

也可批量删除多张图片(仅支持列表视图):

  • Mark one or multiple images you want to delete. Click on the "Delete" bin icon in the top right corner;
  • Confirm deleting images in the dialog box