admin管理员组文章数量:1293040
There are some WordPress plugins that allow custom crop offsets for specific thumbnails and images.
I want to do this programmatically in a theme as it inserts thumbnails with very specific crop offsets. Is there a hook (filter, action) that can be used to customize the actual crop offset beyond the corners, as in pixels?
There are some WordPress plugins that allow custom crop offsets for specific thumbnails and images.
I want to do this programmatically in a theme as it inserts thumbnails with very specific crop offsets. Is there a hook (filter, action) that can be used to customize the actual crop offset beyond the corners, as in pixels?
Share Improve this question asked May 6, 2021 at 14:59 strarsisstrarsis 1032 bronze badges1 Answer
Reset to default 0The add_image_size
function allows you to add custom image sizes with custom offsets:
https://developer.wordpress/reference/functions/add_image_size/
本文标签: Custom thumbnail crop offsets
版权声明:本文标题:Custom thumbnail crop offsets 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741568853a2385886.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论