Package img800x418 provides tools for working with images whose width and height are 800×418, for the Go programming language.
800x418 images are popular with what are something called "cards" or "link preview images".
I.e., the images used with OpenGraph "og:image"
, Twitter Card "twitter:image"
, and Farcaster Frames (i.e., Frame Protocol) "fc:frame:image"
.
Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-img800x418
Here is an example of creating an 800×418 image using package img800x418. In this particular example a paletted image is created.
import "github.com/reiver/go-img800x418"
// ...
img := img800x418.NewPaletted(palette)
To import package img800x418 use import
code like the follownig:
import "github.com/reiver/go-img800x418"
To install package img800x418 do the following:
GOPROXY=direct go get https://github.com/reiver/go-img800x418
Package img800x418 was written by Charles Iliya Krempeaux