mirror of
https://github.com/friendica/friendica
synced 2025-04-26 23:10:11 +00:00
parse_url: Problem when resizing images
This commit is contained in:
parent
bfca7f47ef
commit
72f430ae58
2 changed files with 6 additions and 6 deletions
|
@ -147,11 +147,11 @@ function parseurl_getsiteinfo($url) {
|
|||
|
||||
if (($photodata[0] > 150) and ($photodata[1] > 150)) {
|
||||
if ($photodata[0] > 300) {
|
||||
$photodata[1] = $photodata[1] * (300 / $photodata[0]);
|
||||
$photodata[1] = round($photodata[1] * (300 / $photodata[0]));
|
||||
$photodata[0] = 300;
|
||||
}
|
||||
if ($photodata[1] > 300) {
|
||||
$photodata[0] = $photodata[0] * (300 / $photodata[1]);
|
||||
$photodata[0] = round($photodata[0] * (300 / $photodata[1]));
|
||||
$photodata[1] = 300;
|
||||
}
|
||||
$siteinfo["images"][] = array("src"=>$src,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue