Home Download Docs Code Community
     1	/*
     2	Copyright 2014 the Perkeep authors.
     3	
     4	Licensed under the Apache License, Version 2.0 (the "License");
     5	you may not use this file except in compliance with the License.
     6	You may obtain a copy of the License at
     7	
     8	     http://www.apache.org/licenses/LICENSE-2.0
     9	
    10	Unless required by applicable law or agreed to in writing, software
    11	distributed under the License is distributed on an "AS IS" BASIS,
    12	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13	See the License for the specific language governing permissions and
    14	limitations under the License.
    15	*/
    16	
    17	// Package constants contains Perkeep constants.
    18	//
    19	// This is a leaf package, without dependencies.
    20	package constants // import "perkeep.org/pkg/constants"
    21	
    22	// MaxBlobSize is the max size of a single blob in Perkeep, in bytes.
    23	const MaxBlobSize = 16 << 20
    24	
    25	// DefaultMaxResizeMem is the default maximum number of bytes that
    26	// will be allocated at peak for uncompressed pixel data while
    27	// generating thumbnails or other resized images.
    28	//
    29	// If a single image is larger than the configured size for an
    30	// ImageHandler, we'll never successfully resize it.  256M is a max
    31	// image of ~9.5kx9.5k*3.
    32	const DefaultMaxResizeMem = 256 << 20
Website layout inspired by memcached.
Content by the authors.