Skip to content

net/http #5

Closed
Closed

Description

@xyproto

Hi,

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!

Activity

  1. peterhellberg commented on May 28, 2026

    @peterhellberg
    Owner

    @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.

    I documented some breaking changes in #6

  2. xyproto commented on May 28, 2026

    @xyproto
    ContributorAuthor

    Cool, thank you. I'll give the new changes a spin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions