Documentation
¶
Overview ¶
Package preview creates bounded, local previews for image formats that a client may not display directly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(ctx context.Context, root string, item library.Item, original io.Reader) (string, error)
Generate reads a verified WebP stream and returns the absolute path of a cached PNG preview. Non-WebP items do not need a preview and return an empty path. The original stream is never written or modified.
Types ¶
This section is empty.