You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jetpack's Photon module is a free image CDN that downloads a copy of each original image uploaded to a site, and creates resized versions on the fly for every use of the image on the site.
Jetpack's Photon module is a free image CDN that downloads a copy of each original image uploaded to a site, and creates resized versions on the fly for every use of the image on the site.
Here is a list of the different resize and crop parameters accepted by Photon:
https://developer.wordpress.com/docs/photon/
By default, it doesn't actually crop anything, it only resizes:
https://developer.wordpress.com/docs/photon/api/#resize
I was wondering if it were possible to extend your plugin to take Photon into account, and generate a list of Photon parameters based on the calculations you make in
crop()
, I believe:https://github.com/interconnectit/my-eyes-are-up-here/blob/master/face-detect.php#L306
Here is a quick example of how to apply custom crop parameters to a image with Photon:
http://jetpack.me/2013/07/17/use-photon-to-serve-post-thumbnails-with-custom/
This was originally suggested by a user here:
https://wordpress.org/support/topic/photon-ignores-cropping-location?replies=1&view=all
The text was updated successfully, but these errors were encountered: