Dominik Marczuk

Results 28 comments of Dominik Marczuk

>I was thinking of a lua-script solution where we copy the Exif.Photo.LensModel to exif_lens field in the database. Cumbersome but it would do the job nicely. >Sure, was just thinking...

Anyway, I'll leave this request for you to ponder it and decide whether to do anything with it or not. In the meantime, I'll look into learning some Lua.

[Here](https://drive.google.com/drive/folders/1Thwm4GDoxJKfoxkjltN8yGVg3QzVOXvv?usp=sharing). 10 photos, 5 lenses (one with a CPU and four manual). I hope this is sufficient.

From my Automator script: ``` # update exif data in files for FILE in "$@" do /opt/homebrew/bin/exiv2 -M"set Exif.Photo.LensModel $LENS[1]" \ -M"set Exif.Photo.LensMake $LENS[2]" \ -M"set Exif.Photo.LensSerialNumber $LENS[3]" \ -M"set...

Judging by the debug output, the script fails when the path to the files contains a space. EDIT: Changing line 70 of your script seems to have done the trick....

I added one more photo to the gdrive folder. The script seems to misbehave with it and blanks out the lens field altogether. I assume that the condition `if lensdata`...

@wpferguson I've just noticed something about the script that might need fixing. I imported some photos with duplicates into darktable and the lensdata script only processed the first photo of...

@wpferguson Yes, they were. I have my groups collapsed by default. Additionally, I think opening images with a space in the filename is problematic: ``` /Volumes/Zdjęcia/Pentax/NZ7_2683: Failed to open the...