use new optimizer for thumbnails CDN

this should resolve the slow load times for some thumbnails
This commit is contained in:
Niko Storni 2021-06-28 22:02:34 +02:00 committed by jessopb
parent 04108f32d5
commit c5a63de33c
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ WELCOME_VERSION=1.0
# Custom Site info
DOMAIN=lbry.tv
URL=https://lbry.tv
THUMBNAIL_CDN_URL=https://image-optimizer.vanwanet.com/?address=
THUMBNAIL_CDN_URL=https://image-processor.vanwanet.com/optimize/
# UI
SITE_TITLE=lbry.tv

View file

@ -20,7 +20,7 @@ export function getThumbnailCdnUrl(props: Props) {
}
if (thumbnail && !thumbnail.includes('https://spee.ch')) {
return `${THUMBNAIL_CDN_URL}${thumbnail}&quality=${quality}&height=${height}&width=${width}`;
return `${THUMBNAIL_CDN_URL}s:${width}:${height}/quality:${quality}/plain/${thumbnail}`;
}
if (thumbnail && thumbnail.includes('https://spee.ch')) {