I made this for the demo for the Adobe Express Add-ons hackathon. Super simple, not at all polished, just to illustrate how the idea works. In the future I'd like to add more complicated image detection (not just shapes). Ideas are welcome!
StyleSnatch analyzes images to detect:
- Text content with font and color information
- Shapes with color information
- Layout positioning of elements
The tool outputs:
- JSON file with detailed analysis
- Adobe Express compatible JavaScript code
- Debug visualization image
- Python 3.11+
- WhatFontIs API Key (for font detection)
- Clone the repository
- Install dependencies:
pip install -r requirements.txt- Create a
.envfile in the project root and add your WhatFontIs API key:
API_KEY=your_api_key_here
- Start the analysis server:
python app.py- Run the example script with your image:
python example.pyThe script will:
- Send the image to the analysis server
- Save analysis results to
analysis_results.json - Generate Adobe Express code in
export_adobe_express.txt - Create a debug visualization in
debug_output_live.png
- Copy the contents of
export_adobe_express.txtinto Adobe Express playground to recreate the layout.