Documentation
¶
Index ¶
- func ConvertToASCII(img image.Image) string
- func ConvertToPaletted(img image.Image) *image.Paletted
- func DecodeImage(imageData []byte) (*image.Image, error)
- func PrintImage(img *image.Image, filename string, imageSize int64, forceASCII bool) error
- func PrintImageFile(imageFileName string, forceASCII bool) error
- func PrintImageURL(imageURL string, forceASCII bool) error
- func TermSize() (rows, columns, pixelWith, pixelHeight uint16)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToASCII ¶ added in v0.0.7
ASCII art conversion
func ConvertToPaletted ¶ added in v0.0.7
ConvertToPaletted converts an image.Image to an image.Paletted Needed for Sixel conversion
func PrintImage ¶
func PrintImageFile ¶
func PrintImageURL ¶
func TermSize ¶
func TermSize() (rows, columns, pixelWith, pixelHeight uint16)
TermSize returns the size of the terminal in rows and columns, as well as the pixel width and height. The latter might not be supported on all terminals. If the terminal size cannot be determined, it returns (0, 0, 0, 0).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.