Skip to content
View Johnv412's full-sized avatar

Block or report Johnv412

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Johnv412/README.md

PixDreamer – AI-Powered Image Transformation Plugin for WordPress

PixDreamer brings state-of-the-art AI image generation and transformation directly into WordPress.
With deep OpenAI DALL·E 3 integration and tight Elementor support, you can cartoonize photos, apply vintage effects, generate baby predictions from parent pictures, and much more—without leaving your site.

✨ Key Features

Category Details
AI Transformations Cartoonize, old-photo, painting styles (Impressionist, Cubist, Watercolor, etc.), sketch, pixel-art, anime & more.
Baby Generator Upload two parent photos to predict a photorealistic baby image with gender, age & resemblance controls.
Elementor Widgets Drag-and-drop “Transformation” & “Baby Generator” widgets plus pre-built Elementor page templates (Homepage, Pricing, Studio, Dashboard).
Credit System Charge users per transformation, grant free guest tries, view history & purchase more credits (Stripe/PayPal ready).
Admin Dashboard One-click OpenAI key test, advanced settings, credit packages and transaction log.
Secure AJAX Nonce-protected AJAX endpoints, server-side validation & temporary file storage with .htaccess shielding.
Media Library Sync Results saved as WordPress attachments with meta tags for easy management and user download.
Fully Themed UI Modern CSS (Poppins & Inter), responsive design, before/after slider, loading spinners, share modals and more.

🛠️ Installation

  1. Download / Clone

    git clone https://github.com/Johnv412/-pixdreamerx pixdreamer

    or grab the latest ZIP from the releases page.

  2. Upload to WordPress

    • WP Admin ➜ Plugins ➜ Add NewUpload Plugin ➜ select pixdreamer.zip.
    • Or copy the folder into wp-content/plugins/.
  3. Activate

    Go to WP Admin ➜ Plugins ➜ Activate “PixDreamer”.

⚙️ Configuration

  1. OpenAI API key

    WP Admin ➜ PixDreamer ➜ Dashboard
    Paste your OpenAI secret key ▸ click Save API Key ▸ press Test Connection to verify.

  2. Credit Packages & Prices

    WP Admin ➜ WooCommerce / Stripe Settings (or your custom gateway) – create products that grant credits.
    Credits are stored in user meta pixdreamer_credits.

  3. Elementor Templates

    Import the included JSON files or use the ready PHP templates under templates/elementor/.
    Widgets appear inside the “PixDreamer” category.

  4. Front-end Script & Styles

    The plugin auto-enqueues assets/css/pixdreamer.css and assets/js/pixdreamer.js.
    If you use a caching/optimization plugin, clear caches after activation.

🚀 Usage

A. Image Transformation

  1. Edit a page with Elementor.
  2. Drag PixDreamer Image Transformation widget.
  3. Choose an image, select style & parameters, hit Transform Image.
  4. Result appears with before/after slider and download/share buttons.
  5. Credits are deducted automatically.

B. Baby Generator

  1. Drag PixDreamer Baby Generator widget.
  2. Upload two parent photos, set baby age/gender/influence.
  3. Click Generate Baby – the AI returns a photorealistic baby portrait.
  4. Save or share the generated image.

C. Shortcodes

Shortcode Purpose
[pixdreamer_transformation_form] Render standalone transformation form.
[pixdreamer_image_upload] Drop-zone uploader used by templates.
[pixdreamer_transformation_results] Output result container.
[pixdreamer_transformation_history] Shows logged-in user history.

D. Credit Balance

Use the User Credits Elementor widget or call:

echo pixdreamer_get_user_credits( $user_id );

🆘 Troubleshooting

Issue Fix
“OpenAI API not configured” Ensure key is saved in PixDreamer ➜ Dashboard. Test should return “Connection successful”.
AJAX 403 or nonce errors Make sure wp_head() / wp_footer() output isn’t stripped by your theme or cache. Clear caches.
Images not storing Check wp-content/uploads/pixdreamer-temp permissions (writable) and GD/Imagick availability.
Blank result image Verify OpenAI usage limits, model availability and that the prompt is valid; inspect server error log.
Credit not deducted Credits deduct only on successful API call. Check user meta pixdreamer_credits and transaction log.

🤝 Credits & Acknowledgments

  • John Vallario – Project lead & WordPress integration.
  • OpenAI – DALL·E 3 image generation API.
  • Elementor – Powerful page builder powering the custom widgets.
  • Icons by Font Awesome.
  • Inspiration & feedback from the one2agi.com community.

© 2025 PixDreamer. Released under the GPL-2.0 license.

Popular repositories Loading

  1. Johnv412 Johnv412 Public

    Config files for my GitHub profile.

    PHP

  2. sb1-xpc4eg sb1-xpc4eg Public

    Created with StackBlitz ⚡️

    TypeScript

  3. sb1-5doxef sb1-5doxef Public

    Created with StackBlitz ⚡️

    TypeScript

  4. sb1-fucgvl sb1-fucgvl Public

    Created with StackBlitz ⚡️

    TypeScript

  5. sb1-fucgvl.LOYALTY sb1-fucgvl.LOYALTY Public

    Created with StackBlitz ⚡️

    TypeScript

  6. sb1-mapxamLOYALTY sb1-mapxamLOYALTY Public

    Created with StackBlitz ⚡️

    TypeScript