Create README.md
#5
by testme7 - opened
Project Title: AI Photo Application with 4K Upscaling, Face Feature Preservation, Nano Banana Model Image Generation, and Trends Section
Application Goal:
To empower users to:
Upscale photos to 4K resolution while accurately preserving facial features.
Generate new images using the Nano Banana model.
Upload an image and add a detailed prompt to refine the output.
Stay updated with the latest trends in images, prompts, and filters.
Platform Scope:
Responsive Web, iOS, Android.
Target Audience:
Designers, Marketers, Content Creators, and general users who want to improve personal photos.
Core Functions:
- 4K Upscaling with Face Feature Preservation
Input single or multiple images.
Automatic face detection.
Sharpening and noise reduction.
Restoring facial details and preventing distortion.
Output in JPG, PNG, and WebP formats.
Enhancement strength options: Light, Medium, Strong.
Before & after comparison with a drag slider. - Image Generation using Nano Banana
Text prompt box (Arabic and English).
Image aspect ratio settings: 1:1, 3:4, 4:3, 16:9.
Settings for number of steps, guidance strength, random seed.
Quick attributes: Realistic, Cinematic, Portrait, Fashion, Anime, Digital Art.
Batch generation up to 4 images.
Regenerate button with fixed seed when needed. - Upload Image + Detailed Prompt
Reference image input.
Detailed prompt field describing style, scene, lighting, lens, clothing, and background.
Optional attribute fields: Approximate age, Mood, Shooting location, Time, Lighting type.
Slider for impact strength from reference image vs. text. - Trends Section
Page displaying the latest trends.
Ready-to-use prompt trends.
Popular filters and actions.
Quick templates corner: Product ad, Profile picture, YouTube cover, Event poster.
Popularity counter for each trend: Number of uses, Satisfaction rate.
User Experience:
Flow 1: Image Enhancement
Home > "Start" button > Choose "4K Enhance" > Upload image > Select enhancement strength > Before & after preview > Save or Share.
Flow 2: New Generation
Home > Choose "Generate with Prompt" > Write prompt > Select style and size > Generate > Review results > Download or edit prompt.
Flow 3: Reference Image + Prompt
Home > Choose "Image with Prompt" > Upload image > Write details > Select reference impact strength > Generate > Save.
Flow 4: Trends
Home > Enter "Trends" > Select a trend > Click "Use Template" > Prompt is auto-filled > Adjust then Generate.
Image Detail Screen:
Operation name, Used parameters, "Regenerate with same parameters" button, "Clone with modifications" button.
Editor:
Cropping tools, Rotation, Red-eye removal, Brightness & Contrast, Simple filters.
Project Management:
Folders, Favorites, Operation history, Search by name and parameters.
Copy and Language:
Interface in Arabic and English. Automatic prompt language detection. Internal real-time translation when needed.
Processing and Output Quality:
Maximum output resolution: 3840x2160.
UI response time less than 2000ms after interaction.
No artifacts in facial features. Preserve eye, nose, and mouth proportions.
No unrealistic skin tone changes.
Smart compression while maintaining details.
AI and Models:
4K Enhancement:
Upscaling model supported by custom face restoration.
Multi-face detection.
Blending enhancement results with original at a controllable ratio.
Nano Banana Image Generation:
Utilize Nano Banana model as the basis for generation.
Seed control support.
Realistic and portrait style support.
Security and Compliance:
Automatic filtering of inappropriate content.
Prevent impersonation of public figures when safe mode is active.
Display warning when uploading images of individuals without permission.
Storage and Privacy:
Secure encrypted storage.
Automatic file deletion after 30 days (adjustable in settings).
Option to not save after upload.
Analytics:
Daily uploaded images count.
Generation success rates.
Most used trends.
User satisfaction after each operation.
Subscription and Payment:
Free plan with daily limit.
Monthly and annual Pro plan.
Purchase additional generation packages.
Error Management:
Clear messages.
Retry on generation failure.
Invisible error log for the user.
Product Acceptance:
95%+ success rate for 4K upscaling on images with clear faces.
Average generation time for a 1024x1024 image less than 10 seconds on the server.
Satisfaction rate of 4 out of 5 or higher within the first month.
Ready-to-Use Prompt Examples:
Realistic Portrait:
Prompt: Realistic portrait of a person in their twenties. Soft lighting. Gray studio background. 85mm lens. Natural skin details. Shallow depth of field. Neutral colors.
Cinematic:
Prompt: Rainy street at night. Neon light. Reflections on the ground. Low angle perspective. Slight film grain. 16:9 aspect ratio.
Product:
Prompt: Perfume bottle on a white marble surface. Strong side lighting. Soft shadows. Blurred background. Advertising quality.
Anime:
Prompt: Anime character smiling. Short blue hair. Yellow jacket. City background during the day. Clean anime style.
Detailed Prompt for Reference Image Upload:
Prompt: Accurately use the features from the uploaded image. Soft realistic photography style. Warm tone. Adjust lighting to be side-lit. Maintain eye and mouth proportions. Prevent any drastic change in skin tone. Make the background non-distracting.
Prompt for 4K Upscaling with Face Preservation:
Prompt: Enhance resolution to 4K. Lightly clean noise. Increase sharpness in hair and eyes. Restore skin while preserving pores. Retain fine wrinkles. Prevent over-smoothing. Do not change colors.
Trends Screen Specifications:
Trend cards with thumbnail image, concise title, short description, "Use Now" button, usage counter, star rating. Filtering by category: Today's new, Most popular, Trending up.
Admin Panels:
Admin Panel:
Add new trend, Publish, Unpublish, Order by performance, Monitor abuse reports.
Support Panel:
Follow up on reports, Automated responses, Solution templates.
Ready-to-Use UI Copy:
Home:
"Enhance your photos to 4K while preserving details. Create stunning images with one click."
Buttons: Start Now, Browse Trends, My Projects.
Quality Upscale:
"Upload your image. Choose enhancement level. See the difference instantly."
Generate with Prompt:
"Write your idea. Choose style and size. Press Generate."
Trends:
"Discover what others are using today. Try it now."
Result Page:
"Your image is ready. Download it. Share it. Re-edit."
Data Structure:
User:
id, email, plan, credits.
Project:
id, userId, name, createdAt.
Asset:
id, projectId, type, originalUrl, resultUrl, meta.
Trend:
id, title, prompt, tags, thumbnail, uses, rating.
Brief Acceptance Tests:
Upload a single-face image. Activate strong 4K. Result preserves eye and mouth features without distortion.
Generating four images with the same seed yields similar results.
Applying a ready-made trend automatically fills the prompt.
Before & after preview works smoothly on mid-range devices.
Performance Requirements:
UI loading time less than 3 seconds on a moderate network.
Resume progress on network interruption.
Compress images before upload to reduce waiting time.
Standard Prompt for Developer or Build Tool:
"Build a complete web, iOS, and Android application for photo enhancement and 4K upscaling with facial feature restoration, and image generation using the Nano Banana model. The application includes four main capabilities: 4K photo enhancement with face detection and restoration, preserving eye, nose, and mouth features, and preventing skin tone changes. New image generation via prompt using Nano Banana with control over style, size, seed, steps, and options for realistic, cinematic, portrait, and anime. Upload a reference image and add a detailed prompt with a slider to determine the weight of the image's influence versus the text. A trends section displaying popular prompts and templates with usage counters and ratings. Provide an Arabic and English experience. Support projects, folders, favorites, and operation history. Add before & after preview. Simple editing tools. Usage analytics. Subscription plans. Content protection and permissions. Secure storage. Fast UI response time. Output resolution up to 4K. Success metrics as stated above. Use the provided UI copy. Adhere to the tests, acceptance criteria, and quality standards mentioned in this document."