photoengine

package
v0.8.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PhotoEngine

type PhotoEngine struct{ M *modules.Manager }

PhotoEngine reads what photos say about themselves through the WittyPhotos version in use, calls on its service (module API 5: read, dimensions, preview, each given the file's path). With none, a scan carries on and the photos have only what their files say on the outside. It is library.PhotoEngine.

func (PhotoEngine) Dimensions

func (p PhotoEngine) Dimensions(path string) (w, h int)

Dimensions reads a picture's size from its header.

func (PhotoEngine) IsRaw

func (p PhotoEngine) IsRaw(name string) bool

IsRaw knows the formats the version in use lists in its signed manifest, so scanning a folder never has to start a helper.

func (PhotoEngine) RawPreview

func (p PhotoEngine) RawPreview(path string) ([]byte, error)

RawPreview returns the JPEG a camera stored in a RAW file.

func (PhotoEngine) ReadFile

func (p PhotoEngine) ReadFile(path string) (*library.PhotoInfo, error)

ReadFile reads a photo's EXIF.

Jump to

Keyboard shortcuts

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