Where tag categorisation is stored

13 views
Skip to first unread message

voidAndAny

unread,
Nov 3, 2009, 6:05:47 PM11/3/09
to phraymd
Hello and thanks for this software.

I'me currently use jBrout, but I tink I gonna to switch to phraymd...

2 Question :
First like I write in subject of this thread where tag categorisation
is stored.
I mean not the tag itself wich is in IPTC but category like event,
place...

Second is there en phraymd icon ?

Thanks

spillz

unread,
Nov 3, 2009, 9:02:44 PM11/3/09
to phraymd
> First like I write in subject of this thread where tag categorisation
> is stored.

The organization is stored in the following binary file:

~/.local/share/phraymd/tag-layout

the file was created using python's pickle library (actually cPickle,
but the details are the same): http://docs.python.org/library/pickle.html
I can help you with scripts to convert that file to something
useful...

> Second is there en phraymd icon ?

we're still thinking about this. one of the ideas is a wooden
marionette leaning out of a polaroid (a play on "framed")

>I'm currently use jBrout, but I tink I gonna to switch to phraymd...

let us know how it works out. if you have ideas/problems let us know.

voidAndAny

unread,
Nov 4, 2009, 3:40:35 AM11/4/09
to phraymd
Thanks for the answer.

If I can find time (not easy) I will try to make a script to convert
jBrout xml file <--> Phraymd pickle file

Problem : I'me not a python programmer (I'me à .net developper)


About icon, I saw the thread in inkscape forum, but there is no
answer, is the icon project discussed on another forum ?

spillz

unread,
Nov 4, 2009, 9:39:34 AM11/4/09
to phraymd
>If I can find time (not easy)

I understand. I assume you have a large enough number of tags and
categories to make manually dragging and dropping a big job?

> I will try to make a script to convert
> jBrout xml file <--> Phraymd pickle file

can you show me a sample of the jBrout xml file?

I can pull out the relevant code for reading and writing the phraymd
tag-layout file. I may also decide to support a more readable format
(though the binary format offers speed advantages)

> About icon, I saw the thread in inkscape forum, but there is no
> answer, is the icon project discussed on another forum ?

I've been conferring with an inkscape illustrator offline. I haven't
heard from him for a while. There's a bug report with some ideas here:
https://bugs.launchpad.net/phraymd/+bug/395391

If you have ideas or want to submit some drawings you are welcome to.

voidAndAny

unread,
Nov 4, 2009, 4:18:46 PM11/4/09
to phraymd
Thanks again

here is an extract of my tags.xml used by jBrout :

<tags expand="1">
<tags name="Nature" expand="1">
<tag>Plante</tag>
<tag>Fleur</tag>
<tag>Champignon</tag>
<tags name="Fleurs" expand="1">
<tag>Cyclamen</tag>
<tag>Aster</tag>
<tag>Coquelourde</tag>
<tag>Passiflore</tag>
<tag>Hemerocalle</tag>
<tag>Arum</tag>
<tag>Digitale</tag>
<tag>Lavande</tag>
<tag>Colza</tag>
<tag>Coquelicot</tag>
<tag>Capucine</tag>
<tag>Lys</tag>
<tag>Acanthe</tag>
<tag>Althea</tag>
<tag>Abelia</tag>
<tag>Tulipe</tag>
<tag>Pommier</tag>
<tag>Mahonia</tag>
<tag>Anemone</tag>
<tag>Heuchere</tag>
<tag>Clematite</tag>
<tag>Cotoneaster</tag>
<tag>Hortensia</tag>
<tag>Rhododendron</tag>
<tag>Sedum</tag>
<tag>Fraisier des indes</tag>
<tag>Geranium</tag>
<tag>Oranger du mexique</tag>
<tag>Iris</tag>
<tag>Mysosotis</tag>
<tag>Escallonia</tag>
<tag>Marguerite</tag>
<tag>Genet</tag>
<tag>Sauge</tag>
<tag>Seringat</tag>
<tag>Fuschia</tag>
<tag>Astilbe</tag>
</tags>
<tag>Mousse - Lychen</tag>
<tags name="Animaux" expand="1">
<tag>Tigre</tag>
<tag>Ane</tag>
<tag>Antilope</tag>
<tag>Araignee</tag>
<tag>Autruche</tag>
<tag>Bourdon</tag>
<tag>Canard</tag>
<tag>Chat</tag>
<tag>Chevre</tag>
<tag>Chien</tag>
<tag>Crabe</tag>
<tag>Elephant</tag>
<tag>Gendarme</tag>
<tag>Girafe</tag>
<tag>Guepard</tag>
<tag>Kangourou</tag>
<tag>Libellule</tag>
<tag>Lion</tag>
<tag>Mouette</tag>
<tag>Ours</tag>
<tag>Papillon</tag>
<tag>Rhinoceros</tag>
<tag>Sauterelle</tag>
<tag>Mouton</tag>
<tag>Vache</tag>
<tag>Mesange</tag>
</tags>
<tag>Arbre</tag>
<tag>Nid</tag>
</tags>
</tags>


For the drawing, I've tried to vectorise the sketch you have posted on
inkscape forum, it's not finished.
I will try to upload it tomorrow in the current state, because I don't
think it will be a good icon.
The reason is, there is to many detail to be good in 16x16

in 128x128 ok but not under this size....

Damien Moore

unread,
Nov 4, 2009, 4:33:16 PM11/4/09
to phr...@googlegroups.com
>I will try to upload it tomorrow in the current state, >because I don't think it will be a good icon.
>The reason is, there is to many detail to be good in >16x16
>
>in  128x128 ok but not under this size....

cool.... for the smaller size, try just the head (or head/shoulders) on the polaroid.


>here is an extract of my tags.xml used by jBrout :

thanks. some questions: can you embed categories within other categories? (yes in phraymd) is a category also a tag? (no in phraymd) can you associate an image with a tag? (yes in phraymd)

btw, did phraymd find your IPTC keywords ok?

voidAndAny

unread,
Nov 5, 2009, 5:33:46 AM11/5/09
to phraymd
The fisrt version can be see here :
http://twitpic.com/ocf8k

As I said, it is not finished (the arms for example)
If you want I can continue, or change the existing....


For the subject of this thread :

> can you embed categories within other categories? (yes in phraymd)
yes

> is a category also a tag? (no in phraymd)
no

> can you associate an image with a tag? (yes in phraymd)
yes, but maybe I don't understand the question, it seems to be the
objective of phraymd but also jbrout

> btw, did phraymd find your IPTC keywords ok?
yes


If you make something to import jbrout tag structur, it would be fair
to make it reversive (ie export praymd to jbrout), because in the
current state of the softwares, I will use both...


jBrout and phraymd are very similar :
manage and organise tag
apply tag by drag and drop of tag onto picture or group of picture (in
jbrout the opposite is not true)
tag are stored in IPTC keyword metadata with exiv2 library
both are written in python with GTK
picture are not moved
I think you're french as jbrout developper (and me)
both software have strange name ;-)


phraymd functionnalities that jbrout don't have (first i've seen, but
I've don't use it a lot)
GUI more "sexy"
map geolocation (the main reason that can make me use phraymd)


jbrout functionnalities that phraymd don't have
refresh of picture is on demand
picture can be renamed when imported in jbrout (in option, I don't use
it)
use exif embeded thumbnail
album/collection use directory structure
Windows version exist
Timeline browse


As you can see the 2 programs are similar, I suggest you to install
jbrout and try it.
It can be found here :
http://jbrout.manatlan.com/index


to finish it's a little bit pity to see 2 very similar software
instead of 1 software with 2 developpers....

spillz

unread,
Nov 5, 2009, 11:11:13 AM11/5/09
to phraymd
> As I said, it is not finished (the arms for example)
> If you want I can continue, or change the existing....

thanks!

Suggestions: instead of the frame on an angle, draw it straight. For
small sizes, only show the head. We had toyed with the idea of a
polaroid instead of a timber frame.
Now I think we already have a decent logo in the figure on a polaroid
design. I don't have permission from the author to share it yet, but I
just need to speak to him some more... Instead of replicating his work
exactly, I suggest you toy with slightly different ideas. I'm open to
anything that looks good and represents the program well. Pay
attention to colours.

> jBrout and phraymd are very similar :
> ...
> to finish it's a little bit pity to see 2 very similar software
> instead of 1 software with 2 developpers....

actually, jBrout seems to have several developers.
Before starting on phraymd I had considered developing for jBrout, but
to make that changes to jBrout that I wanted, I would have had to fork
the project anyway. I wanted to experiment with the UI, which jBrout
users would have resisted. I have also put a lot of work into (1)
using threads to keep the UI responsive and (2) automatically keeping
the program in synch with the file system; and (3) allowing users
shared access common pool of images (this was the most important
feature to me). To do that would mean a huge refactor of the jBrout
codebase. The fact the both programs share common languages, widget
frameworks and metadata libraries should allow for some code exchange
between the projects in the future.

> I think you're french as jbrout developper (and me)

not me, but I seem to be attracting a french speaking crowd :)

> both software have strange name ;-)

agree. suggestions welcome.

> > can you associate an image with a tag? (yes in phraymd)
>
> yes, but maybe I don't understand the question, it seems to be the
> objective of phraymd but also jbrout

Yes, I don't think you understood. Dragging a photo to the tag creates
an icon that is displayed next to the tag in the pane. Dragging from
tags to the pane does what you would expect (tagging the images).

> If you make something to import jbrout tag structur, it would be fair
> to make it reversive (ie export praymd to jbrout), because in the
> current state of the softwares, I will use both...

How about this: I'll write something that can convert the binary to
readable text and back.

> jbrout functionnalities that phraymd don't have
> refresh of picture is on demand

I'm not sure I understand. I am aware that the image displayed in the
viewer gets cached in memory and there's no easy way to refresh if the
underlying file changes. That's a bug...

> picture can be renamed when imported in jbrout (in option, I don't use
> it)

I'm working on an importer plugin for phraymd that will feature some
renaming capability. Should be ready in a week or so. Don't forget
that there are other programs that can do this: e.g. http://www.damonlynch.net/rapid/
and they will work perfectly well with phraymd.

> use exif embeded thumbnail

this is a few dozen lines of code to implement. exiv2 extracts the
thumbnails easily enough.

> album/collection use directory structure

I don't know if this is a good thing. what if you want your photos to
appear in more than one album? As antistress has pointed out, having
both tags and directory views is redundant and risks confusing new
users. btw, you can always right click an image and "open with" in
nautilus

> Windows version exist

Not sure if or when that will happen for phraymd.

> Timeline browse

I have plans to do something similar. Right now, you can search on
date ranges using the search box... e.g. type date>=2009-1-1 to see
photos from this year.

Some search features are described here:
http://groups.google.com/group/phraymd/web/phraymd-development-update-1?hl=en

As we get closer to release, I'll be thinking about how to make search
features more usable.

voidAndAny

unread,
Nov 5, 2009, 3:46:04 PM11/5/09
to phraymd

> I wanted to experiment with the UI, which jBrout users would have resisted.

Your UI is very good, it is at my opinion a bad point to jBrout


> (1) using threads to keep the UI responsive

Good point, jBrout freeze during tagging operation (no thread I
suppose)


> Dragging a photo to the tag creates an icon that is displayed next to the tag in the pane.

Effectivly I didn't understood, jBrout don't have this feature


> How about this: I'll write something that can convert the binary to readable text and back.

Good thing, a little bit of regex and it will be possible to convert
text file to XML


> I'm not sure I understand. I am aware that the image displayed in the
> viewer gets cached in memory and there's no easy way to refresh if the
> underlying file changes. That's a bug...

In fact in jBrout you add picture directory by directory, if you add
picture in one directory, they don't appear until you right click on
directory in jbrout and select refresh
that not a bug it's a feature


> there are other programs that can do this: e.g.http://www.damonlynch.net/rapid/

As i said, i don't use this feature in jbrout, because I use rapid
photo downloader (more flexible)



> > album/collection use directory structure

I like this feature, my directories are perfectly defined year/month/
event and are Additional to tags




Thanks for all this answer and your work....
Reply all
Reply to author
Forward
0 new messages