Closed jefftrull closed 4 weeks ago
Sorry, didn't notice the email. Definitely a will-fix.
I should have read your example a little better.
You need to enable the action on that heading. Not every action is on by default. You can add dslide-image-action
to dslide-default-actions
to make it on by default, but it might act up on other link types.
* Subheading with Image
:PROPERTIES:
:DSLIDE_ACTIONS: dslide-action-image
:END:
#+ATTR_ORG: width=50
[[some_image_here.png]]
Re-open if I have neglected something else :space_invader:
But that doesn't explain why it works if I don't use ATTR_ORG
, right? Without that the image shows up perfectly fine, no need for dslide-action-image
.
I feel like the fact that dslide normally shows my images, even though I have set no image actions, suggests that this is a valid issue. dslide only fails to show them when I have set ATTR_ORG
. So to me it seems unrelated to dslide actions.
It doesn't look like I have the power to reopen bugs in this repo, so I hope you will reconsider :)
I closed the issue because the reproduction is definitely missing an action. Without an action being used, whatever behavior we see is coincident to something else. Dslide won't touch the images if the action isn't running.
I'm not saying you're wrong that ideally nothing would change, but if there is a path of investigation that will lead somewhere, it's not straightforward, and the fix would be a workaround that doesn't do better than using an explicit action and also depends on some coincident external behavior remaining unchanged. Actions are the right way.
Under the hood, the image action will do basically the same thing as org-toggle-inline-images
. This just lets us have bare links while editing but pretty images while presenting without remembering to toggle all the time.
If
org-image-actual-width
is set tonil
users can provide a width attribute that will be used for image previews, permitting scaling to fit the text size etc. Unfortunately when this feature is used, dslide won't display the image at all.Repro: use the attached code. Evaluate the setup code block at the end. Supply your own image under "Subheading with Image". Now try running dslide with and without the
#+ATTR_ORG: width=50
. You should see that the image only appears when theATTR_ORG
line is not present.