How syedanazish-debug/image-preparing-lab works
Image Preparing Lab is a small Streamlit image-preparation prototype. The user uploads an image, reviews its dimensions and megapixels, validates crop coordinates, and crops it. The app measures the crop and, when it is below the 5 MP target, resizes it, encodes a quality-95 JPEG, and offers it for download. The graph follows the sampled app and processor code; no persistent storage or separate external processing service is shown.
Main entry points: app.py Upload and workflow · image_processor.py Target resizing
Components 8
Streamlit app
- Upload and workflow
app.py - JPEG export
app.py
Image processing
- Megapixel calculation
image_processor.py - Crop validation
image_processor.py - Image cropping
image_processor.py - Target resizing
image_processor.py - Scale calculation
image_processor.py
Other components
- Image user
Connections 8
- Image user → Upload and workflow: uploads image
- Upload and workflow → Megapixel calculation: calculates megapixels
- Upload and workflow → Crop validation: validates coordinates
- Upload and workflow → Image cropping: crops image
- Upload and workflow → Target resizing: resizes if needed
- Target resizing → Scale calculation: calculates scale
- Upload and workflow → JPEG export: encodes JPEG
- Upload and workflow → Image user: offers download