use webp instead of png for skills
This commit is contained in:
parent
8c5b68037a
commit
9abcba556c
|
@ -29,7 +29,7 @@ function getSkills() {
|
||||||
// Get the actual presigned-url
|
// Get the actual presigned-url
|
||||||
$downloadURL = (string) $presignedRequest->getUri();
|
$downloadURL = (string) $presignedRequest->getUri();
|
||||||
$encodedUrl = rtrim(strtr(base64_encode($downloadURL), '+/', '-_'), '=');
|
$encodedUrl = rtrim(strtr(base64_encode($downloadURL), '+/', '-_'), '=');
|
||||||
$path = "/rs:fit:0:80:1/g:no/{$encodedUrl}.png";
|
$path = "/rs:fit:0:80:1/g:no/{$encodedUrl}.webp";
|
||||||
|
|
||||||
$signature = rtrim(strtr(base64_encode(hash_hmac('sha256', $imgProxySalt.$path, $imgProxyKey, true)), '+/', '-_'), '=');
|
$signature = rtrim(strtr(base64_encode(hash_hmac('sha256', $imgProxySalt.$path, $imgProxyKey, true)), '+/', '-_'), '=');
|
||||||
array_push($response, $imgProxyUrl . "/" . $signature . $path);
|
array_push($response, $imgProxyUrl . "/" . $signature . $path);
|
||||||
|
|
Loading…
Reference in a new issue