Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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:
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?
where "focal=-30,-20" tells where to place focus according to the image center?
is working on a reply...