We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As shown in the image above using this simple code snippet below quite a bit of extra whitespace is added making it impossible to use inline
func SixelEncode(url string, width uint) string { // download the image resp, err := http.Get(url) if err != nil { log.Error("erroring getting image", "err", err) return "" } defer resp.Body.Close() // decode the image img, _, err := image.Decode(resp.Body) if err != nil { log.Error("erroring decoding image", "err", err) return "" } // resize image m := resize.Resize(width, 0, img, resize.NearestNeighbor) // encode the image as sixel and print to stdout var buf bytes.Buffer sixel.NewEncoder(&buf).Encode(m) result := buf.String() fmt.Println(result + "lol") return result }
The text was updated successfully, but these errors were encountered:
As shown here it is possible to have inline sixels
Sorry, something went wrong.
No branches or pull requests
As shown in the image above using this simple code snippet below quite a bit of extra whitespace is added making it impossible to use inline
The text was updated successfully, but these errors were encountered: