Infovarious Post Cover Generator

Description

Infovarious Post Cover Generator gives every post a featured image without any design work. When you save a post that has no featured image, the plugin draws one: the post title on a blue gradient background (the colors are yours to choose), the categories at the bottom left and your site URL at the bottom right.

Features:

  • Creates a 1200 x 630 JPEG, the size used by most social networks.
  • Categories never run into the site URL: only the categories that fit are drawn, and the last one is shortened with an ellipsis.
  • Re-creates the image when the title or the categories change. The previous automatically created image is deleted, so the media library does not fill up.
  • Never touches an image you set yourself. Only images created by this plugin are replaced.
  • Works with any theme. No shortcode and no template changes.
  • Bundles the Noto Sans JP font (SIL Open Font License), so Japanese and Latin titles both render correctly.
  • Settings screen (Settings > Post Cover Generator): choose a gradient or a single color, the gradient direction (top to bottom, bottom to top, left to right, right to left, diagonal, center to outside, outside to center), the text color and where the site URL goes, with a live preview.
  • A button re-creates the images this plugin made, with the new design, without changing the post modified date.
  • No external requests, no data sent anywhere.

Requirements: the PHP GD extension with FreeType support (included in most hosting).

Developer filters:

  • ivafi_should_generate ( bool, WP_Post ) – return false to skip a post.
  • ivafi_font_path ( string ) – return the path of another TrueType/OpenType font.
  • ivafi_url_style ( string ) – corner (default: the site URL at the bottom right) or watermark (a faint site URL running diagonally from the bottom left to the top right, behind the title).

Credits

The bundled font Noto Sans JP is licensed under the SIL Open Font License 1.1. The license text is in fonts/OFL.txt.

Installation

  1. Upload the infovarious-post-cover-generator folder to the /wp-content/plugins/ directory, or install the plugin from the Plugins screen.
  2. Activate the plugin.
  3. Save a post that has no featured image. The image is created automatically.

FAQ

Does it create images for my existing posts?

Only when a post is saved (for example with Quick Edit or Bulk Edit > Update). Posts that already have a featured image are skipped.

It does not create an image.

Check the notices in the admin screen. The PHP GD extension with FreeType support and a font file are required. Also make sure the post type supports featured images.

How do I change the colors?

Open Settings > Post Cover Generator, pick the colors and check the preview, then save. The new design is used for images created from then on, and for posts whose title or categories change. To apply it to images that already exist, press “Re-create images” on the same screen. Images you set yourself are not touched.

Can I use another font?

Yes. Put a TrueType or OpenType font named NotoSansJP-Regular.ttf or NotoSansJP-Regular.otf in the fonts folder of your theme, or return another path from the ivafi_font_path filter. The plugin’s own font is used first if it exists.

Will it replace the image I chose?

No. If the featured image was not created by this plugin, it is left alone.

What happens when I delete the plugin?

The small amount of data the plugin saved is removed. The featured images it created stay in your media library.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Infovarious Post Cover Generator” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.1.0

  • New settings screen: background (gradient or single color), gradient direction, text color, site URL style, live preview.
  • New button to re-create the images made by this plugin with the current design.
  • Seven gradient directions: top to bottom, bottom to top, left to right, right to left, diagonal, center to outside, outside to center.
  • The default design is the same as in 1.0.0.

1.0.0

  • First release.