WhatsApp Photo Capture Automation
This repository contains a sophisticated automation system that integrates with WhatsApp to automatically capture photos from your device's front camera and save them to your Photos library.
The system combines Apple Shortcuts automation, web-based camera access, and base64 encoding to create a seamless photo capture experience.
Automatically triggers when WhatsApp is opened
Front camera photo capture with automatic encoding
Seamlessly saves photos to your Photos library
Full control over photos and permissions
Automatically captures a photo from your front camera when WhatsApp is opened.
What it does:
Receives the base64-encoded photo data and processes it for storage.
What it does:
When you open WhatsApp, an automation routine triggers and launches
snap-on-open-wapp.html in Safari.
The webpage requests permission to access your device's camera and displays a WhatsApp-themed loading interface.
After 1.5 seconds, a photo is automatically captured from the front camera and converted to a base64-encoded JPEG (60% quality).
The system sends the base64 data to the ReceivePhoto shortcut
via the Shortcuts URL scheme.
The ReceivePhoto shortcut decodes the base64 data
back into an image and saves it to your Photos library.
The web interface that handles camera access and photo capture. Displays a WhatsApp-styled UI while capturing your photo.
This landing page with documentation and quick reference for setting up and using the shortcuts system.
Comprehensive documentation including setup instructions, troubleshooting, and customization options.
Launch the Apple Shortcuts app on your iOS device.
You'll need to manually create two shortcuts:
Deploy snap-on-open-wapp.html to a web server
or use a file:// URL if serving locally.
When prompted, allow:
Open WhatsApp and verify that the camera interface appears and captures a photo successfully.
iPhone 6S+ or iPad (2nd gen)+
iOS 14 or later
WhatsApp & Shortcuts app installed
Camera & Photos library access