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
core/modules/media/src/Plugin/media/Source
|
@ -130,12 +130,13 @@ class Image extends File {
|
|||
}
|
||||
|
||||
$uri = $file->getFileUri();
|
||||
$image = $this->imageFactory->get($uri);
|
||||
switch ($name) {
|
||||
case static::METADATA_ATTRIBUTE_WIDTH:
|
||||
$image = $this->imageFactory->get($uri);
|
||||
return $image->getWidth() ?: NULL;
|
||||
|
||||
case static::METADATA_ATTRIBUTE_HEIGHT:
|
||||
$image = $this->imageFactory->get($uri);
|
||||
return $image->getHeight() ?: NULL;
|
||||
|
||||
case 'thumbnail_uri':
|
||||
|
|
Loading…
Reference in New Issue