tazjin / nixery

Container registry which transparently builds images using the Nix package manager. Canonical repository is https://cs.tvl.fyi/depot/-/tree/tools/nixery
https://nixery.dev/
Apache License 2.0
1.82k stars 68 forks source link

`imagemagick` commands dont work because of misconfigured `fontconfig` #134

Open xeijin opened 3 years ago

xeijin commented 3 years ago

Hello,

I'm trying to convert a few images with a nixery image containing imagemagick.

Using the image:

nixery.dev/shell/coreutils/gnutar/gnumake/tree/fontconfig/libcap/go/gcc/imagemagick/pngquant/librsvg

When my script attempts to convert images using the imagemagick convert utility, I get the following errors:

converting... emacutor-color.svg
 -> PNG: 16x16
Fontconfig error: Cannot load default config file: No such file: (null)
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories

upon further inspection there doesnt appear to be anything in /etc/fonts, specifically the fonts.conf file that fontconfig is meant to generate.

jpetazzo commented 2 years ago

@xeijin I'm trying to reproduce this bug; but the SVG files that I have here seem to convert fine. Could you confirm that the bug still occurs for you, and provide an SVG file that exhibits the issue? Thank you!