Can a plugin embed an image for its <description>?

It would be helpful if an IntelliJ plugin could embed a diagram or illustration inside its description in the Settings » Plugins catalog. When, however, I add a element to the description:

<img src="resources/test.png">

— the result is a broken-image icon, despite several attempts to put the image somewhere in the plugin file hierarchy where the renderer might find it. An strace of the process showed no external attempts to open the file either. I then tried to include the image inline, so that no questions about the path to the image would arise:

<img src="data:image/png;base64,...">

Alas, the result was yet again an icon indicating a broken image.

Is there any way to successfully embed an image in a plugin description? If not, could this feature be added to IntelliJ in the future? Thanks for any guidance!

0

Hi Brandon,

When you browse plugins in Settings » Plugins only their metadata is downloaded from plugin repository therefore images stored inside plugin archive won't be available in IDE at that moment. A link to external resource should work because anyway you need an internet connection when browsing plugins:)

Ivan

0

I stumbled upon the very same issue. This leads to a strange Chicken-Egg situation:

  1. Publishg the plugin with broken image links.
  2. Upload the images as media in marketplace.
  3. Set the correct image urls from marketplace in the plugin description.
  4. Republish the plugin.

If the plugin.xml file would have a media section pointing to the right images within the plugin, those could be uploaded as media during the publish process automatically. In plugin.xml one could reference the defined media via ids or whatsoever in the description. Proper URLs could also be set during publish process. This way image URLs would be correct from the first publishing on.

0

Hi, Meyfarth! I would not suggest using images uploaded as screenshots in your plugin descriptions because screenshots are available both on the site and in IDE as a separate block.

0

请先登录再写评论。