-
Notifications
You must be signed in to change notification settings - Fork 5
Settings v1
Server settings can be customized in _butterfly/settings.py
directly. The following options are supported:
PORT = 2001
MAX_CACHE_SIZE = 1*1024*1024*1024 #1GB default maximum cache size
SUPPRESS_CONSOLE_OUTPUT = False
Default port, maximum cache size, and the ability to suppress all information and logs printed to console.
ASSENT_LIST = ('yes', 'y', 'true')
List for accepted query values that enable the optional flags.
####Resize settings
ALWAYS_SUBSAMPLE = True
IMAGE_RESIZE_METHOD = cv2.INTER_LINEAR
If ALWAYS_SUBSAMPLE
is on, subsampling will be used for all resizing calculations. This will greatly decrease time spent calculating different zoom levels, but results may look a little noisy.
For IMAGE_RESIZE_METHOD
, see the OpenCV documentation on [cv2.resize()](http://docs.opencv.org/modules/imgproc/doc/geometric_transformations.html#void resize(InputArray src, OutputArray dst, Size dsize, double fx, double fy, int interpolation)) for a list of possible options.
####Output settings
DEFAULT_OUTPUT = '.png'
SUPPORTED_IMAGE_FORMATS = ('png', 'jpg', 'jpeg', 'tiff', 'tif', 'bmp')
Default output format and supported output image formats - see the OpenCV documentation on [cv2.imread()](http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html#Mat imread(const string& filename, int flags)) for a list of supported formats.
-
Home
- API
- OCP
- Data Formats
- Developers
- Harvard RC Cluster
- Keywords
- Testing
- VM
- AccessLayer
- API
- OCP
- QueryLayer
- ImageLayer
- HDF5
- New Formats
- DatabaseLayer
- Mongo
- CoreLayer
- Core
- CacheSource
- CacheTile