Rudolf Adamkovič <rud...@adamkovic.org> writes: >> [...] and :file-ext is not given? But how will you know the desired >> extension? > > Oh, I missed that. My local hack assumes `.svg', but that is not enough > for the general use case. > > Perhaps, we could save as `$BASENAME.out', detect the image format, and > then rename to `$BASENAME.svg', for example. If the file is not an > image, we leave it as `.out'. > > We can detect the image type with `image-type': > > (image-type "...-59b9176e65c9.svg") => svg
Why do you think that the output file is always an image? It may not be. It can be anything. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>