Closed twrichards closed 2 months ago
Seen on kahuna (merged by @twrichards 7 minutes and 30 seconds ago) Please check your changes!
Seen on auth, image-loader, thrall, media-api (merged by @twrichards 7 minutes and 35 seconds ago) Please check your changes!
Seen on collections, cropper (merged by @twrichards 7 minutes and 38 seconds ago) Please check your changes!
Seen on leases (merged by @twrichards 7 minutes and 42 seconds ago) Please check your changes!
Seen on metadata-editor (merged by @twrichards 7 minutes and 49 seconds ago) Please check your changes!
In some cases 5:3 crops need to be used in 5:4 spaces, and currently the sides are clipped off by platforms, sometimes undesirably.
What does this change?
This PR aims to reduce the likelihood that images displayed this way will need recropping, by presenting striped gutters on the left/right for landscape 5:3 crops. With explainer to suggest, not having anything important in the striped gutters when cropping 5:3 in anticipation of it being used in 5:4 space.
This is implemented using
## Images ### 5:3 ![image](https://github.com/user-attachments/assets/bcfeef30-20a6-4f7b-9187-57870465dec5) ### other ratios (e.g. 1:1 square crop) note how there are no striped gutters / explainer ![image](https://github.com/user-attachments/assets/5cd5a27b-9e5e-41dc-8fc3-2289677e50ba) ### feature switch to enable Using the lovely feature switch panel added in #3964 - Ctrl + Shift + F12 to activate the feature switch panel... ![image](https://github.com/user-attachments/assets/27493646-3ae9-4795-ba0c-4f1b0dd8f288)::before
and::after
CSS pseudo elements as this seemed the most pragmatic rather than attempting to do 'officially' via jcrop (might have needed a major upgrade to accomplish) and the CSS selectors used seem sufficiently stable/simple.How can success be measured?
We mitigate the need for more major efforts to support the 5:4 use case.
Tested? Documented?