Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martin Rud 162 posts 586 karma points c-trib
    Dec 10, 2020 @ 06:45
    Martin Rud
    0

    Image processor: How to make focal point take effect when calling myimage.jpg?anchor=center&mode=crop&width=xxx&height=yyy?

    I have a site where image src´s are inserted on the fly by JavaScript (to ensure images have the exact dimensions needed). Therefore image src´s are not known by backend code and therefore I call images urls this way:

    myimage.jpg?anchor=center&mode=crop&width=xxx&height=yyy
    

    My problem is: How do I build up the url so it takes the focal point set by editor in backend into account?

    Does something like this work?

    myimage.jpg?anchor=center&mode=crop&width=500&height=200&focal=-30,-20 
    

    where "focal=-30,-20" tells where to place focus according to the image center?

Please Sign in or register to post replies

Write your reply to:

Draft