Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly define crop focus #145

Merged
merged 5 commits into from Jul 20, 2022
Merged

Explicitly define crop focus #145

merged 5 commits into from Jul 20, 2022

Conversation

ncla
Copy link
Collaborator

@ncla ncla commented Jul 6, 2022

Fixes #126.

I will file a bug report to statamic/cms repo too but meanwhile I think it does not hurt to generate URLs that explicitly define the crop focus. I think this is normal default behavior for images to be crop focused on this addon, if not they can override with glide:fit param or the statamic.assets.auto_crop config if they have not already.

I will ping you Rias once the PR is marked ready. :)

@ncla ncla marked this pull request as ready for review July 8, 2022 10:45
@ncla
Copy link
Collaborator Author

ncla commented Jul 8, 2022

OK, I am satisfied with this now, just wanted to find a way to test metadata reading from asset meta files. It is a bit quirky, when you upload a file through the asset container class, it generates image presets for control panel images, which triggers metadata hydration.

@riasvdv ready for you to check!

@riasvdv riasvdv merged commit 5767c25 into spatie:main Jul 20, 2022
@riasvdv
Copy link
Member

riasvdv commented Jul 20, 2022

Awesome! Thanks

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.

Image not regenerated when moving focal point
2 participants