org-roam-ui icon indicating copy to clipboard operation
org-roam-ui copied to clipboard

[BUG] Unable to set image attributes such as width and alt text

Open 5uie opened this issue 3 years ago • 2 comments

Describe the bug Unable to set image attributes such as width, caption and alt text

Apologies if I have posted in the wrong section/type or if I have made a mistake with the settings!

To Reproduce

  1. I include an image in org as shown below, this also allows for toggling display of images inline with C-c C-x C-v,
  #+caption: Museum of Curiosities (Source: Ole Worm creator QS:P170,Q463570 (https://commons.wikimedia.org/wiki/File:Museum_Wormiani_Historia_1655_Wellcome_L0000128.jpg), https://creativecommons.org/licenses/by/4.0/legalcode)
  #+name: MoC
  #+attr_html:  width="500px" alt="Museum of Curiosities"
  #+attr_org:  :width 200px
   [[./images/Museum_Wormiani_Historia_1655_Wellcome_L0000128.jpg]]
  1. Launch org-roam-ui with M-x org-roam-ui-mode
  2. Inspect the page in both Firefox and Chrome (version details below)
  3. As shown in the screenshot below, the alt-text is not setup as required and neither are the width of the image

Expected behavior Alt text to be set to "Museum of Curiosities" and width set to "500px"

Screenshots orgroamui-screenshit

What browser were you using? Firefox (104.0.2 (64-bit)) & Chrome (Version 105.0.5195.102 (Official Build, ungoogled-chromium) (64-bit))

5uie avatar Sep 13 '22 16:09 5uie

i might update this soon, nextjs has a new image component that makes this a lot easier than it used to be

tefkah avatar Sep 20 '22 13:09 tefkah

Thank you, will wait for the update :-)

5uie avatar Sep 21 '22 06:09 5uie