Re: [docs] [PATCH 2/5] Makefile: fix rsvg-convert --format capitalization

Quentin Schulz
2025-12-05T15:04:02Z

Hi Antonin,

On 12/5/25 3:51 PM, Antonin Godard via lists.yoctoproject.org wrote:
> On some versions of rsvg-convert, capitalized formats are unknown.
>
> For example on CentOS Stream 9:
>
> $ rsvg-convert --format=Png --output=ref-manual/svg/releases.png ref-manual/svg/releases.svg
> Unknown output format.
>
> While the same command with "png" runs fine.
>
> On Ubuntu 22.04, both are accepted.
>
> Switch to the un-capitalized options, compatible with all versions.
>

rsvg-convert doc only mentions all lowercase format options, so looks
fine to me

Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>

FYI, --format=pdf is a "moving" target, that is it isn't always the same
PDF version depending on rsvg-convert's own version. They mention it can
be an issue with some latexpdf versions only supporting older PDF
versions. See
https://github.com/GNOME/librsvg/blob/main/rsvg-convert.rst#pdf-versions

At least you're aware of it now, no idea if we should be doing something
about it. I guess we could try to be smart and detect the max PDF
version supported by latexmk at runtime and select the pdf version for
rsvg-convert based on that.

Thanks!
Quentin