image

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package image produces a Markdown manifest for an image response — type, dimensions, byte size, and filename — without inlining the pixels. Returning raw bytes is the MCP layer's opt-in job (include_bytes). Dimensions come from image.DecodeConfig, which reads only the header.

It does not import the HTML parser — dom keeps that monopoly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(raw []byte, u *url.URL, contentType string) (markdown, title string, err error)

Convert builds the image manifest. It never returns an error: an undecodable or unknown format simply yields a manifest without dimensions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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