With the investigation in the Chrome Extension Store and the Firefox Add-on Store, I find the following structure suitable for Joplin Plugins.
"icons": {
"16": "icon16.png",
"32": "icon32.png",
"48": "icon48.png",
"128": "icon128.png"
},
"media" : [
{
"url": "https://...",
"sizes": "1280x720",
"type": "image/webp",
"platform": "desktop",
"label": "Description of the Media"
},
]
It adds two fields - icons and media.
In icons, it consists of key-value pairs of image size in px and image path relative to the root directory of the plugin.
In media, the label member is a string that serves as an accessible name for the media. It can also serve as alternative text. The platform member is also a string that can define the distribution platform for which the specific screenshots should apply to. It is reserved for future plugin systems on mobile devices. Potential values are: desktop, mobile.
Let me know if there are more fields to add, thanks!
1 Like