Decode Any Shot
Upload a reference image from a film, photograph, or screenshot. Get instant technical analysis of camera settings, lighting, and color grade.
{error}
import { useState, useEffect } from 'react' import ImageUploader from './components/ImageUploader' import AnalysisResults from './components/AnalysisResults' import LoadingAnalysis from './components/LoadingAnalysis' const API_URL = import.meta.env.VITE_API_URL || '' function App() { const [image, setImage] = useState(null) const [imagePreview, setImagePreview] = useState(null) const [analysisResult, setAnalysisResult] = useState(null) const [isAnalyzing, setIsAnalyzing] = useState(false) const [error, setError] = useState(null) const [showDonationPrompt, setShowDonationPrompt] = useState(false) const handleImageUpload = async (file) => { setImage(file) setImagePreview(URL.createObjectURL(file)) setError(null) setIsAnalyzing(true) setAnalysisResult(null) const formData = new FormData() formData.append('image', file) try { const response = await fetch(`${API_URL}/api/analyze`, { method: 'POST', body: formData, }) if (!response.ok) { throw new Error('Analysis failed') } const result = await response.json() setAnalysisResult(result) // Track analysis count for donation prompt const count = parseInt(localStorage.getItem('analysisCount') || '0') + 1 localStorage.setItem('analysisCount', count.toString()) // Show donation prompt every 5 analyses (after 5, 10, 15, etc.) const lastPrompt = parseInt(localStorage.getItem('lastDonationPrompt') || '0') if (count >= 5 && count - lastPrompt >= 5) { setTimeout(() => setShowDonationPrompt(true), 1500) localStorage.setItem('lastDonationPrompt', count.toString()) } } catch (err) { setError('Failed to analyze image. Please try again.') console.error(err) } finally { setIsAnalyzing(false) } } const handleReset = () => { setImage(null) setImagePreview(null) setAnalysisResult(null) setError(null) } return (
Analyze & Recreate Any Shot
Upload a reference image from a film, photograph, or screenshot. Get instant technical analysis of camera settings, lighting, and color grade.
{error}
This tool is free and ad-free. If it's helping your creative work, consider supporting its development with a small donation.
You won't see this again for a while