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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($PostMedia->mimetype->type == 'image') {
|
if ($PostMedia->mimetype->type == 'image' || $PostMedia->preview) {
|
||||||
$preview_size = $PostMedia->width > $PostMedia->height ? Proxy::SIZE_MEDIUM : Proxy::SIZE_LARGE;
|
$preview_size = Proxy::SIZE_MEDIUM;
|
||||||
$preview_url = DI::baseUrl() . $PostMedia->getPreviewPath($preview_size);
|
|
||||||
} elseif ($PostMedia->preview) {
|
|
||||||
$preview_size = Proxy::SIZE_LARGE;
|
|
||||||
$preview_url = DI::baseUrl() . $PostMedia->getPreviewPath($preview_size);
|
$preview_url = DI::baseUrl() . $PostMedia->getPreviewPath($preview_size);
|
||||||
} else {
|
} else {
|
||||||
$preview_size = 0;
|
$preview_size = 0;
|
||||||
|
|
Loading…
Reference in a new issue