mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:02:54 +00:00
Drop using the proxy large size for image preview
- It was causing blurry upscaling with portrait images that have a 640px size preview.
This commit is contained in:
parent
938b2bae23
commit
f19cd54195
1 changed files with 2 additions and 5 deletions
|
@ -3483,11 +3483,8 @@ class Item
|
|||
continue;
|
||||
}
|
||||
|
||||
if ($PostMedia->mimetype->type == 'image') {
|
||||
$preview_size = $PostMedia->width > $PostMedia->height ? Proxy::SIZE_MEDIUM : Proxy::SIZE_LARGE;
|
||||
$preview_url = DI::baseUrl() . $PostMedia->getPreviewPath($preview_size);
|
||||
} elseif ($PostMedia->preview) {
|
||||
$preview_size = Proxy::SIZE_LARGE;
|
||||
if ($PostMedia->mimetype->type == 'image' || $PostMedia->preview) {
|
||||
$preview_size = Proxy::SIZE_MEDIUM;
|
||||
$preview_url = DI::baseUrl() . $PostMedia->getPreviewPath($preview_size);
|
||||
} else {
|
||||
$preview_size = 0;
|
||||
|
|
Loading…
Reference in a new issue