Skip to content

Explicitly define crop focus#145

Merged
riasvdv merged 5 commits intospatie:mainfrom
ncla:focal-crop-fix
Jul 20, 2022
Merged

Explicitly define crop focus#145
riasvdv merged 5 commits intospatie:mainfrom
ncla:focal-crop-fix

Conversation

@ncla
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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