use 512px width

This commit is contained in:
Jonas Leder 2022-05-01 12:56:34 +02:00
parent ffc750c405
commit 0e0ca76afb
No known key found for this signature in database
GPG key ID: CC3C488E27DFF5CA

View file

@ -3,7 +3,7 @@
function imgproxy($imageURL) {
require "./lib/config.php";
$encodedUrl = rtrim(strtr(base64_encode($imageURL), '+/', '-_'), '=');
$path = "/rs:fit:0:120:1/g:no/{$encodedUrl}.webp";
$path = "/rs:fit:0:512:1/g:no/{$encodedUrl}.webp";
$signature = rtrim(strtr(base64_encode(hash_hmac('sha256', $imgProxySalt.$path, $imgProxyKey, true)), '+/', '-_'), '=');
return $imgProxyUrl . "/" . $signature . $path;