开发者 |
clearsite
acato |
---|---|
更新时间 | 2024年5月17日 17:33 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.2.2 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
For existing pages/posts, this plugin will take the title from the page as it is created by ANY SEO-plugin, and if you want, you can change it. And if you have used Yoast-SEO to choose an OG:Image, this plugin will use it as well.
After installing the plugin, go to the "Branded Social Images" configuration page and set your fallback image, font, -color and -size, add your logo, and you are done.
To use your own font, you need a .TTF (True Type Font) or .OTF (OpenType Font) file. You can get this from any source you wish, just make sure it is an ordinary font (Google's variable fonts will not work). Upload the font with the "Upload custom font" feature.
Yes, it does, but you have to make sure you upload the appropriate font. If you see "empty square" or "square with a cross" symbols in the image, your font is not compatible.
Yes and no. The plugin can be installed without problems in a MultiSite environment and can be activated per site or network-wide, but the settings are not network-wide. Although this might be a feature for a future version; there currently is no way to set-up Branded Social Images in one single place for the entire network.
Yes, as long as your font supports the languages. The supplied fonts are "Western" only. If you need character sets for languages like Korean or Japanese, you need to upload an appropriate font.
The plugins we've seen all use an external service to generate the images, or are very complex to use. We aim for a simple, elegant solution that is completely self-contained.
For image generation; NO. The plugin is self-contained in that manner. The plugin does use external services, namely the following, and only once after install or update.
You can set-up Branded Social Image on every post/page manually, but an automatic solution is always possible. You can use WordPress filters to influence the text- and image selection process;
bsi_text
with parameters $text
, $post_id
and $image_id
bsi_image
with parameters $image_id
and $post_id
With WordPress filter bsi_admin_menu_location
you can move the entry to the Settings menu. Just return any value other than 'main'.
Use filter bsi_meta_box_context
to change the meta-box position, return either advanced
, side
or normal
.
Beware that the side
option makes the meta-box very small and with that less usable.
In a classic-editor environment, dragging the metabox to the sidebar (or back) is possible.
While the plugin has code to migrate, obviously in your case it failed. Sorry about that. To remedy the situation, perform 2 steps;
Yes you can. use filter bsi_settings_output_format
to change it; add_filter('bsi_settings_output_format', function() { return 'png'; });
By changing the quality-level of the output image, you can reduce the filesize, or increase the sharpness of the image.
Use filter bsi_settings_jpg_quality_level
and return a number between 0 and 100, 100 being best quality, 75 being the default.
If you set the output to PNG, use filter bsi_settings_png_compression_level
and return a number from 0 to 9, 2 being the default.
Absolutely! A .pot template can be found in the GitHub repository
Sure! Go to the support forum and create a new request. Please include as much information as you feel comfortable with, just make sure you do not reveal information that could lead to unauthorized access to your website. Do NOT send us your logins, password etc. If you have problems with a specific image, please generate a log and include it in your support ticket (take the url to the social-image, add ?debug=BSI to it). If you do not see the log on-screen, you can find it in the BSI settings panel. If you don't want to share this information publicly, send us an e-mail referencing the support ticket. When in doubt, contact us before sharing.
bsi_image_url
added to allow filtering of the final output OG:Image url.bsi_image_gd
now includes two extra parameters: $post_id and $image_idbsi_image_editor
with 1 parameter; $stage, in 4 stages of displaying the editor (after_creating_canvas
, after_adding_background
, after_adding_text
and after_adding_logo
) for future expansion of the editorbsi_image_gd
with 2 parameters; &$resource and $stage, in 4 stages of the image generation (after_creating_canvas
, after_adding_background
, after_adding_text
and after_adding_logo
)