레이블이 visual studio code인 게시물을 표시합니다. 모든 게시물 표시
레이블이 visual studio code인 게시물을 표시합니다. 모든 게시물 표시

2025년 3월 16일 일요일

Creativity: Simple AI Image Prompt Generator (No Coding Required)

 


  
  

import tkinter as tk
from tkinter import ttk
import textwrap

# Define the elements and their options (20 options per element)
elements = {
    "Quality": ["High Quality", "8K", "4K", "HDR", "Realistic", "Low Quality", "Blurry", "Sharp", "Digital", "Analog", "Vintage", "Modern", "Futuristic", "Dreamy", "Hyperrealistic", "Impressionistic", "Pop Art", "Surreal", "Oil Painting", "Watercolor"],
    "Gender": ["Male", "Female"],  # Only Male and Female for Gender
    "Number of People": ["1 person", "2 people", "3 people", "4 people", "5 people", "6 people", "7 people", "8 people", "9 people", "10 people", "Group", "Crowd", "Family", "Friends", "Lovers", "Team", "Organization", "Squad", "Club", "Community"],
    "Age": ["Infant", "Toddler", "Child", "Teenager", "20s", "30s", "40s", "50s", "60s", "70s", "80s", "Elderly", "Young", "Old", "Minor", "Adult", "Middle-aged", "Senior", "Very Old", "Baby"],
    "Appearance": ["Beautiful", "Handsome", "Cute", "Attractive", "Unique", "Ordinary", "Stylish", "Vibrant", "Elegant", "Intense", "Mysterious", "Pure", "Individual", "Neat", "Glamorous", "Simple", "Modest", "Bold", "Gentle", "Cold"],
    "Ethnicity": ["Korean", "American", "European", "African", "Asian", "Latin American", "Mixed", "Indigenous", "Middle Eastern", "Australian", "Russian", "Chinese", "Japanese", "Indian", "Brazilian", "Canadian", "Mexican", "German", "French", "Italian"],
    "Expression": ["Happy", "Sad", "Angry", "Surprised", "Serious", "Smiling", "Neutral", "Confused", "Excited", "Worried", "Scared", "Calm", "Thoughtful", "Determined", "Playful", "Sarcastic", "Annoyed", "Disappointed", "Hopeful", "Pessimistic"],
    "Pose": ["Standing", "Sitting", "Walking", "Running", "Dancing", "Thinking", "Relaxing", "Fighting", "Meditating", "Sleeping", "Reading", "Writing", "Painting", "Cooking", "Playing", "Working", "Traveling", "Exploring", "Observing", "Contemplating"],
    "Clothing": ["Suit", "Casual", "Dress", "Uniform", "Traditional", "Sportswear", "Swimsuit", "Cape", "Armor", "Robe", "Jeans", "T-shirt", "Skirt", "Coat", "Hat", "Gloves", "Shoes", "Boots", "Socks", "Underwear"],
    "Location": ["City", "Countryside", "Forest", "Beach", "Mountain", "Sky", "Indoor", "Cafe", "School", "Space", "Desert", "Jungle", "Ocean", "River", "Lake", "Park", "Garden", "Museum", "Library", "Temple"],
    "Time of Day": ["Day", "Night", "Dawn", "Dusk", "Morning", "Afternoon", "Evening", "Midnight", "Sunrise", "Sunset", "Golden Hour", "Blue Hour", "Twilight", "Noon", "Early Morning", "Late Night", "Rush Hour", "Quiet Time", "High Noon", "Darkness"],
    "Weather": ["Sunny", "Cloudy", "Rainy", "Snowy", "Windy", "Stormy", "Foggy", "Rainbow", "Clear", "Overcast", "Drizzling", "Hail", "Blizzard", "Heatwave", "Cold Snap", "Monsoon", "Hurricane", "Typhoon", "Tornado", "Mild"],
    "Mood": ["Peaceful", "Energetic", "Dark", "Bright", "Mysterious", "Dreamy", "Quiet", "Tense", "Happy", "Sad", "Romantic", "Scary", "Exciting", "Calm", "Chaotic", "Serene", "Gloomy", "Optimistic", "Pessimistic", "Melancholy"],
    "Style": ["Oil Painting", "Watercolor", "Pop Art", "Surrealism", "Impressionism", "Pixel Art", "Cartoon", "Anime", "Realistic", "3D Rendering", "Photorealistic", "Abstract", "Minimalist", "Vintage", "Modern", "Cyberpunk", "Steampunk", "Fantasy", "Sci-Fi", "Gothic"],
    "Color": ["Bright", "Dark", "Pastel", "Monochrome", "Red", "Blue", "Green", "Yellow", "Purple", "Gold", "Silver", "Orange", "Pink", "Brown", "Black", "White", "Gray", "Teal", "Magenta", "Cyan"],
    "Lighting": ["Soft", "Hard", "Natural", "Artificial", "Backlight", "Sidelight", "Dramatic", "Ambient", "Rim Lighting", "Volumetric Lighting", "Global Illumination", "Ray Tracing", "Studio Lighting", "Candlelight", "Firelight", "Moonlight", "Sunlight", "Neon", "Fluorescent", "Spotlight"],
    "Composition": ["Close-up", "Wide Shot", "Panorama", "Symmetry", "Asymmetry", "Eye-level", "High Angle", "Low Angle", "Rule of Thirds", "Leading Lines", "Golden Ratio", "Dutch Angle", "Bird's Eye View", "Worm's Eye View", "Framing", "Depth of Field", "Negative Space", "Dynamic Composition", "Static Composition", "Balanced"],
    "Special Effects": ["Light", "Shadow", "Fog", "Dust", "Reflection", "Blur", "Particles", "Lightning", "Glow", "Bloom", "Lens Flare", "Chromatic Aberration", "Vignette", "Distortion", "Glitch", "Noise", "Smoke", "Fire", "Water", "Ice"],
    "Entity Type": ["Human", "Animal", "Robot", "Alien", "Virtual Person", "Doll", "Hero", "Villain", "Noble", "Commoner", "Creature", "Monster", "Mythical Being", "Spirit", "Ghost", "Demon", "Angel", "Golem", "Construct", "Automaton"]
}

# Create the main window
root = tk.Tk()
root.title("Image Prompt Generator")

# Dictionary to store selected options
selected_options = {}

# Create a frame for the input fields
frame = ttk.Frame(root, padding=10)
frame.pack()

# Create input fields for each element
for element, options in elements.items():
    label = ttk.Label(frame, text=element + ":")
    label.grid(row=len(selected_options), column=0, sticky=tk.W)

    # Create a Combobox (dropdown menu)
    selected_option = tk.StringVar()
    combobox = ttk.Combobox(frame, textvariable=selected_option, values=options, state="readonly")
    combobox.grid(row=len(selected_options), column=1, sticky=tk.W)
    combobox.set(options[0])  # Set a default value

    # Create an Entry (text input field) with larger width
    entry = ttk.Entry(frame, textvariable=selected_option, width=30)
    entry.grid(row=len(selected_options), column=2, sticky=tk.W)

    selected_options[element] = selected_option

# Function to generate the prompt
def generate_prompt():
    prompt_parts = []
    for key, option in selected_options.items():
        prompt_parts.append(f"{key}: {option.get()}")

    prompt = ", ".join(prompt_parts)

    # Wrap the prompt for better readability
    wrapped_prompt = textwrap.fill(prompt, width=80)  # Adjust width as needed

    # Display the prompt in the text box
    prompt_text.delete("1.0", tk.END)  # Clear the text box
    prompt_text.insert(tk.END, wrapped_prompt)

# Create a button to generate the prompt
generate_button = ttk.Button(root, text="Generate Prompt", command=generate_prompt)
generate_button.pack(pady=10)

# Create a text box to display the generated prompt
prompt_text = tk.Text(root, height=10, width=80)
prompt_text.pack()

# Run the main loop
root.mainloop()  


Tired of struggling to describe the perfect image for AI art generators? This free, easy-to-use tool helps you craft detailed and effective prompts, unlocking your creative potential without any coding knowledge!


What it Does:

This application generates comprehensive image prompts by allowing you to select from a range of options – from image quality and gender to mood, style, and special effects. Simply choose your desired parameters, and the tool will create a ready-to-use prompt for popular AI image generators like Midjourney, Stable Diffusion, and DALL-E 2.

  • Intuitive Interface: Easy-to-understand dropdown menus and input fields.

  • Comprehensive Options: Covers a wide range of image characteristics.

  • Ready-to-Use Prompts: Generates prompts formatted for popular AI art tools.

  • Standalone Application: No Python installation required! (See download link below)
Download : Prompt_generator.exe

mportant Notes:

mportant Notes:

  • Google AI Studio License: This tool utilizes concepts and ideas inspired by Google AI Studio. Please review the Google AI Studio terms of service and licensing agreements before using generated prompts with AI image generators: Link to Google AI Studio Terms of Service

  • Disclaimer: I am a developer learning and experimenting with AI. While I've tested this application thoroughly, it may contain errors or produce unexpected results. Use at your own discretion. I am not responsible for the output generated by AI image generators using these prompts.

  • Feedback Welcome: I'm always looking to improve! Please share your feedback and suggestions in the comments below.


#AIart #ImageGenerator #PromptEngineering #AItools #Midjourney #StableDiffusion #DALLE2 #ArtificialIntelligence #CreativeTools #FreeSoftware #GoogleAIStudio #AIartcommunity #PromptGenerator #NoCode #AI

Iframe Inserter: Free Tool for Easy Content Embedding – Powered by Python, VS Code & Google AI Studio! (Download Now!)

Iframe Inserter: Simplify Embedding Content on Your Blog – Built with AI! (Download Link Below)

Do you often need to include content like videos, maps, or social media feeds in your blog posts?

I used to hate typing out HTML code every time I wrote a blog post.

Creating the right iframe code can be a headache, especially if you’re not familiar with HTML. While learning how to use Python and Visual Studio Code, I created a simple program called Iframe Inserter.

I created the Iframe Inserter tool using Google AI Studio in just 10 minutes.

The ability of AI to understand and generate Python code was invaluable. I was able to edit the code with copilot in Visual Studio Code. It’s amazing how AI technology can write code in a matter of seconds.

However, this program, which was born during my programming learning process, has only very simple functions.




What Can You Do with the Iframe Inserter?

  • Generate Iframe Code: Simply enter the URL of the content you want to embed, along with the desired width and height.

  • Platform Specific Options: Select your blogging platform from the dropdown menu (Tistory, Blogger, WordPress, Blogspot, Other). The tool will automatically adjust the code for optimal compatibility.

  • Customize the Look: Fine-tune the appearance of your embedded content with options for:

    • Background Color: Choose a background color to match your blog's design.

    • Background Image: Add a background image for a more visually appealing embed.

    • Border: Control the visibility of the iframe border.

    • Scrolling: Enable or disable scrolling within the iframe.

enter the URL








How to Use the Iframe Inserter: A Step-by-Step Guide

  1. Download the Program: [Download Link Here]

  2. Run the Program: Double-click the downloaded file to launch the Iframe Inserter.

  3. Enter the URL: In the "URL" field, paste the web address of the content you want to embed (e.g., a YouTube video, a Google Map).

  4. Set Width and Height: Enter the desired width and height of the iframe in pixels in the "Width" and "Height" fields.

  5. Select Your Platform: Choose your blogging platform from the "Blog Platform" dropdown menu.

  6. Customize (Optional):

    • Background Color: Click the "Color Selection" button to choose a background color for the iframe.

    • Background Image URL: Enter the URL of an image to use as a background.

    • Border: Enter a value for the border thickness (0 for no border).

    • Scrolling: Select "yes," "no," or "auto" from the "Scrolling" dropdown.

  7. Generate Code: Click the "Generate Iframe Code" button.

  8. Copy and Paste: The generated iframe code will appear in the "Result" label. Click the code to select it, then copy it to your clipboard (Ctrl+C or Cmd+C).

  9. Paste into Your Blog: Paste the copied code into the HTML editor of your blog post.

Free to Use – With a Disclaimer

This Iframe Inserter is completely free to use for anyone. I am happy to share this tool with the community! However, please be aware that this program was developed with the assistance of Google AI Studio. While I have made every effort to ensure its proper functionality, I cannot guarantee that it complies with all of Google AI Studio’s licensing terms and conditions. It is your responsibility to review and adhere to those terms. I am not liable for any issues arising from the use of this tool in relation to Google AI Studio’s licensing.

Download the Iframe Inserter Now: [Download Link Here]

I hope this tool will help you streamline your content embedding process and create amazing blog posts! I know this is just a simple exercise, but I hope it helps you.






#iframe #embed #blogger #tistory #wordpress #webdesign #python #vscode #googleAIstudio #ai #artificialintelligence #coding #tool #free #blogging #contentcreation #opensource #freeware #tutorial #howto

Recommended Posts

파이썬 기초 : 숫자 맞추기 게임을 제작해 보자

  컴퓨터가 무작위로 생성한 숫자를 사용자가 맞추는 게임을 만들어 보겠습니다. import tkinter as tk import random class 숫자_맞추기_게임: def __init__(self, master): ...