convert

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 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 CheckPreview

type CheckPreview interface {
	Check(typ types_.FileType, size_px int) error
}

проверка валидности запрашиваемой превьюхи

type CheckSource

type CheckSource interface {
	Check(original storage_.StorageOBJ, originalSVG bool, thumb_size int) error
}

проверка валидности исходника для нарезания превьюхи

type Converter

type Converter struct {
	L            logger_.Logger
	Converters   []converter_.ConverterTyp
	CheckPreview CheckPreview
	CheckSource  CheckSource
}

конвертирование исходного изображения нужную превьюшку

func (*Converter) Do

func (c *Converter) Do(
	source, save storage_.StorageOBJ,
	originalSVG bool,
	typThumb types_.FileType,
	size_px int,
) (
	err error,
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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