Re: database version problem
By the way, I updated the plugin to work with regular expressions: http://github.com/catchin/MergeVersions and http://pholog.de/wp-content/uploads/2008/11/mergeversions.zip And afterwards found out that such a plugin already exists ;) http://bugzilla.gnome.org/show_bug.cgi?id=342138 So at least I had some programming exercise... ~ Fabian ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
Hi there
> Probably this is because "%20" is not recognized as blank (" ").
Indeed.
> (quick and dirty) fix,
Running right now, looks like it's working :-)
With an added bonus that apparently the metadata is being synced to
the versions:
Syncing metadata to file...
old = "" new = "" heading = "ASCII"
value = 2008:08:12 08:28:26 len = 19
_:bnode287220736
.
_:bnode287220736 "flickr" .
_:bnode287220736 "Bangkok" .
_:bnode287220736 "temple" .
_:bnode287220736 "Wat Pho" .
_:bnode287220736 .
value = f-spot version 0.5.0.3 len = 22
value = 2009:09:08 11:15:17 len = 19
value = f-spot version 0.5.0.3 len = 22
value = 2009:09:08 11:15:17 len = 19
Saved 10229 bytes
> This should probably be better done using regular expressions. Is on the
> todo list for the next version ;).
Rather than munging the character escapes manually, I would expect
that there are encoding/decoding methods that will give you the path
in a usable form.
--
jean . .. //\\\oo///\\
___
F-spot-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
Hi Jean,
On 07.09.2009 12:37, Jean Jordaan wrote:
> Modified version found:
> file:///home/jean/Photos/2009/08/03/Afb355%20(Modified).jpg
> => No original found. Not merging
Probably this is because "%20" is not recognized as blank (" "). As a
(quick and dirty) fix, can you try to add the following at line number
62 (right after "string original_path = ..."):
original_path = original_path.Replace ("%20(" +
version_names[j].Replace(" ", "%20") + ")", "");
This should probably be better done using regular expressions. Is on the
todo list for the next version ;).
~ Fabian
___
F-spot-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
Hi there I installed mono-devel and recompiled. Now f-spot doesn't crash. Running the plugin shows a few hundred messages like this: Modified version found: file:///home/jean/Photos/2009/08/03/Afb355%20(Modified).jpg => No original found. Not merging However the original is there: $ ls -lh /home/jean/Photos/2009/08/03/Afb355* -rwx-- 1 jean jean 514K 2009-08-03 16:50 /home/jean/Photos/2009/08/03/Afb355.jpg -rw-r--r-- 1 jean jean 380K 2009-08-03 16:57 /home/jean/Photos/2009/08/03/Afb355 (Modified).jpg Any idea what's going wrong? -- jean . .. //\\\oo///\\ ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
Ah! Activated! Thank you! However it dies like this: (f-spot:7644): GdkPixbuf-WARNING **: GdkPixbufLoader finalized without calling gdk_pixbuf_loader_close() - this is not allowed. You must explicitly end the data stream to the loader before dropping the last reference. Marshaling activate signal Exception in Gtk# callback delegate Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Type 'MergeVersionsExtension.MergeVersions' not found in add-in 'FSpot.MergeVersions,0.5.0.0' at Mono.Addins.RuntimeAddin.GetType (System.String typeName, Boolean throwIfNotFound) [0x0] at Mono.Addins.RuntimeAddin.CreateInstance (System.String typeName, Boolean throwIfNotFound) [0x0] at Mono.Addins.RuntimeAddin.CreateInstance (System.String typeName) [0x0] at FSpot.Extensions.CommandMenuItemNode.OnActivated (System.Object o, System.EventArgs e) [0x0] at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0] --- End of inner exception stack trace --- at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0] at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x0] at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x0] at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x0] at System.Delegate.DynamicInvoke (System.Object[] args) [0x0] at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x0] at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x0] at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x0] at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal) at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) at Gtk.Application.gtk_main() at Gtk.Application.Run() at Gnome.Program.Run() at FSpot.Driver.Main(System.String[] args) -- jean . .. //\\\oo///\\ ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
- "Jean Jordaan" ha scritto: > Hi Fabian > > I finally got round to re-importing my photos .. I tried to install by > copying > MergeVersions.addin.xml and MergeVersions.dll to > ~/.gnome2/f-spot/addins/ (where there is already a > FSpot.SyncMetaData.0.5.0.0 directory), but nothing shows up in the > Tools menu. Edit > Manage extensions do you see it? is it activated? ciao maxxer -- Lorenzo Milesi - [email protected] YetOpen S.r.l. - http://www.yetopen.it/ Via Previati 72 - 23900 Lecco - ITALY - Tel 0341 220 205 - Fax 178 607 8199 GPG/PGP Key-Id: 0xE704E230 - http://keyserver.linux.it D.Lgs. 196/2003 Si avverte che tutte le informazioni contenute in questo messaggio sono riservate ed a uso esclusivo del destinatario. Nel caso in cui questo messaggio Le fosse pervenuto per errore, La invitiamo ad eliminarlo senza copiarlo, a non inoltrarlo a terzi e ad avvertirci non appena possibile. Grazie. ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
Hi Fabian I finally got round to re-importing my photos .. I tried to install by copying MergeVersions.addin.xml and MergeVersions.dll to ~/.gnome2/f-spot/addins/ (where there is already a FSpot.SyncMetaData.0.5.0.0 directory), but nothing shows up in the Tools menu. I see that SyncMetaData features in ~/.gnome2/f-spot/addin-db-001/addin-data/global/FSpot.SyncMetaData,0.5.0.0.maddin and other places .. does MergeVersions need to be registered somehow? I'm using F-Sport version 0.5.0.3 Regards, -- jean . .. //\\\oo///\\ ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
I have created a merge request for being able to manually reparent and detach photos a couple of weeks ago on Gitorious. http://gitorious.org/f-spot/mainline/merge_requests/1096 Still waiting for it to be merged, though. Anton On Thu, Aug 20, 2009 at 9:14 AM, Paul Wellner Bou wrote: >> I've been looking for something similar since a long time! What would >> be awesome, though, is an easy way to select two pictures, and link them >> as versions. A situtation in which this kind of plugin would be great >> is linking pictures taken while doing bracketing. Or linking pictures >> meant to be stitched into a panorama. > > I agree. I am thinking in a plugin doing exactly this for a long time and I > have planned to add it to my set of F-Spot plugins > (http://blog.wbou.de/index.php/2009/08/03/f-spot-addins-short-update/). > Unfortunately I don't think I'll have much time for this the next weeks... > > Regards > Paul. > > ___ > F-spot-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/f-spot-list > ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
Thanks for writing this plugin! I just followed the link and found the description. It looks like it searches for the word "modified", so it won't work with other language settings than english. I am using F-Spot in german translation, and the different versions of my photos have german names as well, e.g. "img_6654 (Bearbeitet).jpg" or "img_6654 (Bearbeitet in GIMP).jpg". So wouldn't it be better to do the search with regular expressions? I am no coder, but I guess it won't be that difficult, because there are always brackets in the version filenames. Regards Heiner Fabian Kneißl schrieb: > http://pholog.de/2008/11/fspot_mergeversions_plugin/ > > I don't know whether it works with 0.4 (actually developed for 0.5), but > you could give it a try. Comments and improvements welcome! > > ~ Fabian > ___ > F-spot-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/f-spot-list > > I wrote a plugin that merges these versions of photos to their originals: ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
I've been looking for something similar since a long time! What would be awesome, though, is an easy way to select two pictures, and link them as versions. A situtation in which this kind of plugin would be great is linking pictures taken while doing bracketing. Or linking pictures meant to be stitched into a panorama. I agree. I am thinking in a plugin doing exactly this for a long time and I have planned to add it to my set of F-Spot plugins (http://blog.wbou.de/index.php/2009/08/03/f-spot-addins-short-update/). Unfortunately I don't think I'll have much time for this the next weeks... Regards Paul. ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
Hi there > I wrote a plugin that merges these versions of photos to their originals: > http://pholog.de/2008/11/fspot_mergeversions_plugin/ Fantastic, it looks just right. I'm on 0.5 now. I'll have to free some space for my photos before trying it, but I'll let you know if it works! -- jean . .. //\\\oo///\\ ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
I'll look at it as soon as I have time. I've been looking for something similar since a long time! What would be awesome, though, is an easy way to select two pictures, and link them as versions. A situtation in which this kind of plugin would be great is linking pictures taken while doing bracketing. Or linking pictures meant to be stitched into a panorama. Le mercredi 19 août 2009 à 22:25 +0200, Fabian Kneißl a écrit : > On 19.08.2009 10:30, Jean Jordaan wrote: > > Also not the relations between photos and their versions .. > > Would be nice if that relation were picked up from the filename. > > Sure it's fragile if you go and rename the files, but it's cheap and a > > blessing when it's needed. > > I wrote a plugin that merges these versions of photos to their originals: > http://pholog.de/2008/11/fspot_mergeversions_plugin/ > > I don't know whether it works with 0.4 (actually developed for 0.5), but > you could give it a try. Comments and improvements welcome! > > ~ Fabian > ___ > F-spot-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/f-spot-list signature.asc Description: Ceci est une partie de message numériquement signée ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
On 19.08.2009 10:30, Jean Jordaan wrote: > Also not the relations between photos and their versions .. > Would be nice if that relation were picked up from the filename. > Sure it's fragile if you go and rename the files, but it's cheap and a > blessing when it's needed. I wrote a plugin that merges these versions of photos to their originals: http://pholog.de/2008/11/fspot_mergeversions_plugin/ I don't know whether it works with 0.4 (actually developed for 0.5), but you could give it a try. Comments and improvements welcome! ~ Fabian ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
On 2009.08.19 11:12, Paul Wellner Bou wrote: Hi Jack, On my wife's (Kubuntu Hardy LTS) machine, 0.4 is the only version (easily?) available, and I don't want to do a manual install there. I assume it is easier to build/install f-spot 0.6 than reverting the database. It might be - but then I have to remember I'm maintaining a package outside the distribution. Not technically difficult, just have to remember it as an exception the next distro version upgrade. I might try it anyway. ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
Hi Jack, On my wife's (Kubuntu Hardy LTS) machine, 0.4 is the only version (easily?) available, and I don't want to do a manual install there. I assume it is easier to build/install f-spot 0.6 than reverting the database. Regards Paul. ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
On 2009.08.19 04:30, Jean Jordaan wrote: So in this case (besides corrupting your JPG dates), you will keep the tags -- but not the icons and not the tag hierarchy. Also not the relations between photos and their versions .. Would be nice if that relation were picked up from the filename. Sure it's fragile if you go and rename the files, but it's cheap and a blessing when it's needed. Fortunately, I don't happen to have multiple versions, and for the few I actually do have, I renamed the file anyway. ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
[sorry - should have replied to the group] On 2009.08.19 03:48, Paul Wellner Bou wrote: Is there any reason not to use 0.6? Why do you want to stick with 0.4? The "newer" version is not because of sqlite2/sqlite3 (or not only). There are some database schema changes, so the tables/columns are not the same. I don't think there is a automatic way to convert a 0.6 photos.db to a 0.4 schema. But it should be possible with not too much work to do this manually -- or at least the tags after importing the photos into 0.4 again. By the way: If you didn't deactivate "Write metadata to files", F-Spot writes the tags into the JPGs (not RAW or others). So in this case (besides corrupting your JPG dates), you will keep the tags -- but not the icons and not the tag hierarchy. Paul, On my wife's (Kubuntu Hardy LTS) machine, 0.4 is the only version (easily?) available, and I don't want to do a manual install there. I had put 0.6 on my machine (Gentoo) and was hoping to point both of them to the same files and photos (via nfs mount), before realizing there was a version problems. If I can get the tags back into the files (I had not been doing that previously) I'll probably end up getting things fixed up on my machine (I've now made a separate copy of the files) and then moving them back to hers. (I have few enough tags that I don't really care about the icons or hierarchy). Jack ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
Yes, that would be great! It's rather annoying if these relations have disappeared after re-importing a photo collection. Jean Jordaan schrieb: > Also not the relations between photos and their versions .. > Would be nice if that relation were picked up from the filename. > Sure it's fragile if you go and rename the files, but it's cheap and a > blessing when it's needed. > > ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
> So in this case > (besides corrupting your JPG dates), you will keep the tags -- but not > the icons and not the tag hierarchy. Also not the relations between photos and their versions .. Would be nice if that relation were picked up from the filename. Sure it's fragile if you go and rename the files, but it's cheap and a blessing when it's needed. -- jean . .. //\\\oo///\\ ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: database version problem
Hi Jack, Is there any reason not to use 0.6? Why do you want to stick with 0.4? The "newer" version is not because of sqlite2/sqlite3 (or not only). There are some database schema changes, so the tables/columns are not the same. I don't think there is a automatic way to convert a 0.6 photos.db to a 0.4 schema. But it should be possible with not too much work to do this manually -- or at least the tags after importing the photos into 0.4 again. By the way: If you didn't deactivate "Write metadata to files", F-Spot writes the tags into the JPGs (not RAW or others). So in this case (besides corrupting your JPG dates), you will keep the tags -- but not the icons and not the tag hierarchy. Regards Paul ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
