Document supported image file formats
We should document which file formats are supported for the stylix.image option.
I think the easiest way to make this guarantee would be to say that we support everything which magick convert can take as an input, and then ensure that each module uses magick convert before passing the image to the target application.
It would be good to also keep this conversion logic in a central module, to ensure that magick convert is only run once for each output file format.
It would be good to also keep this conversion logic in a central module, to ensure that
magick convertis only run once for each output file format.
This could be added to the image option's apply function:
https://github.com/nix-community/stylix/blob/f6c5aaa4f8b70ec0bf995be43311c38be3131776/stylix/palette.nix#L31-L43
True, although it would need to provide access to more than one output file type, so we'd have to do that in a way which doesn't break existing usage of the option value. For example, by providing a derivation with a default file type, and providing alternative file types under passthru.