| 开发者 | bigfatinternet |
|---|---|
| 更新时间 | 2026年11月4日 21:43 |
| PHP版本: | 8.3 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
/wp-content/plugins/focalio/, or install via the WordPress plugin repository.Yes. Click Live Preview at the top of this page: a demo site opens in your browser with three sample photos, each with a focal point, and a page that shows them as a banner, a grid thumbnail and a mobile crop. Nothing is installed on your own site.
No. Your uploads stay as they are. Every crop and format is rendered from them when it is first asked for, and kept in the .glide-cache folder in your uploads folder. That folder can be deleted at any time: what is gone is rendered again.
In the media library, in the image's details, and in the block editor, on an image block. Without one, the crop fallback on the Settings tab decides: attention, entropy or the center.
wp focalio cache stats: what is in the image cachewp focalio cache cleanup: the weekly cleanup, now (add --dry-run to only count)wp focalio cache clear: delete every rendered imagewp focalio guess: work out the automatic focal point of every image ahead of time (add --force to redo them)Yes. Product images are served through Focalio like every other image, and WooCommerce's cropped sizes, such as the shop thumbnails of a classic theme and the gallery thumbnails, follow the focal point.
Yes. Activate it per site or for the whole network. Each site keeps its own settings and image cache, and deleting Focalio cleans up every site.
/wp/v2/media stopped with "Cannot use object of type stdClass as array".glide_image() and glide_source() no longer make an image taller than its original: a landscape photo on a portrait or squarer ratio is now bounded by its height (1200×896 on 3:4 gave 1200×1600). A preset's size in Advanced Custom Fields' sizes array follows the same rule.WP_DEBUG_DISPLAY): output another plugin or theme printed earlier in the request is discarded before the image is sent, and errors during the image response go to the log only.glide_image() or glide_source() together with a preset wins over the preset's. Preset images are rendered again once, at the right quality.wp_glide/register_presets filter read LQIP like glide_register_preset() does: 'off', 'no', 'false' and 0 turn it off.wp focalio cache cleanup, which records the numbers.define() line for wp-config.php is folded away until you click "Show the line to paste".glide_register_preset() no longer stops the site when a quality or LQIP value is not of the expected type: '' and null mean the site's setting, '95' works like 95, and LQIP also takes 'on'/'off' and 1/0.focalio_focal_picker_sidebar hook adds sections at the end of the image editor's sidebar, and the editor takes the focalio:editor-settle and focalio:editor-reload events, in the media library and the block editor.focalio/cache_tab_after and focalio/wordpress_sizes_after hooks add a section to the Cache and Presets tabs.