From c5a63de33c479bef17483313115644d0c5367dbe Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Mon, 28 Jun 2021 22:02:34 +0200 Subject: [PATCH] use new optimizer for thumbnails CDN this should resolve the slow load times for some thumbnails --- .env.defaults | 2 +- ui/util/thumbnail.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.defaults b/.env.defaults index c7f381eaa..4106f95c5 100644 --- a/.env.defaults +++ b/.env.defaults @@ -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 diff --git a/ui/util/thumbnail.js b/ui/util/thumbnail.js index f2edf9477..c35baba1c 100644 --- a/ui/util/thumbnail.js +++ b/ui/util/thumbnail.js @@ -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')) {