Dimitris Papastamos wrote: > Farbfeld is an intermediate format that is easy to parse and emit. Sent can > use pipe + fork + exec. This is similar to how tar handles compressed > archives. > > You will need the farbfeld tools somewhere in your PATH. The tools currently > handle conversion between png and ff but there is nothing stopping you from > also supporting jpg. This means that sent will also automatically work with > jpgs as well.
Heyho, actually that is exactly the plan. Have an array in config.h where you can specify how to convert any file format you want to the only one natively supported by sent. When reading an image from a @FILENAME line, sent will fork-exec the right tool to convert the input file to farbfeld format for display. Then you can even use ff images with whatever compression you like. Any improvements on this plan are welcome. --Markus