ai 로 이미지 그리기 전 prompt 조합하기 > 그누보드5 팁자료실

그누보드5 팁자료실

ai 로 이미지 그리기 전 prompt 조합하기 정보

ai 로 이미지 그리기 전 prompt 조합하기

첨부파일

influencer.zip (5.9K) 16회 다운로드 2024-06-20 13:21:06

본문

https://nanmin.kr/bbs/board.php?bo_table=influencer


<?php
 
$countries = ['korean', 'japanese', 'chinese', 'american', 'british', 'french', 'german', 'italian', 'spanish', 'russian'];
$country = $countries[array_rand(array_slice($countries, 0, 1))];
 
$hairs = ['wavy', 'curly', 'straight', 'short', 'long', 'medium', 'bob', 'pixie', 'layered', 'shaggy', 'frizzy', 'sleek', 'messy', 'braided', 'ponytailed', 'updo', 'bangs', 'side-swept', 'center-parted', 'twisted', 'dreadlocked', 'dyed', 'highlighted', 'ombre', 'balayage', 'natural'];
$hair = $hairs[array_rand($hairs)];
 
$hairColors = ['black', 'brown', 'blonde', 'red', 'gray', 'white', 'blue', 'green', 'purple', 'pink', 'orange', 'rainbow'];
$hairColor = $hairColors[array_rand($hairColors)];
 
$eyes = ['hazel', 'blue', 'green', 'brown', 'gray', 'amber', 'black', 'purple', 'red', 'pink', 'orange', 'yellow', 'gold', 'silver', 'teal', 'turquoise', 'aquamarine', 'sapphire', 'emerald', 'ruby', 'amethyst', 'topaz', 'onyx', 'opal', 'pearl', 'diamond'];
$eye = $eyes[array_rand($eyes)];
 
$wears = ['vibrant floral summer dress', 'stylish jumpsuit', 'trendy crop top and high-waisted jeans', 'chic midi skirt and blouse', 'casual t-shirt and shorts', 'elegant evening gown', 'sporty leggings and tank top', 'smart business suit', 'casual hoodie and sweatpants', 'stylish activewear'];
$wear = $wears[array_rand($wears)];
 
// $jackets = ['not wearing a jacket', 'paired with a denim jacket', 'layered with a leather jacket', 'worn with a blazer', 'styled with a bomber jacket', 'matched with a trench coat', 'accessorized with a cardigan', 'combined with a parka', 'teamed with a puffer jacket', 'paired with a kimono', 'styled with a cape'];
// $jacket = $jackets[array_rand(array_slice($jackets, 0, 3))];
$jacket = '';
 
$shoes = ['stylish sneakers', 'elegant high heels', 'casual sandals', 'trendy boots', 'classic loafers', 'sporty trainers', 'comfortable flats', 'fashionable wedges', 'chic mules', 'sophisticated oxfords'];
$shoe = $shoes[array_rand($shoes)];
 
$actions = ['wearing a trendy', 'dressed in a stylish', 'sporting a chic', 'rocking a cool', 'showcasing a fashionable', 'flaunting a trendy', 'styling a modern', 'parading a sleek', 'displaying a sophisticated', 'exuding an elegant', 'presenting a classy', 'demonstrating a smart', 'modeling a casual', 'posing in a formal', 'showing off a sporty', 'exhibiting a retro', 'illustrating a vintage', 'embodying a bohemian', 'evoking a minimalist', 'channeling a maximalist', 'representing a preppy', 'reflecting a grunge', 'emulating a hipster', 'imitating a goth', 'mimicking a punk', 'copying a glam', 'impersonating a chic', 'duplicating a casual', 'reproducing a formal', 'cloning a sporty', 'multiplying a retro', 'doubling a vintage', 'replicating a bohemian', 'mirroring a minimalist', 'matching a maximalist', 'pairing a preppy', 'combining a grunge', 'mixing a hipster', 'blending a goth', 'fusing a punk', 'uniting a glam', 'joining a chic', 'connecting a casual', 'linking a formal', 'attaching a sporty', 'bonding a retro', 'tying a vintage', 'binding a bohemian', 'fastening a minimalist', 'securing a maximalist', 'attaching a preppy', 'connecting a grunge', 'linking a hipster', 'joining a goth', 'uniting a punk', 'fusing a glam', 'blending a chic', 'mixing a casual', 'combining a formal', 'pairing a sporty', 'mirroring a retro', 'replicating a vintage', 'doubling a bohemian', 'cloning a minimalist', 'copying a maximalist', 'imitating a preppy', 'emulating a grunge', 'evoking a hipster', 'channeling a goth', 'reflecting a punk', 'representing a glam', 'illustrating a chic', 'showing off a casual', 'posing in a formal', 'modeling a sporty', 'demonstrating a retro', 'presenting a vintage', 'exuding a bohemian', 'flaunting a minimalist', 'styling a maximalist', 'rocking a preppy', 'sporting a grunge', 'dressed in a hipster', 'wearing a goth', 'paired with a punk', 'layered with a glam', 'styled with a chic', 'matched with a casual', 'accessorized with a formal', 'combined with a sporty', 'teamed with a retro', 'styled with a vintage', 'paired with a bohemian', 'worn with a minimalist', 'styled with a maximalist', 'accessorized with a preppy', 'combined with a grunge', 'teamed with a hipster', 'layered with a goth', 'paired with a punk', 'styled with a glam', 'accessorized with a chic', 'combined with a casual', 'teamed with a formal', 'layered with a sporty', 'paired with a retro', 'styled with a vintage', 'accessorized with a bohemian', 'combined with a minimalist', 'teamed with a maximalist', 'layered with a preppy', 'paired with a grunge', 'styled with a hipster', 'accessorized with a goth', 'combined with a punk', 'teamed with a glam', 'layered with a chic', 'paired with a casual', 'styled with a formal', 'accessorized with a sporty', 'combined with a retro', 'teamed with a vintage', 'layered with a bohemian', 'paired with a minimalist', 'styled with a maximalist', 'accessorized with a preppy', 'combined with a grunge', 'teamed with a hipster', 'layered with a goth', 'paired with a punk', 'styled with a glam', 'accessorized with a chic', 'combined with a casual', 'teamed with a formal', 'layered with a sporty', 'paired with a retro', 'styled with a vintage', 'accessorized with a bohemian', 'combined with a minimalist', 'teamed with a maximalist', 'layered with a preppy', 'paired with a grunge', 'styled with a hipster', 'accessorized with a goth', 'combined with a punk', 'teamed with a glam', 'layer with a chic', 'paired with a casual', 'styled with a formal', 'accessorized with a sporty', 'combined with a retro', 'teamed with a vintage', 'layered with a bohemian', 'paired with a minimalist', 'styled with a maximalist', 'accessorized with a preppy', 'combined with a grunge', 'teamed with a hipster', 'layered with a goth', 'paired with a punk', 'styled with a glam', 'accessorized with a chic', 'combined with a casual', 'teamed with a formal', 'layered with a sporty', 'paired with a retro', 'styled with a vintage', 'accessorized with a bohemian', 'combined with a minimalist', 'teamed with a maximalist', 'layered with a preppy', 'paired with a grunge', 'styled with a hipster', 'accessorized with a goth', 'combined with a punk', 'teamed with a glam', 'layered with a chic', 'paired with a casual', 'styled with a formal', 'accessorized with a sporty', 'combined with a retro', 'teamed with a vintage', 'layered with a bohemian', 'paired with a minimalist', 'styled with a maximalist', 'accessorized with a preppy', 'combined with a grunge', 'teamed with a hipster', 'layered with a goth', 'paired with a punk', 'styled with a glam', 'accessorized with a chic', 'combined with a casual', 'teamed with a formal', 'layered with a sporty', 'paired with a retro', 'styled with a vintage', 'accessorized with a bohemian', 'combined with a minimalist', 'teamed with a maximalist', 'layered with a preppy', 'paired with a grunge', 'styled with a hipster', 'accessorized with a goth', 'combined with a punk', 'teamed with a glam', 'layered with a chic', 'paired with a casual', 'styled with a formal', 'accessorized with a sporty', 'combined with a retro', 'teamed with a vintage', 'layered with a bohemian', 'paired with a minimalist', 'styled with a maximalist', 'accessorized with a preppy'];
$action = $actions[array_rand($actions)];
 
$looks = ['confident smile', 'playful expression', 'sophisticated look', 'casual pose', 'elegant stance', 'sporty attitude', 'relaxed demeanor', 'fierce gaze', 'charming smile', 'stylish pose', 'sultry expression', 'energetic stance', 'graceful attitude', 'confident demeanor', 'playful gaze', 'sophisticated smile', 'casual expression', 'elegant look', 'sporty pose', 'relaxed stance', 'fierce attitude', 'charming demeanor', 'stylish smile', 'sultry pose', 'energetic expression', 'graceful gaze', 'confident pose', 'playful attitude', 'sophisticated demeanor', 'casual smile', 'elegant expression', 'sporty look', 'relaxed pose', 'fierce stance', 'charming attitude', 'stylish demeanor', 'sultry gaze', 'energetic smile', 'graceful expression', 'confident look', 'playful pose', 'sophisticated stance', 'casual attitude', 'elegant demeanor', 'sporty gaze', 'relaxed smile', 'fierce expression', 'charming look', 'stylish pose', 'sultry stance', 'energetic attitude', 'graceful demeanor', 'confident gaze', 'playful smile', 'sophisticated expression', 'casual look', 'elegant pose', 'sporty stance', 'relaxed attitude', 'fierce demeanor', 'charming gaze', 'stylish smile', 'sultry expression', 'energetic look', 'graceful pose', 'confident stance', 'playful attitude', 'sophisticated demeanor', 'casual smile'];
$look = $looks[array_rand($looks)];
 
$backgrounds = ['chic urban backdrop with graffiti art', 'lush green park with blooming flowers', 'modern city skyline at sunset', 'sandy beach with crashing waves', 'historic cobblestone street lined with cafes', 'colorful street market with vendors', 'elegant rooftop terrace with city views', 'cozy cafe with vintage decor', 'trendy art gallery with contemporary exhibits', 'sleek rooftop bar with panoramic views', 'vibrant music festival with live performances', 'chic boutique with designer fashion', 'charming bookstore with cozy reading nooks', 'stylish rooftop pool with lounge chairs', 'trendy food truck park with diverse cuisine', 'elegant ballroom with chandeliers and dance floor', 'modern art museum with interactive installations', 'sophisticated wine bar with a curated selection', 'cozy jazz club with live music', 'trendy nightclub with a lively atmosphere', 'chic rooftop restaurant with city views', 'vibrant street art alley with murals', 'lush botanical garden with exotic plants', 'historic theater with ornate architecture', 'charming cafe with outdoor seating', 'trendy boutique with unique fashion', 'sleek rooftop lounge with a DJ', 'elegant ballroom with a grand staircase', 'modern art gallery with avant-garde pieces', 'sophisticated wine cellar with rare vintages', 'cozy pub with a fireplace and cozy booths', 'trendy food hall with diverse vendors', 'chic rooftop bar'];
$background = $backgrounds[array_rand($backgrounds)];
 
$situations = ['holds a smartphone in one hand, ready to take a selfie, and a designer handbag hangs from her shoulder', 'carries a bouquet of fresh flowers and a stylish clutch, looking for her date',  'holds a coffee cup and a book, enjoying a quiet moment in a cafe', 'carries a laptop bag and a notebook, on her way to a business meeting', 'holds a shopping bag and a credit card, indulging in retail therapy', 'carries a picnic basket and a blanket, planning a romantic outing', 'carries a musical instrument and sheet music, preparing for a performance', 'holds a paintbrush and canvas, creating a masterpiece', 'carries a pet carrier and treats, taking her furry friend for a walk', 'holds a microphone and sheet music, rehearsing for a performance'];
$situation = $situations[array_rand($situations)];

 
$elements = ['elements of a bustling city street', 'vibrant colors and patterns', 'natural landscapes and serene settings', 'urban architecture and modern design', 'historical landmarks and cultural sites', 'fashionable boutiques and trendy cafes', 'artistic murals and street art', 'cozy interiors and stylish decor', 'sophisticated galleries and exhibitions', 'lively music venues and performances', 'chic restaurants and rooftop bars', 'charming bookstores and cafes', 'trendy boutiques and fashion shows', 'sleek lounges and nightlife scenes', 'elegant ballrooms and events', 'modern art installations and exhibits', 'sophisticated wine bars and tastings', 'cozy pubs and live music', 'trendy food halls and diverse cuisine', 'chic rooftop venues and city views', 'vibrant street markets and vendors', 'lush botanical gardens and exotic plants', 'historic theaters and performances', 'charming cafes and outdoor seating', 'trendy boutiques and unique fashion', 'sleek rooftop lounges and DJs', 'elegant ballrooms and grand events', 'modern art galleries and avant-garde pieces', 'sophisticated wine cellars and rare vintages', 'cozy pubs and fireplaces', 'trendy food halls and diverse vendors', 'chic rooftop bars'];
$element = $elements[array_rand($elements)];
 
$views = ['coffee shop and trendy boutiques in view', 'lush park with blooming flowers and greenery', 'modern city skyline with skyscrapers and lights', 'sandy beach with crashing waves and seagulls', 'historic street with cobblestones and cafes', 'colorful market with vendors and shoppers', 'elegant rooftop terrace with city views and lounge chairs', 'cozy cafe with vintage decor and cozy seating', 'trendy art gallery with contemporary exhibits and installations', 'sleek rooftop bar with panoramic views and cocktails', 'vibrant music festival with live performances and crowds', 'chic boutique with designer fashion and accessories', 'charming bookstore with cozy reading nooks and books', 'stylish rooftop pool with lounge chairs and umbrellas', 'trendy food truck park with diverse cuisine and food trucks', 'elegant ballroom with chandeliers and dance floor', 'modern art museum with interactive installations and art', 'sophisticated wine bar with a curated selection and glasses', 'cozy jazz club with live music and dim lighting', 'trendy nightclub with a lively atmosphere and dancing', 'chic rooftop restaurant with city views and tables', 'vibrant street art alley with murals and graffiti', 'lush botanical garden with exotic plants and flowers', 'historic theater with ornate architecture and performances', 'charming cafe with outdoor seating and pastries', 'trendy boutique with unique fashion and accessories', 'sleek rooftop lounge with a DJ and music', 'elegant ballroom with a grand staircase and guests', 'modern art gallery with avant-garde pieces and art', 'sophisticated wine cellar with rare vintages and bottles', 'cozy pub with a fireplace and cozy booths', 'trendy food hall with diverse vendors and food', 'chic rooftop bar with city views and cocktails'];
$view = $views[array_rand($views)];
 
 
# 위의 코드가 influencer.options.php 입니다.
 
 
$imageQty = 1;
$imageWidth = 1024; // 1024, 1792
$imageHeight = 1024; // 1024, 1792
 
include_once('./influencer.options.php');
 
$title = "{$hair}, {$hairColor}, {$eye}, {$action}, {$wear}, {$shoe}, {$look}, {$background}, {$situation}, {$element}, {$view}";
 
$prompt = "Generate a photorealistic image of a fashion influencer. She is a {$country} young woman in her mid-20s with long, {$hair} {$hairColor} hair and {$eye} eyes. She is {$action}, {$wear} {$jacket} and {$shoe}. She has a {$look} and is posing in front of a {$background}. She {$situation}. The background includes {$element}, with a {$view}. 2K";
 
// die($prompt);
 
// 이미지 생성 요청에 대한 데이터
$data = [
    'model' => 'dall-e-3',
    "prompt" => $prompt,
    'n' => $imageQty,
    'size' => "{$imageWidth}x{$imageHeight}"
];
추천
3

댓글 6개

 
 

너무 지저분해서 올리지 않으려고 했는데 그냥 소스코드 파일 올릴게요. ㅎㅎ

 




<?php
 
$countries = ...

이 파일이  influencer.options.php  입니다.

전체 2,520 |RSS
그누보드5 팁자료실 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT