Spaces:
Sleeping
Download README.md from DecodeMarketing/decode_tools: direct link, hf CLI and curl.
- Browser
- Download file 4.26 kB
-
https://huggingface.co/spaces/DecodeMarketing/decode_tools/resolve/main/README.md
- Command line
-
hf download hf://spaces/DecodeMarketing/decode_tools/README.md
-
curl -L -o README.md https://huggingface.co/spaces/DecodeMarketing/decode_tools/resolve/main/README.md
A newer version of the Streamlit SDK is available: 1.67.0
title: Brand Asset Management Tools
emoji: π§
colorFrom: blue
colorTo: green
sdk: streamlit
sdk_version: 1.32.2
app_file: app.py
pinned: false
license: mit
python_version: '3.12'
π§ Brand Asset Management Tools
A comprehensive suite of tools for managing and processing brand assets, built with Streamlit.
Features
This application provides 8 tools for brand asset management:
- Extract Images from Excel - Extract embedded images from Excel worksheets (.xlsx files)
- Name Assets by Brand - Rename files based on brand naming conventions
- Canvas White to Transparent - Convert white backgrounds to transparent in images
- Asset Overview - Generate PDF overview of your assets
- Name Stims by Block - Organize and rename stimulus files by block with output file creation
- Re-run Matrix - Re-process updated zip files and regenerate reports
- Resize - Resize images while maintaining aspect ratio on transparent canvas
- Place on Canvas - Center images on a custom canvas size
Usage
Simply select the tool you need from the tabs at the top of the application and follow the instructions for each tool.
Extract Images from Excel
- Upload one or more Excel files (.xlsx)
- Select specific worksheets or all worksheets
- Download extracted images as a ZIP file
Name Assets by Brand
- Upload images and specify brand naming patterns
- Batch rename files according to your conventions
Canvas White to Transparent
- Convert white backgrounds in images to transparent
- Useful for logo and asset preparation
Asset Overview
- Generate comprehensive PDF reports of your asset collections
Name Stims by Block
- Organize stimulus files by experimental blocks
- Create structured output files
Re-run Matrix
- Upload a modified zip from "Name Stims by Block"
- Re-analyze files and regenerate PDF/Excel reports
Resize
- Resize images to specific dimensions
- Maintain transparent backgrounds
Place on Canvas
- Center images on custom canvas sizes
- Perfect for creating consistent asset formats
Requirements
- Python 3.12
- Streamlit 1.32.2
- OpenCV (headless)
- Pillow
- ReportLab
- Pandas
- openpyxl
- xlrd
See requirements.txt for complete dependencies.
Local Development
To run this application locally:
pip install -r requirements.txt
streamlit run app.py
Verification
Before pushing changes, run the structural validator:
python scripts/repo_validate.py
It performs a py_compile sweep over every tracked *.py, verifies requirements.txt is parseable, and checks the README HF Spaces frontmatter. The same script runs on every PR via .github/workflows/repo_validate.yml. Ruff lint over changed Python runs separately via .github/workflows/gate.yml.
Branch & Deploy
main is the development base AND the production deploy branch β every push to main triggers .github/workflows/main.yml, which redeploys the Hugging Face Space at https://huggingface.co/spaces/DecodeMarketing/decode_tools. There is no staging step.
For the full rules β what is "deploy-affecting", the post-merge continuity check, branch naming, PR template β see:
docs/guides/protected-boundary-policy.mdβ whatmainprotects and how to touch it safelydocs/guides/git-and-pr-rules.mdβ branch model, observed branches, PR targetdocs/guides/review-workflow.mdβ reviewer subagent contract.github/pull_request_template.mdβ PR checklist
Architecture
app.py wires 8 tabs (tab1.pyβtab8.py) into a single Streamlit page; all tabs share utilities from helper.py. For the topology map and the helper consumer table, see:
docs/architecture/repository-erd.mdβ runtime topology, file map, deploy pipedocs/architecture/active-surface.mdβhelper.pyexports and which tab consumes what
For the full doc tree: docs/INDEX.md. For AI-contributor context: AGENTS.md and CLAUDE.md.