[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Generating the filename from name and file-ext for blocks with side-
From: |
Ihor Radchenko |
Subject: |
Re: Generating the filename from name and file-ext for blocks with side-effects |
Date: |
Fri, 27 Dec 2024 14:01:21 +0000 |
Rudolf Adamkovič <rudolf@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>
- Generating the filename from name and file-ext for blocks with side-effects, Aitenate, 2024/12/23
- Re: Generating the filename from name and file-ext for blocks with side-effects, Ihor Radchenko, 2024/12/25
- Re: Generating the filename from name and file-ext for blocks with side-effects, Aitenate, 2024/12/25
- Re: Generating the filename from name and file-ext for blocks with side-effects, Rudolf Adamkovič, 2024/12/26
- Re: Generating the filename from name and file-ext for blocks with side-effects, Ihor Radchenko, 2024/12/26
- Re: Generating the filename from name and file-ext for blocks with side-effects, Rudolf Adamkovič, 2024/12/27
- Re: Generating the filename from name and file-ext for blocks with side-effects,
Ihor Radchenko <=
- Re: Generating the filename from name and file-ext for blocks with side-effects, Rudolf Adamkovič, 2024/12/30
- Re: Generating the filename from name and file-ext for blocks with side-effects, Ihor Radchenko, 2024/12/31
- Re: Generating the filename from name and file-ext for blocks with side-effects, Ihor Radchenko, 2024/12/26