tgimage

package
v0.0.0-...-c47d08d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(opts ...*Opt) tg.ImageModifier

Convert image to suit Telegram's standards.

func ConvertIfNeeded

func ConvertIfNeeded(opts ...*Opt) tg.ImageModifier

ConvertIfNeeded image only if Telegram does not support its type.

func ConvertIfTooBig

func ConvertIfTooBig(opts ...*Opt) tg.ImageModifier

ConvertIfTooBig tgimage only if it's too big to be a Telegram photo (10MB).

Types

type Opt

type Opt struct {
	Width      int
	Height     int
	HardResize bool
	Convert    string
	TempDir    string
	Quality    int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL