- π©πͺGermany Emil Stoianov
This is still an issue in D9.5
Images displayed with a scale effect, in the image style configuration, do not have dimensions displayed in the image tag
Trying to get those in a preprocess function$image = \Drupal::service('image.factory')->get(DRUPAL_ROOT . $variables['img_element']['#uri']); $width = $image->getWidth();
Which also has it empty.