Skip to main content

imageutils

函数名函数描述/介绍
imageutils.ExtractImageExtractImage extracts images from various input types, such as io.Reader, []byte, or string.
imageutils.ExtractImageFromFileExtractImageFromFile extract images from a file path, we can handle some video formats, PDF, and other files that may contain images.
imageutils.context

函数定义#

ExtractImage#

详细描述#

ExtractImage extracts images from various input types, such as io.Reader, []byte, or string.

定义#

ExtractImage(i any) chan *ImageResult

参数#

参数名参数类型参数解释
iany

返回值#

返回值(顺序)返回值类型返回值解释
r1chan *ImageResult

ExtractImageFromFile#

详细描述#

ExtractImageFromFile extract images from a file path, we can handle some video formats, PDF, and other files that may contain images.

定义#

ExtractImageFromFile(filePath string, options ...ImageExtractorOption) (chan *ImageResult, error)

参数#

参数名参数类型参数解释
filePathstring
options...ImageExtractorOption

返回值#

返回值(顺序)返回值类型返回值解释
r1chan *ImageResult
r2error

context#

详细描述#

定义#

context(ctx context.Context) ImageExtractorOption

参数#

参数名参数类型参数解释
ctxcontext.Context

返回值#

返回值(顺序)返回值类型返回值解释
r1ImageExtractorOption