image

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
}

Parser implements a parser for image files

func New

func New() *Parser

New creates a new image parser

func (*Parser) Parse

func (p *Parser) Parse(ctx context.Context, r io.Reader) ([]core.Chunk, error)

Parse parses an image file and returns chunks with media data

func (*Parser) ParseWithCallback added in v0.6.0

func (p *Parser) ParseWithCallback(ctx context.Context, r io.Reader, callback func(core.Chunk) error) error

ParseWithCallback parses image and calls the callback for each chunk

func (*Parser) SupportedFormats

func (p *Parser) SupportedFormats() []string

SupportedFormats returns the list of supported image formats

Jump to

Keyboard shortcuts

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