emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Link preview generation with new link preview property


From: Björn Bidar
Subject: Re: Link preview generation with new link preview property
Date: Sun, 29 Dec 2024 17:44:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Karthik Chikmagalur <karthikchikmagalur@gmail.com> writes:

>>>> ...
>>>> 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?

The width is set before the inline image is created. I'm not sure how
this should be handled. Is the with set when creating the inline image
Ihor?
If the width is set before the image is created how should it be handled
in
the preview image-data function?

> 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.

I agree with both but I'm not sure what should be done on this.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]