use new optimizer for thumbnails CDN
this should resolve the slow load times for some thumbnails
This commit is contained in:
parent
04108f32d5
commit
c5a63de33c
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ WELCOME_VERSION=1.0
|
||||||
# Custom Site info
|
# Custom Site info
|
||||||
DOMAIN=lbry.tv
|
DOMAIN=lbry.tv
|
||||||
URL=https://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
|
# UI
|
||||||
SITE_TITLE=lbry.tv
|
SITE_TITLE=lbry.tv
|
||||||
|
|
|
@ -20,7 +20,7 @@ export function getThumbnailCdnUrl(props: Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (thumbnail && !thumbnail.includes('https://spee.ch')) {
|
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')) {
|
if (thumbnail && thumbnail.includes('https://spee.ch')) {
|
||||||
|
|
Loading…
Reference in a new issue