How vamshi-mohan/image_steganography works
This is a Flask image-steganography application with web workflows for hiding messages, extracting them, and comparing image quality; watermarking.py also contains an interactive command-line workflow. The web handlers own image uploads, algorithm dispatch, result generation, and downloads. LSB and DCT implement the two hiding methods, while Compare computes MSE and PSNR. The source shows web routes rendering templates and writing result files. The README is empty, so the map reflects the sampled source; templates and generated output behavior are not inferred beyond the route code.
Main entry points: app.py Web routes · watermarking.py Interactive workflow · index.html Home page · encode.html Encode page
Components 15
Web interface
- Home page
templates/index.html - Web routes
app.py - Encode page
templates/encode.html - Decode page
templates/decode.html - Compare page
templates/compare.html - Download route
app.py - Image uploads
app.py - Encoded images
app.py - Decoded text
app.py
Steganography
- LSB encoding
watermarking.py - DCT encoding
watermarking.py
Image comparison
- Comparison report
app.py - Quality metrics
watermarking.py
Command line
- Interactive workflow
watermarking.py
Other components
- User
Connections 20
- User → Home page: opens
- Web routes → Home page: renders
app.py - Web routes → Encode page: renders
app.py - Web routes → Decode page: renders
app.py - Web routes → Compare page: renders
app.py - User → Web routes: submits
app.py - Web routes → Image uploads: writes
app.py - Web routes → LSB encoding: encodes or decodes
app.py - Web routes → DCT encoding: encodes or decodes
app.py - Web routes → Encoded images: writes
app.py - Web routes → Decoded text: writes
app.py - Web routes → Quality metrics: calculates metrics
app.py - Web routes → Comparison report: writes report
app.py - Web routes → Download route: routes downloads
app.py - Download route → Encoded images: reads
app.py - Download route → Decoded text: reads
app.py - Download route → Comparison report: reads
app.py - Interactive workflow → LSB encoding: calls
watermarking.py - Interactive workflow → DCT encoding: calls
watermarking.py - Interactive workflow → Quality metrics: calls
watermarking.py