Skip to content

Commit

Permalink
1.5.5 release - Migrate domain
Browse files Browse the repository at this point in the history
  • Loading branch information
uglyrobot committed Nov 10, 2024
1 parent ae60532 commit f7912b9
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 57 deletions.
14 changes: 7 additions & 7 deletions imajinn-ai.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
* 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.4
* Version: 1.5.5
* Author: Imajinn AI
* Author URI: https://imajinn.ai
* Plugin URI: https://infiniteuploads.com/imajinn/
* Plugin URI: https://wp.imajinn.ai
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: imajinn-ai
*
* @package imajinn-ai
*
* Copyright 2022 UglyRobot, LLC. All rights reserved.
* Copyright 2024 UglyRobot, LLC. All rights reserved.
*
* Developers: Aaron Edwards @UglyRobotDev
*/

define( 'IMAJINN_AI_VERSION', '1.5.4' );
define( 'IMAJINN_AI_VERSION', '1.5.5' );

class Imajinn_AI {

Expand All @@ -40,7 +40,7 @@ public static function instance() {
public function __construct() {

if ( ! defined( 'IMAJINN_API_URL' ) ) {
define( 'IMAJINN_API_URL', 'https://infiniteuploads.com/api/imajinn/v1/' );
define( 'IMAJINN_API_URL', 'https://wp.imajinn.ai/api/imajinn/v1/' );
}

add_action( 'init', [ &$this, 'block_init' ] );
Expand Down Expand Up @@ -127,9 +127,9 @@ function inline_script( $custom_editor = false ) {
$site_id = $this->get_site_id();
$expire = strtotime( '+1 day' );
$auth = hash( 'sha256', $site_id . $expire . hash( 'sha256', $this->get_api_key() ) );
$checkout_url = add_query_arg( compact( [ 'site_id', 'expire', 'auth' ] ), 'https://infiniteuploads.com/imajinn/checkout/' );
$checkout_url = add_query_arg( compact( [ 'site_id', 'expire', 'auth' ] ), 'https://wp.imajinn.ai/checkout/' );
} else {
$checkout_url = 'https://infiniteuploads.com/imajinn/checkout/';
$checkout_url = 'https://wp.imajinn.ai/checkout/';
}

//get history from post type
Expand Down
22 changes: 11 additions & 11 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
=== Imajinn - Magical AI Image Generation like DALL·E ===
=== Imajinn - Magical AI Image Generation ===

Requires at least: 6.0
Tested up to: 6.4
Stable tag: 1.5.4
Tested up to: 6.7
Stable tag: 1.5.5
Requires PHP: 7.2
Contributors: uglyrobot, jdailey
Tags: AI, DALLE, image generator, stock photos, art, stable diffusion, SDXL
Expand All @@ -29,7 +29,6 @@ Now powered by the latest **Stable Diffusion XL** model, allowing you to create
- **Gutenberg block** - Create images right inside your posts/pages with the Imajinn AI Block.
- **Save to library** - Upscale and save your favorite images to your WordPress media library for easy access in any theme/plugin.
- **Insert images** - Insert your high resolution generated images into any post/page as an image block with a single click.
- **Prompt Genie** - Summon the genie to use AI to turn your boring prompts into amazingly artistic images.
- **Style presets** - Customize your images with a variety of preset options like art medium, artist style, and more!
- **History** - Easily view and jump back to previous image generations to modify and customize your prompts.
- **Create variations** - Generate more variations of your favorite images with a similar style and layout.
Expand Down Expand Up @@ -59,10 +58,6 @@ Now powered by the latest **Stable Diffusion XL** model, allowing you to create
★★★★★
> “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

### 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.

### Touchup (Inpainting)

Touchup mode allows you to customize and make modifications to an image in a more precise way by allowing you to remove or replace parts of the image with new content generated from your prompt. This is useful for removing unwanted objects like watermarks, signatures, or duplicates. Or you can use it to add new objects to the image, such as a forground item or background. Touchup allows you to create the exact image you want by choosing where each element in the image goes. You can create that complex image you have in mind, even if it is too specific to get right with one initial prompt.
Expand All @@ -71,13 +66,13 @@ Touchup works by choosing an image as an input, masking an area with the brush t

### Privacy

This plugin does not collect or share data other than your prompts and generated images as needed to run our API service. Read our [Privacy Policy](https://infiniteuploads.com/privacy/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=imajinn_readme&utm_term=privacy) for more information.
This plugin does not collect or share data other than your prompts and generated images as needed to run our API service. Read our [Privacy Policy](https://wp.imajinn.ai/privacy/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=imajinn_readme&utm_term=privacy) for more information.

== Installation ==

Once you install the plugin, simply insert the "Imajinn AI" Gutenberg block in any post or page editor, or visit the Media->Imajinn AI page. You will be prompted to create a free account or connect to your existing account right in the block, and then you can start generating images right away.

Running an artificial intelligence neural network requires a lot of computing power. To make this possible, we run a cloud service to run the neural network. This means that you need to connect to our service before you can use the plugin. To connect to Imajinn AI, you need to have a user account. You can create one for free with just your valid email address and a password, or if you already have an account, you can log in with your Infinite Uploads/Imajinn AI email and password.
Running an artificial intelligence neural network requires a lot of computing power. To make this possible, we run a cloud service to run the neural network. This means that you need to connect to our service before you can use the plugin. To connect to Imajinn AI, you need to have a user account. You can create one for free with just your valid email address and a password, or if you already have an account, you can log in with your Imajinn AI email and password.

== Frequently Asked Questions ==

Expand Down Expand Up @@ -131,14 +126,19 @@ We also will be filtering prompt input and screening output to block the creatio
1. The Imajinn AI block with generated images and prompt history.
1. Saving high-resolution images to your WordPress media library for use in any theme or page builder.
1. Saving and inserting images as an image block in Gutenberg.
1. Using Prompt Genie and the face repair tools.
1. Using the face repair tools.
1. Generate variations of an image with a similar style and layout.
1. AI-based facial restoration to restore facial details and enhance colors with a good balance of realness and fidelity.
1. Using Touchup (inpainting) to remove a watermark and add a crown to a princess.
1. Fine-tune custom AI models to visualize people, products, or styles with AI. Find at https://imajinn.ai

== Changelog ==

1.5.4 - 2024-11-09
----------------------------------------------------------------------
- Migrate API domain to wp.imajinn.ai
- Remove Prompt Genie

1.5.4 - 2023-10-25
----------------------------------------------------------------------
- Fix: Image generation status would not update on some sites with persistent object cache enabled.
Expand Down
8 changes: 4 additions & 4 deletions src/block/components/Connect/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function Connect( props ) {
{ hasError }
{ errorCode === 'incorrect_password' && (
<ExternalLink
href="https://infiniteuploads.com/wp-login.php?action=lostpassword"
href="https://wp.imajinn.ai/wp-login.php?action=lostpassword"
target="_blank"
>
{ __( 'Reset Password', 'imajinn-ai' ) }
Expand Down Expand Up @@ -142,7 +142,7 @@ export function Connect( props ) {
/>
<p>
{ __(
"We hope you are excited to turn your imagination into creative media for your WordPress site. To get started please create a free account or login with your existing Infinite Uploads/Imajinn credentials and we'll connect your site to our cloud.",
"We hope you are excited to turn your imagination into creative media for your WordPress site. To get started please create a free account or login with your existing Imajinn credentials and we'll connect your site to our cloud.",
'imajinn-ai'
) }
</p>
Expand Down Expand Up @@ -190,13 +190,13 @@ export function Connect( props ) {
) }
/>
<ExternalLink
href="https://infiniteuploads.com/terms-of-service/"
href="https://wp.imajinn.ai/terms-of-service/"
target="_blank"
>
{ __( 'Terms of Service', 'imajinn-ai' ) }
</ExternalLink>
<ExternalLink
href="https://infiniteuploads.com/privacy/"
href="https://wp.imajinn.ai/privacy/"
target="_blank"
>
{ __( 'Privacy Policy', 'imajinn-ai' ) }
Expand Down
2 changes: 1 addition & 1 deletion src/block/components/WelcomeModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function WelcomeModal( { showWelcome, setShowWelcome, ...props } ) {
</li>
<li>
{ __(
'Use Prompt Genie or our style dropdowns for the best results.',
'Use our style dropdowns for the best results.',
'imajinn-ai'
) }
</li>
Expand Down
20 changes: 3 additions & 17 deletions src/block/components/help-modals/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export function PromptHelpModal( props ) {
<h3>{ __( '5. Conclusion', 'imajinn-ai' ) }</h3>
<p>
{ __(
'Prompt engineering allows you to have better control of what the image will look like. It (if done right) improves the image quality by a lot in every aspect. But if you want to keep it simple, just use our Prompt Genie or style presets.',
'Prompt engineering allows you to have better control of what the image will look like. It (if done right) improves the image quality by a lot in every aspect. But if you want to keep it simple, just use our style presets.',
'imajinn-ai'
) }
</p>
Expand Down Expand Up @@ -225,7 +225,7 @@ export function HelpModal( props ) {
<h3>{ __( 'Connecting', 'imajinn-ai' ) }</h3>
<p>
{ __(
'Running an artificial intelligence neural network requires a lot of computing power. To make this possible, we run a cloud service to run the neural network. This means that you need to connect to our service before you can use the plugin. To connect to Imajinn AI, you need to have a user account. You can create one for free with just your valid email address and a password, or if you already have an account, you can log in with your Infinite Uploads/Imajinn AI email and password.',
'Running an artificial intelligence neural network requires a lot of computing power. To make this possible, we run a cloud service to run the neural network. This means that you need to connect to our service before you can use the plugin. To connect to Imajinn AI, you need to have a user account. You can create one for free with just your valid email address and a password, or if you already have an account, you can log in with your Imajinn AI email and password.',
'imajinn-ai'
) }
</p>
Expand All @@ -238,20 +238,6 @@ export function HelpModal( props ) {
) }
</p>

<h3>{ __( 'Prompt Genie', 'imajinn-ai' ) }</h3>
<p>
{ __(
'Because writing prompts is hard, we have created a tool called Prompt Genie that can help you turn your simple prompts into amazing masterpieces. Prompt Genie uses a custom AI model to transform your prompt into ten different powerful options to generate an image in beautiful artistic styles. Simply enter your simple prompt like "a dog running on a beach", then click on the Prompt Genie button. After a few moments it will present you with ten different expanded prompts to choose from. You can then select the one you like best and click on the Generate button to generate a set of images. If you want to try a different prompt, just click on the Prompt Genie button again and choose a new option.',
'imajinn-ai'
) }
</p>
<p>
{ __(
"Summoning Prompt Genie does not use any of your credits, so you can summon it as many times as you like. However each time you generate a set of images from one of it's prompts you will use one credit like normal.",
'imajinn-ai'
) }
</p>

<h3>{ __( 'Prefilled Styles', 'imajinn-ai' ) }</h3>
<p>
{ __(
Expand Down Expand Up @@ -444,7 +430,7 @@ export function TouchupHelpModal( { isMobile, ...props } ) {
</p>
<p>
{ __(
'When modifying the prompt, there is no need to get too poetic or descriptive because most of the image and its styles are already still there and taken into account, unless you paint out a very large portion of the image. Also if Prompt Genie or our style selectors were used initially, the styles will already be applied to your modified prompt. If you entered your own styles and modifiers to the prompt field, it is best to leave them there so they will be applied to the selected area. Be careful not to change or add styles in the modified prompt that will clash with the rest of the image.',
'When modifying the prompt, there is no need to get too poetic or descriptive because most of the image and its styles are already still there and taken into account, unless you paint out a very large portion of the image. Also if our style selectors were used initially, the styles will already be applied to your modified prompt. If you entered your own styles and modifiers to the prompt field, it is best to leave them there so they will be applied to the selected area. Be careful not to change or add styles in the modified prompt that will clash with the rest of the image.',
'imajinn-ai'
) }
</p>
Expand Down
22 changes: 5 additions & 17 deletions src/block/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import { close, cloud } from '@wordpress/icons';
import metadata from '../block.json';
import { Imajinn } from './components/images/images';
import { PromptHelpModal } from './components/help-modals';
import { PromptGenieModal } from './components/PromptGenieModal';
import { LicenseModal } from './components/LicenseModal';
import { Connect } from './components/Connect';
import optionData from './option-data';
Expand Down Expand Up @@ -489,17 +488,6 @@ export default function Edit() {
{ promptStyle }
</Text>
<div className={ 'styles-form' }>
<PromptGenieModal
{ ...{
prompt,
setPrompt,
setPromptStyle,
startJob,
setError,
clearStyles,
isLoading,
} }
/>
<StyleSelect
setImageStyle={ setImageStyle }
isLoading={ isLoading }
Expand Down Expand Up @@ -579,27 +567,27 @@ export default function Edit() {
<span className={ 'imajinn-credits' }>
{ _x(
'Made with ',
'Made with love by Infinite Uploads',
'Made with love by Imajinn AI',
'imajinn-ai'
) }
<Dashicon
icon="heart"
aria-label={ _x(
'love',
'Made with love by Infinite Uploads',
'Made with love by Imajinn AI',
'imajinn-ai'
) }
/>
{ _x(
' by ',
'Made with love by Infinite Uploads',
'Made with love by Imajinn AI',
'imajinn-ai'
) }
<a
href="https://infiniteuploads.com/"
href="https://imajinn.ai/"
target={ '_blank' }
>
Infinite Uploads
Imajinn AI
</a>
</span>
</div>
Expand Down

0 comments on commit f7912b9

Please sign in to comment.