diff --git a/frontends/web/app.py b/frontends/web/app.py index 5ccec5b..af0c88d 100644 --- a/frontends/web/app.py +++ b/frontends/web/app.py @@ -1373,26 +1373,6 @@ def api_tools_strip_metadata(): return jsonify({"success": False, "error": str(e)}), 400 -@app.route("/api/tools/peek", methods=["POST"]) -@login_required -def api_tools_peek(): - """Check if image contains Stegasoo header.""" - from stegasoo.steganography import peek_image - - image_file = request.files.get("image") - if not image_file: - return jsonify({"success": False, "error": "No image provided"}), 400 - - try: - image_data = image_file.read() - result = peek_image(image_data) - result["success"] = True - result["filename"] = image_file.filename - return jsonify(result) - except Exception as e: - return jsonify({"success": False, "error": str(e)}), 400 - - @app.route("/api/tools/exif", methods=["POST"]) @login_required def api_tools_exif(): diff --git a/frontends/web/static/style.css b/frontends/web/static/style.css index 5d39bac..6982050 100644 --- a/frontends/web/static/style.css +++ b/frontends/web/static/style.css @@ -16,6 +16,7 @@ --overlay-dark: rgba(0, 0, 0, 0.3); --overlay-light: rgba(255, 255, 255, 0.05); --day-highlight: #E3FF54; /* Bright yellow/green for day of week */ + --header-gold: #fee862; /* Halfway between light straw and 24k gold */ } /* ---------------------------------------------------------------------------- @@ -140,6 +141,17 @@ body { border-bottom: none; } +.card-header h5 { + color: var(--header-gold); + text-shadow: 0 1px 2px rgba(0, 0, 0, 0.33); +} + +/* Override small warning text to use header gold */ +.text-warning.small { + color: var(--header-gold) !important; + text-shadow: 0 1px 2px rgba(0, 0, 0, 0.33); +} + .card-link .card-header.text-center { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; diff --git a/frontends/web/templates/tools.html b/frontends/web/templates/tools.html index dc7412a..787f610 100644 --- a/frontends/web/templates/tools.html +++ b/frontends/web/templates/tools.html @@ -3,156 +3,343 @@ {% block title %}Tools - Stegasoo{% endblock %} {% block content %} + +
Check how much data can be hidden in an image
- -Check how much data can be hidden in an image.
- -| Image | -+ | Field | +Value | +|
|---|---|---|---|---|
| Dimensions | -( MP) | -|||
| LSB Capacity | -- | |||
| DCT Capacity | -- |
View, edit, or remove image metadata (EXIF, GPS, camera info).
- -| Field | -Value | -- |
|---|
Check if an image contains Stegasoo hidden data (without decrypting).
+ + + +Remove all EXIF data and get a clean image
-