brownplt / code.pyret.org

Website for serving Pyret to folks.
Other
24 stars 44 forks source link

Attempting to trim chart output upon saving #500

Closed blerner closed 2 months ago

blerner commented 6 months ago

Uses https://gist.github.com/timdown/021d9c8f2aabc7092df564996f5afbbf to detect and eliminate transparent border pixels. Note that this only works when saving the original image -- if you close the chart display window, and then view the output image again, it'll have the transparent border pixels again, and right-click saving that image will not trim them away.

Before: image

After: chart