feat: add original filename preservation and Lightroom export support
Addresses GitHub issue #132 - enables filtering client feedback and exporting filenames for use in Lightroom. Changes: - Add original_filename column to photos table via migration - Store original filename during photo upload - Fix export service column name mismatches (path, size_bytes, uploaded_at) - Fix table name (photo_categories instead of categories) - Fix toFixed() calls to handle string ratings from database Export formats available: - TXT with comma separator (for Lightroom Library Filter) - CSV with full metadata - JSON for automation - XMP sidecar files (for Lightroom/Bridge/Capture One)
This commit is contained in:
@@ -76,7 +76,7 @@ class XmpGenerator {
|
||||
* @returns {string} Description XML
|
||||
*/
|
||||
generateDescription(photo) {
|
||||
const rating = photo.average_rating ? photo.average_rating.toFixed(1) : '0';
|
||||
const rating = photo.average_rating ? parseFloat(photo.average_rating).toFixed(1) : '0';
|
||||
const likes = photo.like_count || 0;
|
||||
const favorites = photo.favorite_count || 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user