Skip to content
Snippets Groups Projects
Verified Commit 0e0ca76a authored by Jonas Leder's avatar Jonas Leder
Browse files

use 512px width

parent ffc750c4
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment