Commit 220a1e7b authored by Balis Matzouranis's avatar Balis Matzouranis Committed by Julian Pustkuchen
Browse files

Issue #3132556 by Berdir, marassa, balis_m, Ollie222, Anybody: Do we need to...

Issue #3132556 by Berdir, marassa, balis_m, Ollie222, Anybody: Do we need to call the toolkit to get image dimensions from the file when they are available as image field attributes?
parent 575d6588
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -121,8 +121,8 @@ class ImageDTO {
    $this->uri = $this->item->entity->getFileUri();
    $this->entity = $variables['entity'];
    $this->setDimensions([
      ImageDTO::HEIGHT => $item->height,
      ImageDTO::WIDTH => $item->width,
      ImageDTO::HEIGHT => $this->item->height,
      ImageDTO::WIDTH => $this->item->width,
    ]);
  }