mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
jupyter-org-prepare-result: Use the right JPEG mimetype.
* jupyter-org-client.el (jupyter-org-prepare-result): Replace :image/jpg with :image/jpeg.
This commit is contained in:
parent
5b65eb4f24
commit
88c126ffe1
1 changed files with 3 additions and 3 deletions
|
@ -309,17 +309,17 @@ an \"EXPORT markdown\" block. See `org-babel-insert-result'."
|
|||
(cons (unless (member "raw" result-params) "latex")
|
||||
(plist-get data :text/latex)))
|
||||
((setq itype (cl-find-if (lambda (x) (memq x '(:image/png
|
||||
:image/jpg
|
||||
:image/jpeg
|
||||
:image/svg+xml)))
|
||||
mimetypes))
|
||||
(let* ((data (plist-get data itype))
|
||||
(overwrite (not (null (alist-get :file params))))
|
||||
(encoded (memq itype '(:image/png :image/jpg)))
|
||||
(encoded (memq itype '(:image/png :image/jpeg)))
|
||||
(file (or (alist-get :file params)
|
||||
(jupyter-org-image-file-name
|
||||
data (cl-case itype
|
||||
(:image/png "png")
|
||||
(:image/jpg "jpg")
|
||||
(:image/jpeg "jpg")
|
||||
(:image/svg+xml "svg"))))))
|
||||
(jupyter-org--image-result data file overwrite encoded)))
|
||||
((memq :text/plain mimetypes)
|
||||
|
|
Loading…
Add table
Reference in a new issue