unblur

package
v0.0.0-...-8577a5a Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Prefix = "data:image/jpeg;base64,"
View Source
const ThumbSize = 45

Variables

View Source
var ErrHashUnavailable = httperr.New(404, "hash not available")
View Source
var JPEGOptions = &jpeg.Options{
	Quality: 65,
}

Functions

func InlineJPEG

func InlineJPEG(hash string, w, h int) (string, error)

func InlinePost

func InlinePost(p smolboard.Post) (string, error)

func MaxSize

func MaxSize(w, h, maxW, maxH int) (int, int)

from imgutil

Types

This section is empty.

Jump to

Keyboard shortcuts

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