{"repo":"hirasso/focal-point-picker","free":true,"listed":false,"github":"https://github.com/hirasso/focal-point-picker","clone":"git clone https://github.com/hirasso/focal-point-picker.git","description":"Zero-dependency custom focal point picker for your WordPress images 🎯","language":"JavaScript","stars":42,"topics":["focal-point","wordpress"],"license":null,"category":"cli-tools","readme_excerpt":"Focal Point Picker Zero-dependency custom focal point picker for your WordPress images 🎯 Installation Via Composer (recommended): 1. Install the plugin: 1. Activate the plugin manually or using WP CLI: Manually: 1. Download and extract the plugin 2. Copy the focal-point-picker folder into your wp-content/plugins folder 3. Activate the plugin via the plugins admin page – Done! 4. Handle updates via afragen/git-updater Data structure You can retrieve the focal point for an image like this: Output: Usage in your templates Object Position Background Position Using wp get attachment image If you are making use of the WordPress function wp get attachment image() , the plugin will automatically inject a class focal-point-image and two custom css properties for you to use: You can use that like this, for example: Filters The default position of the focal point can be customized using filters: This might come in handy if you have many photographs where the eyes of people are at the top of the image somewhere and you don't want to adjust them all manually. WP CLI Interface fcp apply-default-position Apply the default position to existing images:","default_branch":null,"files":null,"tree":[],"storefront":"/r/hirasso","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hirasso/focal-point-picker/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}