Issue #3215198 by phma: Thumbnail updates read width and height from source image on save even if queued
(cherry picked from commit 9edbbe5a04
)
merge-requests/803/head
parent
a669b983cc
commit
e396c255f5
|
@ -130,12 +130,13 @@ class Image extends File {
|
||||||
}
|
}
|
||||||
|
|
||||||
$uri = $file->getFileUri();
|
$uri = $file->getFileUri();
|
||||||
$image = $this->imageFactory->get($uri);
|
|
||||||
switch ($name) {
|
switch ($name) {
|
||||||
case static::METADATA_ATTRIBUTE_WIDTH:
|
case static::METADATA_ATTRIBUTE_WIDTH:
|
||||||
|
$image = $this->imageFactory->get($uri);
|
||||||
return $image->getWidth() ?: NULL;
|
return $image->getWidth() ?: NULL;
|
||||||
|
|
||||||
case static::METADATA_ATTRIBUTE_HEIGHT:
|
case static::METADATA_ATTRIBUTE_HEIGHT:
|
||||||
|
$image = $this->imageFactory->get($uri);
|
||||||
return $image->getHeight() ?: NULL;
|
return $image->getHeight() ?: NULL;
|
||||||
|
|
||||||
case 'thumbnail_uri':
|
case 'thumbnail_uri':
|
||||||
|
|
Loading…
Reference in New Issue