charmbracelet / freeze

Generate images of code and terminal output 📸
MIT License
3.27k stars 55 forks source link

`freeze -x` cutting content (svg & png files) #34

Closed bashbunni closed 6 months ago

bashbunni commented 7 months ago

Hey, I was playing around with the -x flag and found a bug.

When I try and execute the lipgloss layout example without any extra configurations, the content gets cut off in unexpected ways

freeze.svg (created with freeze -x "go run ." image

lipgloss-classic.png (created with freeze -x "go run ." -o "lipgloss-classic.png") lipgloss-classic

maaslalani commented 6 months ago

@bashbunni This is now fixed with https://github.com/charmbracelet/freeze/commit/e5b73b7ee4964ae94b232a6990c54eeeb3fba1d8

I wasn't properly scaling the background of ANSI stuff