diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2015-12-31 15:20:27 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-01-08 20:38:18 +0100 |
commit | 8378a89bbd5b54d8efb064581725a765fb54740a (patch) | |
tree | 58434b1673920fcc77080f2ce34f17e1a0879c04 /mediabrowser/__init__.py | |
parent | 5b7326d3a5e35a1f80277b6062d14f0b7a30b0e0 (diff) | |
download | flask-mediabrowser-8378a89bbd5b54d8efb064581725a765fb54740a.tar.gz flask-mediabrowser-8378a89bbd5b54d8efb064581725a765fb54740a.zip |
replace ffmpegthumbnailer with call to ffmpeg directly
set resolution to x480 instead of x360
Diffstat (limited to 'mediabrowser/__init__.py')
-rw-r--r-- | mediabrowser/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mediabrowser/__init__.py b/mediabrowser/__init__.py index 855c3e0..6927205 100644 --- a/mediabrowser/__init__.py +++ b/mediabrowser/__init__.py @@ -140,8 +140,8 @@ def build(root_directory, cache): if client_mtime is not None and mtime <= client_mtime: return Response(status=304) else: - process = ffmpeg.thumbnail_png(ospath, 64) - r = Response(process.stdout, mimetype="image/png") + process = ffmpeg.thumbnail(ospath, 90, 50) + r = Response(process.stdout, mimetype="image/jpeg") r.last_modified = mtime return r |