charmbracelet / freeze

Generate images of code and terminal output 📸
MIT License
3.37k stars 58 forks source link

feat: add option to change default file output #11

Open bashbunni opened 8 months ago

bashbunni commented 8 months ago

When I'm using freeze for b-roll footage it has to be a png since many video editors don't accept svg file formats for graphics. To do this in freeze, I need to use the -o flag and specify the file name with a .png extension and that works fine. Would be great to be able to specify this in my config file though

prithvijj commented 6 months ago

Hey @bashbunni ,

Just curious, I tried to see if this works, and turns out it seems to use the output parameter, as specified in the configuration/base.json ,

pbj@pop-os:~/Github/freeze2$ go run ./... --execute "cat SECURITY.md"
 WROTE  cabbagecowboys.png

image

Was there anything that was missing in this issue or my understanding of the issue?