diff --git a/.env.defaults b/.env.defaults index 975646bac..8180434fc 100644 --- a/.env.defaults +++ b/.env.defaults @@ -14,6 +14,7 @@ WELCOME_VERSION=1.0 # Custom Site info DOMAIN=lbry.tv URL=https://lbry.tv +THUMBNAIL_CDN_URL=https://image-optimizer.vanwanet.com/?address= # UI SITE_TITLE=lbry.tv diff --git a/ui/component/fileThumbnail/view.jsx b/ui/component/fileThumbnail/view.jsx index 1d0bd9d91..a57a5243f 100644 --- a/ui/component/fileThumbnail/view.jsx +++ b/ui/component/fileThumbnail/view.jsx @@ -42,8 +42,12 @@ function FileThumbnail(props: Props) { // @if TARGET='web' // Pass image urls through a compression proxy if (thumbnail && THUMBNAIL_CDN_URL && !thumbnail.includes('https://spee.ch')) { - url = `${THUMBNAIL_CDN_URL}${thumbnail}`; + url = `${THUMBNAIL_CDN_URL}${thumbnail}&quality=75&height=288&width=512`; } + + // else if (thumbnail && thumbnail.includes('https://spee.ch')) { + // url = `${url}?height=512&width=288`; + // } // @endif return (