I use this script, which someone sent to the Forum.
I do not know if it can be of usefulness in this case.

--
Carlos Arigós
https://www.flickr.com/photos/chesterhimes/sets



El 25/09/15 a las 17:55, KOVÁCS István escribió:
Simplest: import, process, export, delete from within DT -> no skulls,
no 'pollution'.
You can also use (https://www.darktable.org/usermanual/ch01.html.php,
Chapter 1.1.1)
--library <library file>

darktable keeps image information in an sqlite database for fast
access. The default location of that database file is
“$HOME/.config/darktable/library.db”. You may give an alternative
location, e.g. if you want to do some experiments without compromising
your original library.db. If the database file does not exist,
darktable creates it for you. You may also give “:memory:” as a
library file in which case the database is kept in system memory – all
changes are discarded when darktable terminates.

But this way you won't have access to presets (as they are in the library DB).

3rd way: back up your DB, import, process, export, restore library DB.

Kofa

------------------------------------------------------------------------------
_______________________________________________
Darktable-users mailing list
Darktable-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-users

--
Carlos Arigós
https://www.flickr.com/photos/chesterhimes/sets

#!/bin/sh
DBFILE=~/.config/darktable/library.db
TMPFILE=`mktemp`
QUERY="select A.id,B.folder,A.filename from images as A join film_rolls as B on 
A.film_id = B.id"
sqlite3 $DBFILE "$QUERY" > $TMPFILE
cat $TMPFILE | while read result
do
  ID=$(echo "$result" | cut -f1 -d"|")
  FD=$(echo "$result" | cut -f2 -d"|")
  FL=$(echo "$result" | cut -f3 -d"|")
  if ! [ -f "$FD/$FL" ];
  then
    echo "removing non existent file $FD/$FL with ID = $ID"
    sqlite3 $DBFILE "delete from images where id=$ID"
  fi
done
rm $TMPFILE

# delete now-empty filmrolls
sqlite3 $DBFILE "DELETE FROM film_rolls WHERE (SELECT COUNT(A.id) FROM images 
AS A WHERE A.film_id=film_rolls.id)=0"
------------------------------------------------------------------------------
_______________________________________________
Darktable-users mailing list
Darktable-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-users

Reply via email to