=== Generate Images (AI) - Magic Post Thumbnail ===
Plugin Name:       Generate Images (AI) - Magic Post Thumbnail
Version:           6.2.1
Tags:              generate, image, dalle, stable diffusion, replicate
Donate link:       https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=contact%40magic-post-thumbnail.com&item_name=Donation+for+Magic+Post+Thumbnail&currency_code=EUR&source=url
Contributors:      Mcurly, wondercode
Author URI:        https://magic-post-thumbnail.com/
Author:            Magic Post Thumbnail
Requires at least: 6.0
Tested up to:      6.9
Stable tag:        6.2.1
Requires PHP:      7.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Get images for your posts with automatic generation & multiple banks. Generate as featured images or in your content with Gutenberg Block and in bulk

== Description ==

**Easily create eye-catching images for your posts automatically with Magic Post Thumbnail!**

Retrieve images from Google Images, DALL·E, Stable Diffusion, Replicate, Pexels, Unsplash or Pixabay thanks to API, **based on your post title**, text analysis and much more. The plugin add picture as your **featured thumbnail** or **inside the post** when you publish the post.

The plugin allows you to configure some settings for your automatic images : **Image bank**, language search, selected post types, image type, free-to-use or not, image size and much more.


**Tired of spending hours searching for the perfect images for your posts?** Magic Post Thumbnail! does the hard work for you!

**<a target="_blank" href="https://magic-post-thumbnail.com/">Official Website</a>**
**<a target="_blank" href="https://magic-post-thumbnail.com/docs/">Documentation</a>**

Get a **30% discount for BLACK FRIDAY until November 30** when you upgrade to the **Pro version** with the code: **MPTBLACKFRIDAY25**

https://www.youtube.com/watch?v=eNb5MXg5e4I

== What is included ? ==

= Magic Post Thumbnail for FREE =

<ul>
<li>Generate Thumbnail for one post</li>
<li><strong>Generate Thumbnails</strong> for Posts, Pages & Custom Post Types</li>
<li><strong>new: Insert Image anywhere in your post content!</strong></li>
<li><strong>new: Choose image position up to the 10th occurrence (First to Tenth, plus Last) when inserting images in your post content!</strong></li>
<li>Image <strong>based on Titles</strong> or Text Analysis</li>
<li><strong>New</strong>: Gutenberg Block for searching and adding images to your posts</li>
<li>Images from Google Image, Google API, Pixabay, Openverse, DALL·E or Flickr</li>
<li><strong>Mass Image Generation</strong> for chosen posts or chosen taxonomies</li>
<li>Image generated randomized</li>
</ul>

= Magic Post Thumbnail PRO =

Upgrade to our PRO version to unlock even more **advanced features** and take your blog to the next level!

<ul>

<li>Customisable <strong>Crons</strong></li>
<li>Set different image locations for each post generation.</li>
<li>Images from Youtube, <strong>Stable Diffusion</strong>, <strong>Replicate (42 models)</strong>, Unsplash or Pexels</li>
<li>More images with the Gutenberg Block</li>
<li>Image search based on Tags, Categories, Text Analyser per paragraph Custom Fields, Custom Request and <strong>OpenAI Keyword Extractor</strong></li>
<li>Image Modifications: Flip horizontally and/or Crop Image by 10%</li>
<li><strong>Compatibility</strong> with REST requests, WPeMatico, FeedWordPress, WP All Import, Featured Image from URL, CMB2, ACF and metabox.io</li>
<li>Restricted domains</li>
<li>Setup a proxy</li>
<li><strong>24h Support</strong></li>
</ul>


**<a target="_blank" href="https://www.youtube.com/watch?v=crI3V-Kkb8k">Youtube Tutorial</a>**

== Translations ==
* French
* Spanish

== Screenshots ==
1. Magic Post Thumbnail : Bulk Generation
2. Magic Post Thumbnail : Gutenberg Block
3. Magic post Thumbnail : Settings
4. Magic post Thumbnail : Post-Processing Settings
5. Magic post Thumbnail : Generate images for post types
6. Magic post Thumbnail : Image Banks
7. Magic post Thumbnail : Generate featured images for taxonomies
8. Magic post Thumbnail : Generate featured images for each post individually
9. Magic post Thumbnail : Crons

== Support the plugin ==
If you've found the plugin useful, please consider <a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=contact%40magic-post-thumbnail.com&item_name=Donation+for+Magic+Post+Thumbnail&currency_code=EUR&source=url">making a donation</a>. Thank you for your support !


== Installation ==
1. Activate the plugin
2. Go to the "Magic Post Thumbnail" menu tab
3. Configure your settings, which post type you want to enable it and the image bank.
4. Go into a post, and choose "Click to generate" on the sidebar.
5. You can also **mass generate thumbnails** for posts. Go into the list of your posts, choose posts or taxonomy you want to get thumbnails, and into "Bulk Actions" choose "Generate featured images"

The "How to do" for APIs activations is <a target="_blank" href="https://magic-post-thumbnail.com/docs-category/image-databases/">available here</a>.


== Frequently Asked Questions ==

= How to generate images ? =

There are several ways :
<ul>
<li>You can generate an image with the button "Click to generate" on a post (works on Gutemberg & Classic Editor).</li>
<li>You can mass generate thumbnails for posts. Go into the list of your posts, choose posts or taxonomy you want to get thumbnails, and into “Bulk Actions” choose “Generate featured images”</li>
<li>You can also automatically schedule generation with crons with the Pro version, or by enabling compatibility with REST Requests, WPeMatico, FeedWordPress & WP Automatic Plugin.</li>
</ul>

= Is it unlimited ? =

Yes you can generate image as much as you want.

= Why images aren't generated anymore ? =

If you use Google Image too much for generation in a short time, your server may be temporarily banned. In this case, you should enable Interval for the generation.

**Google Image (scraping)** uses Bing Images by default. Turn off Bing in Banks → Google Image (Scraping), or via `mpt_google_scraping_use_bing_fallback`. Restore the old Google HTML path with `mpt_google_scraping_use_bing_primary` → false.

= I have other pre-sale questions, can you help? =

Yes! You can ask us any question through our <a href="https://magic-post-thumbnail.com/contact-us/">support page</a>.


== Upgrade Notice ==

Upgrade your plugin to **<a target="_blank" href="https://magic-post-thumbnail.com/pricing/">Pro Version</a>** ! You will get much more options to configure, more image banks, and customisable crons.


== Changelog ==

= 6.2.1 - April 2, 2026 =
* Bing Images is the default source for the Google Image (scraping) bank. The old Google HTML pipeline is off.
* Same search options map to Bing (`qft` filters). Filter: `mpt_google_scraping_bing_qft_tokens`.

= 6.2.0 - March 29, 2026 =
* Google Image (scraping): new way to fetch results; still unstable on many hosts.
* Bing fallback when Google fails: on by default; off in Banks or filter.

= 6.1.8 - January 29, 2026 =
* Fix Gutenberg Block: loader no longer stays infinite when image download fails
* Fix Gutenberg Block: improve download reliability for Openverse and Flickr images
* Fix Gutenberg Block: preserve URL-encoded characters in image URLs (fixes "Not Found" errors)
* Add HTTP timeout extension for large image downloads
* Add User-Agent header to prevent blocking by some image hosts
* Add user notification (snackbar) when image download fails

= 6.1.7 - November 21, 2025 =
* Fix dashboard footer

= 6.1.6 - November 13, 2025 =
* PRO: Improve compatibility with "Featured Image from URL" (FIFU) plugin - supports both free and premium versions
* PRO: Disable Envato Elements integration (API no longer working)
* Remove Envato Elements from available image banks in settings
* Update Freemius 2.13.0

= 6.1.5 - November 11, 2025 = 
* Add Black Friday discount

= 6.1.4 - October 16, 2025 =
* PRO: Add support for ByteDance Seedream-4 model (Replicate)
* PRO: Add support for Google Imagen models (Replicate) (imagen-4, imagen-4-fast, imagen-4-ultra, nano-banana)
* PRO: Improve dimension calculation for different aspect ratios (16:9, 4:3, 1:1, 3:2, 9:16) with imagen & seedream

= 6.1.3 - August 07 2025 =
* Allow image positioning up to the 10th occurrence (First to Tenth, plus Last) for inline content placement.
* Update Freemius 2.12.1

= 6.1.2 - June 24, 2025 =
* Fix bug with plugin Kadence Blocks
* Update Freemius 2.12.0

= 6.1.1 - May 07, 2025 =
* Add discount code for may
* PRO: Add cron interval to every 3 minute

= 6.1.0 - April 22, 2025 =
* Improve images of Dalle generation
* PRO: Add Replicate Api models with 42 images models.
* PRO: Add "Stable Image Ultra" as model for better quality

= 6.0.8 - April 16, 2025 =
* PRO: Fix "custom field" option
* PRO: Add post status choice for crons

= 6.0.7 - April 08, 2025 =
* Update compatibility with theme "cocoon" (japanese made theme)

= 6.0.6 - January 27, 2025 =
* Update freemius 2.11

= 6.0.5 - January 17, 2025 =
* Update scroll during generation
* Limit manual_search.js only to edit pages
* Add "Image reuse" option: Check for existing images media before downloading
* PRO: Fix WP All Import for all "Search Based on" options. Generated post-import

= 6.0.4 - December 17, 2024 =
* Update freemius 2.10.1
* PRO: Better compatibility with image galleries for "Meta Box" (metabox.io)

= 6.0.3 - November 27, 2024 =
* Add second image source for "image location" blocks

= 6.0.2 - November 18, 2024 =
* Add Black Friday discount
* PRO: Fix problems with REST Requests

= 6.0.1 - November 11, 2024 =
* Update CSS for delete button block
* Update Youtube Tutorial video link
* Fix migration problem with 6.0.0: could not generate image when plugin updated

= 6.0.0 - November 7, 2024 =
* PRO: Change automatic settings: Ability to add multiple images during generation
* PRO: Add Compatibility with CMB2, ACF & Meta Box (metabox.io)
* PRO: Add Image bank "Stable Diffusion"
* PRO: Strict Search Mode: include quotes inside the search term
* PRO: Add text analyzer per paragraph
* Add images inside content: Previously in paid version, now free.
* Add "random" image selection: Previously in paid version, now free.
* Add caption on images to mention author
* Improve "Custom Request" ("based on" option) by including taxonomies
* Improve text analyzer included with the plugin ("based on" option)
* "Inside content" option : add "div" and "a" as possible tags
* Add submenus into the sidebar
* Other minor code improvements
* Update Freemius version

= 5.2.11 - October 03, 2024 =
* Update Freemius version
* PRO: Add "Category Level" option for "Based on Custom Request"
* Add "Rights" tab options to allow roles to access the plugin dashboard

= 5.2.10 - August 12, 2024 =
* Fix security problem (level of privilege required)
* Update Freemius version

= 5.2.9 - July 22, 2024 =
* Update with WordPress 6.6 : Fix buttons for generating with Gutemberg editor

= 5.2.8 - July 13, 2024 =
* PRO: Fix Obsolete "Optional parameter" error
* Fix security problem (level of privilege required)

= 5.2.7 - June 04, 2024 =
* Fix bugs with Hook "Save Post" & "WP Insert Post"

= 5.2.6 - June 03, 2024 =
* Change display options with "enable alt"
* Add rating plugin notice

= 5.2.5 - May 22, 2024 =
* PRO: gpt-4o as model for "OpenAI Keyword Extractor". Cheaper/better quality.

= 5.2.4 - May 20, 2024 =
* Update for discount
* Update Freemius version

= 5.2.3 - April 17, 2024 =
* PRO: Fix problem with WP All import Compatibility
* PRO: Improve "Inside Content" when "Classic" block is inside Gutenberg

= 5.2.2 - April 09, 2024 =
* Fix bug with no result when post is not saved
* Update Freemius version

= 5.2.1 - April 04, 2024 =
* Changed Gutemberg detection method due to WP 6.5
* Remove warnings with option "enable alt"

= 5.2.0 - March 18, 2024 =
* Update Bulk page if no generation
* PRO: Manage image position anywhere in content

= 5.1.1 - January 15, 2024 =
* Update Freemius version
* Add post type selection for Hooks
* Fix CSS admin dashboard on small desktop resolutions

= 5.1 - December 20, 2023 =
* PRO: Add alt on images with translation possibility
* PRO: Add "Pro Account" link

= 5.0.4 - December 18, 2023 =
* Add CSS links underline for source settings
* Update jQuery UI version for better compatibility
* Update freemius version

= 5.0.3 - November 25, 2023 =
* Improve click area on button for manual generation
* PRO: Add "WP Insert Post" Hook. Also works with XML RPC requests

= 5.0.2 - November 17, 2023 =
* Update for Black Friday

= 5.0.1 - November 15, 2023 =
* Fix problem with automatic generation failing
* Remove the Gutenberg Block description in the settings. Wasn't the correct description
* Fix Dall-e sentence CSS problem

= 5.0.0 - November 14, 2023 =
* Change some Settings Pages
* Warning errors removed by removing useless include_once for free version
* Add multiple sources for automatic generation: select multiple Banks and set priorities
* New Gutenberg block to manually add images from multiple Image Banks
* Button for featured Image to select manually images from multiple Image Banks
* Remove Image Banks "Shutterstock" & "Getty Images", not very usefull
* Add API tester for settings to check API key validity
* Change Dall-e v2 to Dall-e v3