Autorotate effect slow performance

Created on 25 July 2025, 4 months ago

Problem/Motivation

The "autorotate" effect causes pages with a lot of images to load slowly.

#3213897: Autorotate effect does not update image dimensions introduced a fix for incorrect width and height attributes on autorotated images by examining the image file itself during ::transformDimensions(). This ends up causing pages with lots of images to render slowly.

My workaround is currently to cache the autorotate value for each image in Drupal::state() so the image doesn't have to be parsed each time. But maybe there's a cleaner solution?

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024