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

Render image using focal point #30

Open
talebbits opened this issue Sep 3, 2019 · 0 comments
Open

Render image using focal point #30

talebbits opened this issue Sep 3, 2019 · 0 comments

Comments

@talebbits
Copy link

Wagtail admin has option to set focal point part image we can render different sized image using this focal point.

Sample response from wagtail

image{
        url
        focalPointX
        focalPointY
        focalPointWidth
        focalPointHeight
        width
        height
      }

Helpfull info

https://css-tricks.com/focusing-background-image-precise-location-percentages/
https://github.com/wagtail/wagtail/blob/d3b8bcb68987cfddf2686f754932ba967745d3f7/wagtail/images/image_operations.py#L65

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

No branches or pull requests

3 participants