>>> ...
>>> Considering this, it might be better to just split
>>> `org-link-preview-file' into two public functions, where the "inside"
>>> function accepts an image instead of a file.
>>
>> Agree.
>> Would you be interested to create a patch?
>
> Did you think of something like this?

It looks like you are respecting the alignment specifications, set via
org-image-align or the :align property of #+attr_*, but not the :width
property.  Is the idea that the preview implementation that provides the
image should independently use org-display-inline-image--width?

At minimum this requires making org-display-inline-image--width a public
function.  But it would be good for org-link-preview-image-data to
respect both properties.

Karthik

Reply via email to