rest

package
v1.1.9-v20240401 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const MaxImageDim = 65_500

Theoretical max dimensions according to its respective specs:

BMP (uint32 in go/x/image/bmp): 4,294,967,295

GIF: 65,535

JPEG: 65,535 (65,500 for the libjpeg-turbo based software)

PNG: 4,294,967,295

TIFF (uint32 in go/x/image/tiff): 4,294,967,295

libjpeg-turbo max of 65,500 pixels appears to be a good limit for the other image formats, since all known image viewers are getting problems with image dimensions higher than this value, or even at values far smaller than this.

Variables

This section is empty.

Functions

func Convert

func Convert(w http.ResponseWriter, r *http.Request)

func Index

func Index(w http.ResponseWriter, r *http.Request)

func Live

func Live(w http.ResponseWriter, _ *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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