Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
•
IT Security NachrichtenOnePlus/OxygenOS: Schad-App erhält Root-Zugriff ohne Berechtigungen(24.09.2026 um 23:38 Uhr)
•
IT Security NachrichtenRyuk Member Karen Vardanyan Sentenced to Two Years in U.S. Prison(24.09.2026 um 22:50 Uhr)
•••••
Hacking & PentestingRyuk Member Karen Vardanyan Sentenced to Two Years in U.S. Prison(24.09.2026 um 22:50 Uhr)
•
AI & KI NachrichtenWhy the U.N. Still Matters(24.09.2026 um 23:00 Uhr)
•••
IT Security NachrichtenOnePlus/OxygenOS: Schad-App erhält Root-Zugriff ohne Berechtigungen(24.09.2026 um 23:38 Uhr)
•
IT Security NachrichtenRyuk Member Karen Vardanyan Sentenced to Two Years in U.S. Prison(24.09.2026 um 22:50 Uhr)
•••••
Hacking & PentestingRyuk Member Karen Vardanyan Sentenced to Two Years in U.S. Prison(24.09.2026 um 22:50 Uhr)
•
AI & KI NachrichtenWhy the U.N. Still Matters(24.09.2026 um 23:00 Uhr)
••
Intelligence View
⚡ tsecurity.de Intelligence

How I Built an AI Photo Enhancer That Makes Your Selfies Less Tragic (Using Google Gemini & Python)

Or: "The time I convinced an AI to make my vacation photos look like I actually know how to use a camera" Hey there, fellow code warriors and photography disasters! 👋 Remember the last time you took a "perfect" photo, only to check it la…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Or: "The time I convinced an AI to make my vacation photos look like I actually know how to use a camera"



Hey there, fellow code warriors and photography disasters! 👋



Remember the last time you took a "perfect" photo, only to check it later and wonder why your smile looked awkward and your pose was just... off? Yeah, me too. That's exactly why I built PhotoPro.






The Problem:



Here’s the thing: I’m not a professional photographer. And photo editing? Even worse. Because to “properly” edit photos you apparently need to know:




  • What filters and sliders actually do

  • When to use brightness vs. exposure vs. gamma (yes, that’s a thing)

  • Color theory (whatever that is)



Guess what? I know none of that. And to make things worse, I’m lazy and I don’t want to spend 45 minutes sliding things left and right like I’m on Tinder.



Traditional photo editing software isn’t trivial. Plus, who has time to learn 47 different metrics and filters when you could be doing literally anything else?



So I asked myself:



👉 What if I just told an AI what I want, and let it figure out the math?






Solution: Let AI Do the Heavy Lifting



Instead of learning how to edit, I built an app that lets you upload a photo and describe what you want in plain English (or, y’know, chaotic keyboard smashes), and Google Gemini AI handles the rest.




  • Want it cinematic? Just say so.

  • Want it to look like Wes Anderson shot it? Easy.

  • "Fix my face. Please. I beg you." ? Done.



But — and this is important — I didn’t want to alienate actual photo editors. So PhotoPro also supports good ol’ fashioned filters, grouped in categories for the pros who still like their sliders.






Why Gemini?



Now, here’s the deal:




  • When we say prompts, we say LLMs.

  • When we say open source project, we say open source VLMs.



BUT… running open source image models locally requires GPUs that cost more than my monthly rent. So, as a poor engineer working nights and weekends, I took the practical route: use the free Google Gemini Flash API and build the app around it.



No infra headaches, no cloud bills, just free AI sauce on my images.






The Three Enhancement Modes






1. Prompt-only (The Lazy Mode)



Upload your tragic photo → write something like:




“Make this look like it was shot on film in the 80s with moody vibes”




...and boom. Enhanced.



(But you’ll need some prompt-engineering magic — yes, being vague like “make me hotter” doesn’t always work 🙃).








2. Filter-only



Here’s where I let the pros flex their muscles.



I created categories of filters like:




self.basic_filters = ['brightness', 'contrast', 'saturation', 'exposure', 'sharpness']
self.color_filters = ['temperature_tint', 'hsl', 'split_toning', 'curves']
self.artistic_filters = ['vintage', 'cinematic', 'black_white', 'mood_based', 'instagram_presets']
self.effects_filters = ['vignette', 'grain_noise', 'blur', 'light_leaks_flares', 'glitch_pixelate_sketch']
self.ai_filters = ['auto_enhance', 'sky_replacement', 'background_removal_blur', 'face_retouch', 'object_removal', 'style_transfer']
self.editing_filters = ['crop_rotate', 'flip_mirror']
self.overlay_filters = ['add_text', 'stickers_emojis', 'brush_draw', 'frames_borders']

self.filter_categories = {
"📊 Basic Adjustments": self.basic_filters,
"🎨 Color & Tone": self.color_filters,
"🎭 Artistic Styles": self.artistic_filters,
"✨ Visual Effects": self.effects_filters,
"🤖 AI-Powered": self.ai_filters,
"📐 Transform & Edit": self.editing_filters,
"📝 Overlays & Text": self.overlay_filters
}






⚠️ Full honesty here: I didn’t invent these categories myself.



I literally asked ChatGPT to generate them for me, because — as I said — I suck at photo editing.



If I had to come up with this list, I’d have stopped at “brightness” and “make me look cool.”



The app flow is:




  1. Choose filters from categories (checkboxes).

  2. Configure them with sliders/inputs.

  3. Get a structured prompt + apply.








3. Prompt + Filters



The best of both worlds.




  • A text prompt ("Make me look like a cyberpunk protagonist").

  • Manual filters ("cinematic")



PhotoPro eats the combo prompt + filters, and outputs something magical.








🛠️ Under the Hood





  • Frontend: Streamlit (fast prototyping, zero effort UI)


  • Backend: Google Gemini Flash API (free tier = lifesaver)


  • Image Processing: PIL + NumPy (still useful for prep & save)


  • Logic: Python






Try It Yourself!



Want to see the magic?






👤 For Users








💻 For Developers






Clone the Repo






git clone https://github.com/ABDELLAH-Hallou/gemini-photo-filters
cd gemini-photo-filters









Set Up Your Environment






# Create a virtual environment (because dependency hell is real)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install the magic
pip install -r requirements.txt









Get Your API Key




  • Go to Google AI Studio

  • Create an API key (it's free-ish)

  • Add it to .streamlit/secrets.toml:




GEMINI_API_KEY = "your-actual-api-key-here"









Run the Thing






streamlit run app.py







Then navigate to localhost:8501 and start making your photos less tragic!



You can always customize filters in utils/filters.py






What's Next? (The Roadmap of Dreams)



Here's what I'm planning to add when I'm not busy procrastinating:





  • Style Transfer: Train the AI on your preferred aesthetic.


  • Social Media Integration: Auto-post your enhanced photos (with your permission, obviously).


  • Mobile App: Because who enhances photos on desktop anymore?


  • Collaborative Features: Share your enhancement settings with friends.


  • AI Roast Mode: Let the AI critique your photos (for the masochists).






Final Thoughts



Building PhotoPro taught me that sometimes the best solutions come from solving your own problems. I needed better photos, AI existed, and Python made it possible to connect the two.

CTI Threat Relationship Graph2 Knoten / 1 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
SOC Incident Playbook: Remote Code Execution (RCE) Defense
Syntax validiert (0 Fehler)
title: Detect Exploitation - How I Built an AI Photo Enhancer That Makes Your Selfies Less Tragic (Using Google Gemini & Python)
id: 4a6e2d4a-fdaa-4a51-8150-d193a4e14aa3
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-25
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-25"
        description = "YARA Signature for "
    strings:
        $str = "How I Built an AI Photo Enhanc" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("How I Built an AI Photo Enhancer That Ma")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*How I Built an AI Photo Enhancer That Ma*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "How I Built an AI Photo Enhancer That Ma"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc
🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich How I Built an AI Photo Enhancer That Ma.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How I Built an AI Photo Enhancer That Makes Your Selfies Less Tragic (Using Google Gemini & Python)

Thematisch verwandte Begriffe: Built, Photo, Enhancer, That · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-82585 | The Botslab G980H dash camera firmware transmits sensitive information o…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel • Rechts: nächster Artikel • unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...
↗ Original-Quelle