500px fix
This commit is contained in:
1 parent
3481829d7c
commit
9f637443a7
1 file changed
+2
-4
+2
-4
@@ -241,7 +241,7 @@ class fivehpx{
|
|||||||
|
|
||||||
$small = $this->image_ratio(600, $image["width"], $image["height"]);
|
$small = $this->image_ratio(600, $image["width"], $image["height"]);
|
||||||
//$large = $this->image_ratio(2048, $image["width"], $image["height"]);
|
//$large = $this->image_ratio(2048, $image["width"], $image["height"]);
|
||||||
$large = $this->image_ratio(3840, $image["width"], $image["height"]);
|
$large = $this->image_ratio(1024, $image["width"], $image["height"]);
|
||||||
|
|
||||||
// for some fuck ass reason the invalid signature error gives me the
|
// for some fuck ass reason the invalid signature error gives me the
|
||||||
// signature key they use, lol
|
// signature key they use, lol
|
||||||
@@ -265,9 +265,7 @@ class fivehpx{
|
|||||||
$expiry = time() + 3600;
|
$expiry = time() + 3600;
|
||||||
|
|
||||||
$images[] = [
|
$images[] = [
|
||||||
"url" =>
|
"url" => $image["urls"]["size_1024"],
|
||||||
"https://cdn-resize-prod-com.500px.cloud/photo/{$image_id[1]}/0.jpg?s=4&expiry={$expiry}&sig=" .
|
|
||||||
hash("sha256", "67gfdsgf!5uiyoi3fdsphoto/{$image_id[1]}/0.jpg4{$expiry}"),
|
|
||||||
"width" => $large[0] > $image["width"] ? $image["width"] : $large[0],
|
"width" => $large[0] > $image["width"] ? $image["width"] : $large[0],
|
||||||
"height" => $large[1] > $image["height"] ? $image["height"] : $large[1]
|
"height" => $large[1] > $image["height"] ? $image["height"] : $large[1]
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in new issue
Block a user