Closed (fixed)
Project:
Crop API
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2025 at 17:01 UTC
Updated:
26 Nov 2025 at 02:19 UTC
Jump to comment: Most recent
\Drupal\crop\Entity\Crop::getEffectsFromImageStyleId uses a static property to try and avoid loading image styles over and over. However it is not having this effect when the loaded image style is null.
It's a quirk with XB and it's dynamic xb_parametrized_width image style. The image style ID comes over as xb_parametrized_width--{width}
xdebug the method, see it called over and over for the same image style

Set the static cache if image style is null
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2025-08-06 at 11.31.03 AM.png | 51.54 KB | mglaman |
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mglamanComment #4
mglamanComment #5
phenaproximaThis makes a ton of sense. Merge train started to 8.x-2.x, thanks!