Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F35688608
thumbor config from beta
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
dom_walden
Nov 1 2022, 10:20 AM
2022-11-01 10:20:59 (UTC+0)
Size
5 KB
Referenced Files
None
Subscribers
None
thumbor config from beta
View Options
APP_CLASS='tc_core.app.App'
EXIFTOOL_PATH = '/usr/bin/exiftool'
SUBPROCESS_TIMEOUT_PATH = '/usr/bin/timeout'
RSVG_CONVERT_PATH = '/usr/bin/rsvg-convert'
FFPROBE_PATH = '/usr/bin/ffprobe'
XCF2PNG_PATH = '/usr/bin/xcf2png'
DDJVU_PATH = '/usr/bin/ddjvu'
GHOSTSCRIPT_PATH = '/usr/bin/gs'
VIPS_PATH = '/usr/bin/vips'
CONVERT_PATH = '/usr/bin/convert'
XVFB_RUN_PATH = '/usr/bin/xvfb-run'
CWEBP_PATH = '/usr/bin/cwebp'
## Quality index used for generated JPEG images
## Defaults to: 80
QUALITY = 87
## Exports JPEG images with the `progressive` flag set.
## Defaults to: True
PROGRESSIVE_JPEG = False
## Max AGE sent as a header for the image served by thumbor in seconds
## Defaults to: 86400
MAX_AGE = None
## Indicates whether thumbor should rotate images that have an Orientation EXIF
## header
## Defaults to: False
RESPECT_ORIENTATION = True
## Preserves exif information in generated images. Increases image size in
## kbytes, use with caution.
## Defaults to: False
PRESERVE_EXIF_INFO = True
## The metrics backend thumbor should use to measure internal actions. This must
## be the full name of a python module (python must be able to import it)
## Defaults to: thumbor.metrics.logger_metrics
METRICS = 'thumbor.metrics.statsd_metrics'
## The file storage thumbor should use to store original images. This must be the
## full name of a python module (python must be able to import it)
## Defaults to: thumbor.storages.file_storage
STORAGE = 'thumbor.storages.no_storage'
## The imaging engine thumbor should use to perform image operations. This must
## be the full name of a python module (python must be able to import it)
## Defaults to: thumbor.engines.pil
ENGINE = 'wikimedia_thumbor.engine.proxy'
## Indicates if the /unsafe URL should be available
## Defaults to: True
# ALLOW_UNSAFE_URL = False
## The maximum number of seconds libcurl can take to download an image
## Defaults to: 20
HTTP_LOADER_REQUEST_TIMEOUT = 300
## Max size in Kb for images uploaded to thumbor
## Aliases: MAX_SIZE
## Defaults to: 0
UPLOAD_MAX_SIZE = 1048576 # 1GB
## Path for the jpegtran binary
## Defaults to: /usr/bin/jpegtran
JPEGTRAN_PATH = '/usr/bin/jpegtran'
## Path for the ffmpeg binary used to generate gifv(h.264)
## Defaults to: /usr/local/bin/ffmpeg
FFMPEG_PATH = '/usr/bin/ffmpeg'
## List of filters that thumbor will allow to be used in generated images. All of
## them must be full names of python modules (python must be able to import
## it)
## Defaults to: ['thumbor.filters.brightness', 'thumbor.filters.colorize', 'thumbor.filters.contrast', 'thumbor.filters.rgb', 'thumbor.filters.round_corner', 'thumbor.filters.quality', 'thumbor.filters.noise', 'thumbor.filters.watermark', 'thumbor.filters.equalize', 'thumbor.filters.fill', 'thumbor.filters.sharpen', 'thumbor.filters.strip_icc', 'thumbor.filters.frame', 'thumbor.filters.grayscale', 'thumbor.filters.rotate', 'thumbor.filters.format', 'thumbor.filters.max_bytes', 'thumbor.filters.convolution', 'thumbor.filters.blur', 'thumbor.filters.extract_focal', 'thumbor.filters.no_upscale', 'thumbor.filters.saturation', 'thumbor.filters.max_age', 'thumbor.filters.curve']
FILTERS = [
'wikimedia_thumbor.filter.conditional_sharpen',
'wikimedia_thumbor.filter.lang',
'wikimedia_thumbor.filter.page',
'thumbor.filters.format',
'thumbor.filters.quality'
]
################################### Wikimedia ##################################
EXIF_FIELDS_TO_KEEP = [ 'Artist', 'Copyright', 'ImageDescription' ]
EXIF_TINYRGB_PATH = '/usr/local/lib/thumbor/tinyrgb.icc'
EXIF_TINYRGB_ICC_REPLACE = 'sRGB IEC61966-2.1'
PROXY_ENGINE_ENGINES = [
('wikimedia_thumbor.engine.svg', ['svg']),
('wikimedia_thumbor.engine.stl', ['stl']),
('wikimedia_thumbor.engine.xcf', ['xcf']),
('wikimedia_thumbor.engine.djvu', ['djvu']),
('wikimedia_thumbor.engine.vips', ['tiff', 'png']),
('wikimedia_thumbor.engine.tiff', ['tiff']),
('wikimedia_thumbor.engine.ghostscript', ['pdf']),
('wikimedia_thumbor.engine.gif', ['gif']),
('wikimedia_thumbor.engine.imagemagick', ['jpg', 'png', 'webp']),
]
HTTP_LOADER_MAX_BODY_SIZE = 4*1024*1024*1024 # 4GB
PROXY_LOADER_LOADERS = [
'wikimedia_thumbor.loader.video',
'wikimedia_thumbor.loader.swift'
]
COMMUNITY_EXTENSIONS = [
'wikimedia_thumbor.handler.images',
'wikimedia_thumbor.handler.core',
'wikimedia_thumbor.handler.healthcheck'
]
SLOW_PROCESSING_LIMIT = 30000
SUBPROCESS_USE_TIMEOUT = True
# The Varnish slow log currently uses 60s as its threshold. This helps
# avoiding hitting the slow log for expected subprocess timeout situations.
SUBPROCESS_TIMEOUT = 59
VIPS_ENGINE_MIN_PIXELS = 10000000
CHROMA_SUBSAMPLING = '4:2:0'
QUALITY_LOW = 40
DEFAULT_FILTERS_JPEG = 'conditional_sharpen(0.0,0.8,1.0,0.0,0.85)'
LOADER_EXCERPT_LENGTH = 4096
# 2 minutes, for situations where an engine failed to clean up after itself
HTTP_LOADER_TEMP_FILE_TIMEOUT = 120
MANHOLE_DEBUGGING = True
# Overrides the community core class in order to install manhole
APP_CLASS = 'wikimedia_thumbor.app.App'
THREED2PNG_PATH = '/srv/deployment/3d2png/deploy/src/3d2png.js'
# Animated GIFs greater than 100MP render as the first frame only
MAX_ANIMATED_GIF_AREA = 100000000
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9862041
Default Alt Text
thumbor config from beta (5 KB)
Attached To
Mode
P37284 thumbor config from beta
Attached
Detach File
Event Timeline
Log In to Comment