A standalone Angular application for preparing image datasets with cropping and bucketing.
npm install
npm startThe app will be available at http://localhost:4200 (or the next available port).
npm run buildThis creates optimized production files in dist/image-cropper/browser/.
Option 1: Using npm script (recommended)
npm run serve:distThis will serve the production build at http://localhost:4206.
Option 2: Using Python (if installed)
cd dist/image-cropper/browser
python -m http.server 4206Option 3: Using Node's http-server
npx http-server dist/image-cropper/browser -p 4206Option 4: Using serve (via npx)
npx serve dist/image-cropper/browser -l 4206index.html directly in the browser (using file:// protocol) due to:
- CORS restrictions
- Angular's routing and module loading requirements
- Security policies
The app must be served via HTTP/HTTPS using one of the methods above.
The dist/image-cropper/browser folder contains all static files needed for deployment. You can:
- Upload to any static hosting service (GitHub Pages, Netlify, Vercel, etc.)
- Serve from any web server (nginx, Apache, etc.)
- Deploy to cloud storage with static website hosting enabled
- Deploy to Hugging Face Spaces - See DEPLOY_HF.md for detailed instructions
- Build:
npm run build - Create a new Space on Hugging Face Spaces with "Static" SDK
- Upload all files from
dist/image-cropper/browser/to your Space - Upload
README_HF.mdasREADME.mdin the Space root
For detailed instructions, see DEPLOY_HF.md.