Am Sonntag, 1. Januar 2017, 19:28:45 CET schrieb David Farmer:
> I've used dt-curve-tool (followed the instructions
> https://github.com/darktable-org/darktable/tree/master/tools/basecurve)
> to create a basecurve and tonecurve for my camera, but when trying to
> insert them into the database I'm getting an error.
> 
> The script is:
> 
> #!/bin/sh
> 
> # to test your new basecurve, copy/paste the following line into your shell.
> 
> # note that it is a smart idea to backup your database before messing with
> it on this level.
> 
> # (you have been warned :) )
> 
> echo "INSERT INTO presets
> (name,description,operation,op_version,op_params,enabled,blendop_params,ble
> ndop_version,multi_priority,multi_name,model,maker,lens,iso_min,iso_max,expo
> sure_min,exposure_max,aperture_min,aperture_max,focal_length_min,focal_lengt
> h_max,writeprotect,autoapply,filter,def,format)
> VALUES('X-T1','','basecurve',2,X'00000000000000001146033a7a69ee36ed51a73bfc
> f2153bad8aaa3c15cf063dffca193d1b1df83d28339c3d89b3943eee072c3e4b53113f418189
> 3e2e09333f912fc63e475b4d3fb849023f0f93653fb766563fe4d67c3f0000803f0000803f00
> 0000000000000000000000000000000000000000000000000000000000000000000000000000
> 0000000000000000000000000000000000000000000000000000000000000000000000000000
> 0000000000000000000000000000000000000000000000000000000000000000000000000000
> 0000000000000000000000000000000000000000000000000000000000000000000000000000
> 0000000000000000000000000000000000000000000000000000000000000000000000000000
> 0000000000000000000000000000000000000000000000000000000000000000000000000000
> 0000000000000000000000000000000000000000000000000000000000000000000000000000
> 0000000000000000000000000000000000000000000000000000000000000000000000000000
> 0000000000000000000000000000000000000000000000000000000000000000000000000000
> 0000000000000000000000000000000000000000000000000000000000000000000000000000
> 0000000c0000000000000000000000020000000000000000000000',1,X'0000000018000000
> 0000C84200000000000000000000000000000000000000000000000000000000000000000000
> 0000000000000000803F0000803F00000000000000000000803F0000803F0000000000000000
> 0000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000
> 803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000
> 000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000
> 803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F
> 00000000000000000000803F0000803F00000000000000000000803F0000803F000000000000
> 00000000803F0000803F00000000000000000000803F0000803F',7,0,'','%','%','%',0.0
> ,51200.0,0.0,10000000.0,0.0,100000000.0,0.0,1000.0,0,0,0,0,2);" | sqlite3
> ~/.config/darktable/library.db
> 
> and the error message is
> 
> Error: near line 1: no such table: presets
> 
> Error: near line 1: no such table: presets
> 
> I notice that in the database that there is only a table called
> "legacy_presets", but inserting into this does not give me my curves in dt.
> 
> Is this script/process still valid?

No, starting with version 2.2.0 the presets table moved to data.db.

> Dave.

Tobias

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to