lua-scripts icon indicating copy to clipboard operation
lua-scripts copied to clipboard

New Immich export plugin

Open brainz73 opened this issue 1 year ago • 5 comments

Hi, I wrote an export plugin for Immich, an open source photo management software that is becoming very interesting:

https://immich.app/

I would like to contribute to the Darktable project by sharing the script.

brainz73 avatar Dec 02 '24 21:12 brainz73

If I can get an immich app instance up and running I'll start testing. I'm on 22.04 which seems to be prominently mentioned in the install docs, but not in a good way.:-)

wpferguson avatar Dec 07 '24 21:12 wpferguson

I'm also on 22.04, installed with docker, started on the first try with a minimal configuration

brainz73 avatar Dec 10 '24 22:12 brainz73

I just have to replace the ubuntu docker with the "real" docker :smile:

wpferguson avatar Dec 11 '24 00:12 wpferguson

Tested. Got the following error

    75.4931 LUA ERROR : /home/bill/.config/darktable51/lua/contrib/immich.lua:230: attempt to index a nil value (global 'title_widget')
stack traceback:
	[C]: in metamethod 'index'
	/home/bill/.config/darktable51/lua/contrib/immich.lua:230: in function </home/bill/.config/darktable51/lua/contrib/immich.lua:208>
   135.1298 LUA ERROR : /home/bill/.config/darktable51/lua/contrib/immich.lua:230: attempt to index a nil value (global 'title_widget')
stack traceback:
	[C]: in metamethod 'index'

Added review comments that tell how to fix it.

All the images in the first album I created had a strong yellow color cast. Reset the export module and exported again and image color was correct. Not sure what that was about.

wpferguson avatar Jan 06 '25 04:01 wpferguson

I am also testing and get the error:

darktable(87889,0x16d5c7000) malloc: *** error for object 0x600003ed7d00: pointer being freed was not allocated
darktable(87889,0x16d5c7000) malloc: *** set a breakpoint in malloc_error_break to debug
zsh: abort      /Applications/darktable.app/Contents/MacOS/darktable -d lua

Testing on a macbook M4

The files actually get exported, but Darktable crashes just after running.

note: applied @wpferguson suggested changes and they solved issues with Album Name as he specified.

benquan avatar Mar 28 '25 17:03 benquan