camlistore.org: camlistore.org/pkg/constants Index | Files

package constants

import "camlistore.org/pkg/constants"

Package constants contains Camlistore constants.

This is a leaf package, without dependencies.

Index

Package Files

constants.go

Constants

const DefaultMaxResizeMem = 256 << 20

DefaultMaxResizeMem is the default maximum number of bytes that will be allocated at peak for uncompressed pixel data while generating thumbnails or other resized images.

If a single image is larger than the configured size for an ImageHandler, we'll never successfully resize it. 256M is a max image of ~9.5kx9.5k*3.

const MaxBlobSize = 16 << 20

MaxBlobSize is the max size of a single blob in Camlistore, in bytes.

Package constants is imported by 134 packages. Updated 2018-01-20. Refresh now. Tools for package owners.