This image compressor app now supports multiple platforms:
- Works in any modern web browser
- Uses standard HTML5 download functionality
- Windows: Native Windows application
- Linux: Native Linux application
- macOS: Native macOS application
- Android: Native Android APK
- iOS: Native iOS application (requires macOS for building)
- Files are downloaded to the browser's default download location
- Standard browser download dialog
- File save dialog allows users to choose save location
- Full file system access
- Files are automatically saved to the Downloads folder
- Requires storage permissions (automatically requested)
- Optimized for mobile touch interface
npm run build
npm run previewnpx tauri buildnpx tauri android buildnpx tauri ios build-
Install Android Studio
-
Install Android SDK
-
Set up environment variables:
export ANDROID_HOME=/path/to/android-sdk export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
-
Important: Update the bundle identifier in
src-tauri/tauri.conf.json:{ "identifier": "com.yourcompany.yourapp" }The default
com.tauri.devis not allowed for production. -
Initialize Android support:
npx tauri android init
-
Build debug version:
npx tauri android build --debug
Note: If you change the bundle identifier after running android init, you must delete the src-tauri/gen/android folder and run tauri android init again.
The app requests the following permissions:
WRITE_EXTERNAL_STORAGE- To save compressed imagesREAD_EXTERNAL_STORAGE- To access image filesREAD_MEDIA_IMAGES- For Android 13+ compatibility
- File system access through native dialogs
- User explicitly chooses save locations
- No special permissions required
- Uses browser's download functionality
- Image compression with quality control
- Batch processing of multiple images
- ZIP file creation for bulk downloads
- Individual image downloads
- Support for JPG, PNG, WEBP formats
- Real-time compression progress
- Drag and drop interface
- Dark/light theme support
-
Bundle Identifier Error
Error: You must change the bundle identifier in `tauri.conf.json identifier`. The default value `com.tauri.dev` is not allowed.Solution:
- Update
src-tauri/tauri.conf.jsonwith a unique identifier - Delete
src-tauri/gen/androidfolder - Run
npx tauri android initagain
- Update
-
Project Directory Not Found
Error: Project directory /path/to/com/yourcompany/yourapp does not exist.Solution:
- Delete
src-tauri/gen/androidfolder - Run
npx tauri android initto regenerate
- Delete
-
Android SDK Not Found
Error: Android SDK not foundSolution:
- Install Android Studio
- Set ANDROID_HOME environment variable
- Add Android SDK tools to PATH
- Missing Dependencies
- Install system dependencies for your OS
- Check Tauri prerequisites documentation
-
Build Failures
- Run
npm run buildfirst - Check for TypeScript errors
- Ensure all dependencies are installed
- Run
-
Permission Issues
- Check platform-specific permissions
- Ensure proper capabilities are set in
default.json