Default higher quality.
This commit is contained in:
parent
fcb95e9154
commit
97353efffb
@ -30,7 +30,7 @@ async def preview(req, path):
|
|||||||
"""Preview a file"""
|
"""Preview a file"""
|
||||||
maxsize = int(req.args.get("px", 1024))
|
maxsize = int(req.args.get("px", 1024))
|
||||||
maxzoom = float(req.args.get("zoom", 2.0))
|
maxzoom = float(req.args.get("zoom", 2.0))
|
||||||
quality = int(req.args.get("q", 40))
|
quality = int(req.args.get("q", 60))
|
||||||
rel = PurePosixPath(sanitize(unquote(path)))
|
rel = PurePosixPath(sanitize(unquote(path)))
|
||||||
path = config.config.path / rel
|
path = config.config.path / rel
|
||||||
stat = path.lstat()
|
stat = path.lstat()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user