Hacker News new | ask | show | jobs
by vsnf 1587 days ago
> It has image/jpeg for some unknown reason.

I don't know why they added this and the other image packages specifically, but I used this the other day and it was nice to not have to bring in a separate package.

1 comments

I mean, they realized their mistake for other image formats, hence: golang.org/x/image: https://pkg.go.dev/golang.org/x/image

Now it's really confusing to have to figure out to import stdlib image for jpeg, but x/image for bmp.

For bonus points, check out "image/draw" vs "golang.org/x/image/draw".