Linux 软件免费装
Banner图

Auto OG Images - Open Graph & Social Image Generator by html2img

开发者 html2img
更新时间 2026年8月18日 22:20
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

open graph twitter card social image og image social share image

下载

1.1.0

详情介绍:

Links shared without an image get scrolled past. This plugin gives every post and page its own share image, generated from the post title, author and featured image the moment you publish. No design work per post, no image editor, no template plugin to fight with. Rendering happens through the HTML to Image API, which draws each card in a real Chrome browser. Real browser rendering means proper fonts, emoji in titles and photographic featured images all come out right. Full documentation is at html2img.com/integrations/wordpress. How it works
  1. Connect your HTML to Image account. New accounts get 50 free credits and each generated image costs one credit.
  2. Choose which post types get images and pick one of five bundled designs. Set your accent colour and logo.
  3. Publish. The image is generated in the background, saved into your media library and served in your og:image and twitter:image tags.
The plugin is careful with your credits. An image is only regenerated when something it shows has changed: the title, the excerpt, the author, the featured image or the design itself. Saving a post without changing any of those costs nothing. When you change the design, nothing re-renders until you ask: the Tools screen shows how many images are out of date and what a full regeneration will cost before it starts. Features Credits and the free plan HTML to Image accounts start with 50 free credits, a one time allowance rather than a monthly one. One credit is one generated image. Paid plans start at $9 per month for 1,000 credits. Renders made on the free plan are kept on the HTML to Image CDN for 7 days. This plugin saves each image into your media library, so your share images keep working even after the CDN copies expire. Paid plan renders are kept permanently, and upgrading makes every earlier render permanent too. The plugin shows your remaining balance on its settings screen, warns you when it runs low and pauses cleanly when it runs out. Your existing images are never touched by a failed render. What this plugin is not It does not edit your theme, slow your public pages or add JavaScript to the front end. It outputs a handful of meta tags and everything else happens in the admin. If you deactivate it, your existing images stay in the media library.

安装:

  1. Install and activate the plugin from the Plugins screen.
  2. Go to Settings, then OG Images.
  3. Paste your API key from your HTML to Image dashboard. If you do not have an account, creating one takes a minute and includes 50 free credits.
  4. Pick a design, choose your post types and save.
New posts get an image on publish. Existing posts can be generated in bulk from Tools, then OG Images.

屏幕截图:

  • A generated share image using the Classic design.
  • The Gutenberg sidebar panel with the current image and regenerate button.
  • The bulk regeneration screen with the pre-flight credit estimate.
  • The Split design with a featured image.
  • The Editorial design.

升级注意事项:

1.1.0 Quieter admin notices, confined to the plugin's own screens. 1.0.0 First release.

常见问题:

Does it work with Yoast SEO or Rank Math?

Yes. When Yoast SEO, Rank Math, All in One SEO or SEOPress is active, the plugin feeds the generated image to it through its own filters and outputs nothing itself. The settings screen states which plugin currently controls your social tags. Tags are never output twice.

What if I already set a social image on a post by hand?

The plugin leaves it alone. A social image chosen manually in your SEO plugin wins by default, and the generated image only fills the gap on posts without one. If you want the generated image everywhere, there is an "always use the generated image" setting.

What happens when my credits run out?

Generation pauses. Existing images stay exactly as they are, and posts published in the meantime keep working without a generated image, falling back to whatever your SEO plugin or theme would do anyway. A single admin notice tells you how many posts are waiting, and they are generated when credits are available again, either on their next save or from the Tools screen.

Do the images expire?

Not the ones on your site. Images are saved into your media library by default and stay there. The copies on the HTML to Image CDN expire after 7 days on the free plan, which only matters if you switch on the "serve from CDN" option. The plugin warns you about exactly that if you try it on a free account. Paid plan renders never expire.

Can I customise the design?

Each bundled design takes an accent colour, a background colour, a logo and toggles for the author name and site name. Beyond that there is a custom template option that accepts your own HTML with placeholders like {{title}}, {{author}} and {{featured_image}}. The preview on the settings screen is drawn by your browser and costs nothing while you experiment.

What data is sent to the API?

Only what the image shows: the post title, the excerpt, the author display name, the site name and tagline, the date, the featured image and your design settings including the logo. Nothing else leaves your site, and nothing is sent for post types you have not enabled or posts you have switched off. See the external services section below.

Does it work with WooCommerce products?

Yes. Any public post type can be enabled on the settings screen, products included. The bundled designs show the product title and image. Prices and other product fields are not included out of the box, but the html2img_variables filter and a custom template can add them.

I redesigned my site. Can I regenerate everything?

Yes. Change the design or its settings, then go to Tools, OG Images. It shows how many images were made with the old design and how many credits a regeneration will use, and asks before spending anything. The run happens in batches, shows progress, can be resumed if interrupted and stops cleanly if credits run out.

Does it support multisite?

It works per site on a multisite network, each site with its own settings and API key. There is no network level configuration yet.

Does publishing wait for the image?

No. Publishing never waits on the API. The render runs in the background and typically finishes within seconds. The editor panel shows its progress, and if background tasks are disabled on your host the panel offers a manual run button.

更新日志:

1.1.0 1.0.0