Reporting back:
So I've succeeded in what I set out to do; which was to import IPTC tags from images into TiddlyWiki5. Thanks to all and especially to PMario for advice and solutions. I also highly recommend exiftool, and Phil Harvey was extremely helpful instructing me with that. A disclaimer for Danielo - I'm not really using my TW as an image manager. What I'm doing is slightly similar, and from what I've learnt, I'm pretty confident it could be done, but that wasn't my purpose just now. Could be an interesting project, though. Some background: I'm helping out at my church to manage risks and maintenance issues - you know, 'this window frame is rotting, needs replacing'; 'these poisons are easily within reach of children, they need to be moved', that type of thing. I wanted to create a wiki as a kind of registry of these issues; and I wanted to make it really easily updated by basically anyone. TiddlyWiki5 is perfect for this. So recently we did a walkthrough of the church properties, and I photographed lots of issues (135, in fact). Afterwards I went through the images and edited them and tagged them, using Picasa, which I think is pretty nice software, but other people seem to hate... Anyway having already tagged these images, I didn't want to repeat the process as I added them into TiddlyWiki. Initially I dragged and dropped the whole lot into my wiki. That wasn't the greatest move, as each was at least 1mb and my wiki became pretty sluggish and didn't load well after that. Also the tags didn't come across and populate the tags in TiddlyWiki, anyway. After exporting the images from Picasa at a web friendly size, and deciding to link to them instead of embedding them, somehow I discovered exiftool for manipulating metadata (probably from this list?). It wasn't exactly easy to learn, but it wasn't too hard, either. And as I said, [1]Phil's pointers were very helpful. That's also around the time I posted my question here. Once Mario had specified the format I needed to create, Phil's Exiftool tips made it pretty easy to get the format from my images and existing tags. I realised though that I didn't actually need the images as tiddlers, for my risk and maintenance registry: the images are a starting point, but I want to be writing more descriptions around them in WikiText. Also, I don't need to create lists of images from the tags, I need the tags to identify specific risks. The images are just the first piece of my description. So I edited my Exiftool output format to place the images in WikiText, rather than as the source image. The next step for me in my project is to go through my notes, adding the image .tid files I've created into my wiki one by one, and writing more on each as I go. tl;dr: Exiftool is great, and I'm creating a risk management registry rather than an image manager. My new workflow: 1. Create the .tid file template with all the fields I need. Two examples: created: $CreateDate modified: $ModifyDate title: $FileName type: image/jpg tags: $Keywords source: $Directory/$FileName created: $CreateDate modified: $ModifyDate title: $FileName tags: $Keywords [img[imgs/$FileName]] 2. With the template saved (I saved it as TWmetadata.fmt, but you can name it anything), open a terminal window and use exiftool to create the .tid files. The command is: exiftool -p TWmetadata.fmt /imgsDirectory -w %d/out/%f_%e.tid -d %Y%m%d%H%M%S000 -sep " " I've written up what that command means over at the [2]exiftool forum. 3. Add the .tid files created to TiddlyWiki. You can drag and drop the whole lot, or add them as needed. [end!] Regards, and again, thankyou for your help. On Thu, May 29, 2014, at 10:31 PM, Danielo RodrÃguez wrote: This is getting more and more interesting. If you succeed please consider making a guide of how use tiddlywiky as a image manager. ;-) -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [3][email protected]. To post to this group, send email to [4][email protected]. Visit this group at [5]http://groups.google.com/group/tiddlywikidev. For more options, visit [6]https://groups.google.com/d/optout. References 1. http://u88.n24.queensu.ca/exiftool/forum/index.php?topic=5826.0 2. http://u88.n24.queensu.ca/exiftool/forum/index.php?topic=5826.msg28673#msg28673 3. mailto:[email protected] 4. mailto:[email protected] 5. http://groups.google.com/group/tiddlywikidev 6. https://groups.google.com/d/optout -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/d/optout.
