You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When importing gfx in a Go project, it also drags along the net/http package, which significantly increases the size of resulting executables, even if net/http is not specifically used.
Could net/http please be removed from this package?
From a security point of view, I think that some users would also be happy that ie. utilities that uses this gfx does not need net/http (even though it's easy to audit that there is nothing questionable happening).
I forked the gfx package to avoid using net/http in both Orbiton and png2svg, only to reduce the executable size.
Thanks for considering the feature request, and thanks for creating the gfx package!
@xyproto Thank you for reaching out, I've spent the evening chipping away at a bunch of things in gfx in an attempt to modernize it a little bit. While doing so I extracted the HTTP related parts into its own sub package gfxhttp.
Activity
peterhellberg commentedon May 28, 2026
@xyproto Thank you for reaching out, I've spent the evening chipping away at a bunch of things in
gfxin an attempt to modernize it a little bit. While doing so I extracted the HTTP related parts into its own sub packagegfxhttp.I documented some breaking changes in #6
xyproto commentedon May 28, 2026
Cool, thank you. I'll give the new changes a spin.