Description
Under a Craft Cloud environment the Asset Image Editor fails to load properly and throws the following errors in the web browser developer console:
AssetImageEditor.js:322 Uncaught TypeError: e.image.getHeight is not a function
AssetImageEditor.js:515 Uncaught TypeError: Cannot read properties of null (reading 'width')
AssetImageEditor.js:515 Uncaught TypeError: Cannot read properties of null (reading 'width')
This causes either the image to partially load or not load at all in the editor with a spinner.
The same asset can be edited on a local development environment that isn't Craft Cloud without any issues.
Possibly related to the recent Image transformer changes with Cloudflare.
Steps to reproduce
- Select an asset under Craft Cloud storage on a Craft Cloud environment
- Hover over the thumb image preview for the Edit Image option
- The Asset Image Editor modal will open but throw JavaScript errors related to the asset regard the width property.
Possibly also related CLOUD-637
Additional info
craftcms/cms version: 5.9.20
craftcms/cloud version: 3.0.9
- PHP version: 8.4
- Database driver & version: MySQL
Description
Under a Craft Cloud environment the Asset Image Editor fails to load properly and throws the following errors in the web browser developer console:
This causes either the image to partially load or not load at all in the editor with a spinner.
The same asset can be edited on a local development environment that isn't Craft Cloud without any issues.
Possibly related to the recent Image transformer changes with Cloudflare.
Steps to reproduce
Possibly also related CLOUD-637
Additional info
craftcms/cmsversion: 5.9.20craftcms/cloudversion: 3.0.9