Skip to content

Conversation

@federicobadini
Copy link

RFC: https://github.com/iFixit/strapi-rfcs/blob/main/rfcs/xxxx-focal-point.md
Diff: strapi/strapi@main...iFixit:strapi:main

Scenario Image
Focal point mode trigger Screenshot 2023-11-08 at 17 48 45
Focal point selection Screenshot 2023-11-08 at 17 49 03
Focal point selected Screenshot 2023-11-08 at 17 49 18

@strapi-cla
Copy link

strapi-cla commented Nov 8, 2023

CLA assistant check
All committers have signed the CLA.

@MihaiSandor
Copy link

MihaiSandor commented Jan 13, 2026

Hi everyone, @federicobadini thanks for putting this RFC together.

CC @Bassel17 @derrickmehaffy @alexandrebodin @pierreburgy

+1 from me. Our company needs this feature in production and it is becoming a release level blocker for us. We have content heavy properties where the same image is reused across many breakpoints and placements like hero banners, cards, and social previews. Without a focal point or safe area per asset, the generated crops often cut off the subject and editors are forced to re upload multiple pre cropped variants, which does not scale and creates a messy asset library.

If possible, we would really like to see this included in the next release cycle. Even a first version that supports setting a focal point on the asset and having image transformations respect it would immediately unlock a lot for teams like ours.

@douwepausma
Copy link

This would be huge, we desperately need this feature. Our content-type schemas will otherwise be cluttered with fields to select focal point.

Schero94 added a commit to Schero94/strapi that referenced this pull request Jan 27, 2026
This feature allows users to set a focal point on images directly from the
media gallery. The focal point coordinates are stored as percentage values
(x, y) and can be used by frontend applications to intelligently crop images
while preserving the most important part of the image.

Changes:
- Add focalPoint field to file schema (JSON type with x, y coordinates)
- Add FocalPointActions component for confirm/cancel actions
- Add styled components for focal point UI (aim marker, halo)
- Update PreviewBox to handle focal point selection via click
- Update EditAssetContent to manage focal point state and display
- Add validation schemas for focal point (0-100 range)
- Update upload service to persist focal point data
- Add translations for focal point UI elements

Based on RFC: strapi/rfcs#58
@Schero94
Copy link

@douwepausma @MihaiSandor only review required ;)

@pierreburgy
Copy link
Member

Sorry everyone for the late reply. Thank you @Schero94 for this amazing contribution!

@federicobadini
Copy link
Author

Great to see this feature moving closer to Strapi core — and thanks to @Schero94 for picking this up and delivering an updated PR based on the original proposal.

One small note: we’re not sure the current contribution guidelines still match how the process works in practice. We went through the RFC route two years ago, but it didn’t lead to any discussion or follow-up. Since the guidelines still present RFCs as the recommended path for changes that impact core or all users, a bit of clarification could help future contributors avoid that path if that's no more the way to go.
There is an open issue to clarify the point: strapi/strapi#25061

Looking forward to seeing this land! 🎯

@Schero94
Copy link

@federicobadini tbh i didn't pick it, i asked @pierreburgy and i asked him, give me something to do this was one idea of him, so i said well let's do it!

😁

@pierreburgy
Copy link
Member

@federicobadini I must admit we've haven't always led by example when it comes to community contributions (including pull requests reviews). The size of our team is limited but, as mentioned here, we want to do more with the community this year.

@Schero94 you deserve all credits :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants