From ae605327c062054a12ddaa50c7b008974d6e1085 Mon Sep 17 00:00:00 2001 From: Aaron Edwards Date: Wed, 25 Oct 2023 16:37:40 -0500 Subject: [PATCH] Bugfix for object cache --- imajinn-ai.php | 7 ++++--- readme.txt | 16 ++++++++++------ src/block/components/WelcomeModal/index.js | 10 ++-------- src/block/option-data.js | 2 +- 4 files changed, 17 insertions(+), 18 deletions(-) diff --git a/imajinn-ai.php b/imajinn-ai.php index 681b843..0fcf818 100644 --- a/imajinn-ai.php +++ b/imajinn-ai.php @@ -4,7 +4,7 @@ * Description: Generate the perfect images for your blog in seconds with cutting-edge AI. The Imajinn Block brings AI image generation previously only seen on restricted platforms like DALL·E 2 right into the backend of your website so you can create stunning images for any topic with just your imagination. * Requires at least: 6.0 * Requires PHP: 7.2 - * Version: 1.5.3 + * Version: 1.5.4 * Author: Imajinn AI * Author URI: https://imajinn.ai * Plugin URI: https://infiniteuploads.com/imajinn/ @@ -19,7 +19,7 @@ * Developers: Aaron Edwards @UglyRobotDev */ -define( 'IMAJINN_AI_VERSION', '1.5.3' ); +define( 'IMAJINN_AI_VERSION', '1.5.4' ); class Imajinn_AI { @@ -378,7 +378,7 @@ function ajax_check_job() { $job_id = sanitize_key( $params['job_id'] ); - $job = $this->api_request( sprintf( 'site/%s/generate/%s', $this->get_site_id(), $job_id ), [], 'GET' ); + $job = $this->api_request( sprintf( 'site/%s/generate/%s', $this->get_site_id(), $job_id ), [ 'v' => microtime( true ) ], 'GET' ); if ( is_wp_error( $job ) ) { wp_send_json_error( $job ); } @@ -591,6 +591,7 @@ private function api_request( $path, $params = [], $method = 'POST' ) { return new WP_Error( 'api_error', esc_html__( "There was an unknown API error. Please try again.", 'imajinn-ai' ), [ 'status' => wp_remote_retrieve_response_code( $response ) ] ); } + error_log( 'HEADERS: ' . var_export( wp_remote_retrieve_headers( $response ), true ) ); return $body; } diff --git a/readme.txt b/readme.txt index bc80ddf..84ef892 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Requires at least: 6.0 Tested up to: 6.4 -Stable tag: 1.5.3 +Stable tag: 1.5.4 Requires PHP: 7.2 Contributors: uglyrobot, jdailey Tags: AI, DALLE, image generator, stock photos, art, stable diffusion, SDXL @@ -15,10 +15,14 @@ Generate the perfect royalty-free images for your blog in seconds with cutting-e **Imajinn brings the magic of AI image generation to WordPress** -Imajinn is a WordPress plugin that brings the power of AI image generation to your website. Similar to tools like [DALL·E 2](https://openai.com/dall-e-2/), Midjourney, and Stable Diffusion, Imajinn lets you generate images for any topic with just your imagination. Just enter a description of what you would like to create, and Imajinn will generate a stunning image for you in seconds. +Imajinn is a WordPress plugin that brings the power of AI image generation to your website. Similar to tools like [DALL·E 3](https://openai.com/dall-e-3), Midjourney, and Stable Diffusion, Imajinn lets you generate images for any topic with just your imagination. Just enter a description of what you would like to create, and Imajinn will generate a stunning image for you in seconds. Running on the latest in AI technology, Imajinn is able to generate images that are indistinguishable from real photos and art. The images are royalty-free, so you can use them on your website without worrying about licensing issues. It's like having a full-time graphic design assistant on your team that follows your every command. Your only limitation is your imagination. +### NEW: Stable Diffusion XL + +Now powered by the latest **Stable Diffusion XL** model, allowing you to create descriptive images with shorter and simpler prompts, and generate words within images. The model is a significant advancement in image generation capabilities, offering enhanced image composition and face generation that results in stunning visuals and realistic aesthetics. + #### Imajinn AI - Plugin Features - **Generate images with AI** - Just type in a prompt and Imajinn will generate a stunning image for you to use on your site. @@ -55,10 +59,6 @@ Running on the latest in AI technology, Imajinn is able to generate images that ★★★★★ > “VERY impressive...Love the 3:2 option (obvious need but missing from most other AI image tools). Easy, no-fuss install. Great documentation. The array of config options are intuitive, and actually make a big difference in output. And it's FAST!” - J. Paul Hendricks -### NEW: Stable Diffusion XL - -Now powered by the latest Stable Diffusion XL model, allowing you to create descriptive images with shorter prompts and generate words within images. The model is a significant advancement in image generation capabilities, offering enhanced image composition and face generation that results in stunning visuals and realistic aesthetics. - ### Prompt Genie Prompt Genie is a powerful AI tool that can help you generate better prompts for your images. Just enter a few simple words to describe what you would like to create, then summon Prompt Genie to use it's custom-trained machine learning model to turn your boring prompts into amazingly artistic images. Prompt Genie is a great way to create fantastic images with Imajinn without having to learn the complex skill of prompt building that's necessary to use other tools like DALLE or Stable Diffusion. @@ -139,6 +139,10 @@ We also will be filtering prompt input and screening output to block the creatio == Changelog == +1.5.4 - 2023-10-25 +---------------------------------------------------------------------- +- Fix: Image generation status would not update on some sites with persistent object cache enabled. + 1.5.3 - 2023-10-25 ---------------------------------------------------------------------- - Upgrade to Stable Diffusion XL for 50% more resolution and much higher quality images from shorter prompts. diff --git a/src/block/components/WelcomeModal/index.js b/src/block/components/WelcomeModal/index.js index 54b9307..72c3ef7 100644 --- a/src/block/components/WelcomeModal/index.js +++ b/src/block/components/WelcomeModal/index.js @@ -87,19 +87,13 @@ export function WelcomeModal( { showWelcome, setShowWelcome, ...props } ) {
  1. { __( - 'Try to generate photo-realistic human faces or bodies, they will look deformed. Stick to artistic styles for images with people.', + 'Try to generate photo-realistic human fingers, arms, or legs, they will often look deformed.', 'imajinn-ai' ) }
  2. { __( - 'Expect to be able to create legible words, text, or logos. They will be gibberish.', - 'imajinn-ai' - ) } -
  3. -
  4. - { __( - 'Use 3:2 or 2:3 ratio for images with a single object or subject, as that tends to create strange duplications. It is best to use 1:1 for those types of images.', + 'Expect to be able to create legible words, text, or logos. Text longer than a simple word will usually be gibberish.', 'imajinn-ai' ) }
  5. diff --git a/src/block/option-data.js b/src/block/option-data.js index fe41109..37e0705 100644 --- a/src/block/option-data.js +++ b/src/block/option-data.js @@ -181,7 +181,7 @@ export default { }, { id: 'photograph of, photo, 50mm portrait photograph', - name: __( 'Photography (avoid people)', 'imajinn-ai' ), + name: __( 'Photography', 'imajinn-ai' ), children: [ { id: 'realistic photo of, award winning photograph, 50mm',