mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-04 19:30:13 +00:00
fixed weird issue by forcing RGB vid thumbnail
This commit is contained in:
parent
7f6732422b
commit
227183189c
@ -125,7 +125,7 @@ class SearchHandler:
|
|||||||
new_height = width / 16 * 9
|
new_height = width / 16 * 9
|
||||||
offset = (height - new_height) / 2
|
offset = (height - new_height) / 2
|
||||||
img = img.crop((0, offset, width, height - offset))
|
img = img.crop((0, offset, width, height - offset))
|
||||||
img.save(cache_path)
|
img.convert("RGB").save(cache_path)
|
||||||
|
|
||||||
def cache_dl_chan(self, all_channels):
|
def cache_dl_chan(self, all_channels):
|
||||||
""" download channel thumbs """
|
""" download channel thumbs """
|
||||||
|
Loading…
Reference in New Issue
Block a user