Add photo icon feature to PhotoTagger for easy access to original photos

This update introduces a new photo icon in the PhotoTagger interface, allowing users to click the camera icon on face images to open the original photo in their default image viewer. The feature includes cross-platform support for Windows, macOS, and Linux, ensuring proper window sizing and multiple viewer options. Tooltips are added for enhanced user guidance, and the README has been updated to reflect this new functionality and its usage.
This commit is contained in:
tanyar09
2025-10-02 14:16:41 -04:00
parent a14a8a4231
commit b910be9fe7
2 changed files with 168 additions and 7 deletions
+13 -5
View File
@@ -536,6 +536,7 @@ When you run `python3 photo_tagger.py identify --show-faces`, you'll see:
**Left Panel:**
- 📁 **Photo Info** - Shows filename and face location
- 🖼️ **Face Image** - Individual face crop for easy identification
- 📷 **Photo Icon** - Click the camera icon in the top-right corner of the face to open the original photo in your default image viewer
-**Identification Status** - Shows if face is already identified and by whom
**Right Panel:**
@@ -551,6 +552,7 @@ When you run `python3 photo_tagger.py identify --show-faces`, you'll see:
- ☑️ **Individual Checkboxes** - Select specific faces to identify together
- 📈 **Confidence Percentages** - Color-coded match quality
- 🖼️ **Face Images** - Thumbnail previews of similar faces
- 📷 **Photo Icons** - Click the camera icon on any similar face to view its original photo
- 🎮 **Control Buttons**:
- **✅ Identify** - Confirm the identification (saves immediately) - requires first name, last name, and date of birth
- **⬅️ Back** - Go back to previous face (shows image and status, repopulates fields)
@@ -571,6 +573,7 @@ When you run `python3 photo_tagger.py auto-match --show-faces`, you'll see an im
**Left Panel:**
- 👤 **Matched Person** - The already identified person with complete information
- 🖼️ **Person Face Image** - Individual face crop of the matched person
- 📷 **Photo Icon** - Click the camera icon in the top-right corner to open the original photo
- 📁 **Detailed Person Info** - Shows:
- **Full Name** with middle and maiden names (if available)
- **Date of Birth** (if available)
@@ -582,6 +585,7 @@ When you run `python3 photo_tagger.py auto-match --show-faces`, you'll see an im
- ☑️ **Checkboxes** - Select which faces to identify with this person (pre-selected if previously identified)
- 📈 **Confidence Percentages** - Color-coded match quality (highest confidence at top)
- 🖼️ **Face Images** - Face crops of unidentified faces
- 📷 **Photo Icons** - Click the camera icon on any face to view its original photo
- 📜 **Scrollable** - Handle many matches easily
- 🎯 **Smart Ordering** - Highest confidence matches appear first for easy selection
@@ -829,11 +833,15 @@ This is now a minimal, focused tool. Key principles:
-**Auto-Selection** - Automatically selects first person in filtered results
-**Comprehensive Editing** - Edit all person fields: first, last, middle, maiden names, and date of birth
-**Visual Calendar Integration** - Professional date picker with month/year navigation
-**Smart Validation** - Save button only enabled when all required fields (first name, last name, date of birth) are filled
-**Real-time Feedback** - Button state updates instantly as you type or clear fields
-**Enhanced Layout** - Organized grid layout with labels directly under each input field
-**Immediate Database Saves** - Person information saved directly to database when clicking save
-**Visual Button States** - Disabled save button clearly grayed out when validation fails
### 📷 Photo Icon Feature (NEW!)
-**Source Photo Access** - Click the 📷 camera icon on any face to open the original photo
-**Smart Positioning** - Icons appear exactly in the top-right corner of each face image
-**Cross-Platform Support** - Opens photos in properly sized windows on Windows, macOS, and Linux
-**Helpful Tooltips** - "Show original photo" tooltip appears on hover
-**Available Everywhere** - Works on main faces (left panel) and similar faces (right panel)
-**Proper Window Sizing** - Photos open in reasonable window sizes, not fullscreen
-**Multiple Viewer Support** - Tries multiple image viewers for optimal experience
### Name Handling & Database
-**Fixed Comma Issues** - Names are now stored cleanly without commas in database