3 ms·
> 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 w
by vsnf 5y 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.
- TheDong 5y agoI mean, they realized their mistake for other image formats, hence: golang.org/x/image: https://pkg.go.dev/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".