mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 15:41:37 -05:00
jupyter-org--image-result: Fix a few issues
* jupyter-org-client.el (jupyter-org--image-result): Be more stringent on checking the value of `org-image-actual-width`. `listp` returns t when passed nil, a valid value of `org-image-actual-width`. Use absolute filenames when calling `create-image`.
This commit is contained in:
parent
2992e24e57
commit
cb1efa4268
1 changed files with 4 additions and 2 deletions
|
@ -903,8 +903,10 @@ the image may still be added, see
|
|||
metadata
|
||||
(if (and (null width)
|
||||
jupyter-org-adjust-image-size
|
||||
(listp org-image-actual-width))
|
||||
(let ((image-width (car (image-size (create-image file) 'pixels))))
|
||||
(numberp (car-safe org-image-actual-width)))
|
||||
(let ((image-width (car (image-size
|
||||
(create-image (expand-file-name file))
|
||||
'pixels))))
|
||||
(if (< image-width (car org-image-actual-width))
|
||||
(setq width image-width))))
|
||||
(jupyter-org-image-link file width height))))
|
||||
|
|
Loading…
Add table
Reference in a new issue