Older blog entries for hub (starting at number 295)

Exempi 1.99.0

I think that a release of Exempi 1.99.0 is due.

This release is the first release towards Exempi 2.0. It is based on Adobe own XMP SDK and unlike the original Adobe code, it builds fine on Linux, and even more on x86_64 (I'm not proud of the fix, but it is as good as it gets for now). This version is much more feature complete than Exempi 0.5.1 as it read and writes (serialize) XMP metadata and load from and to files, including, for supported file types, reconciling the existing metadata.

Download: .tar.gz - GPG signature

It is licensed under the BSD license.

The current API is somewhat not definitive, but I hope it is OK. The documentation still has to be written / generated.

One of the question I got asked is how do you add XMP metadata like CC:Licensing to a PDF[1]. Here is a snippet:

#include <exempi/xmp.h>
...
XmpFilePtr f;
f = xmp_files_open_new("test.pdf", XMP_OPEN_FORUPDATE);
XmpPtr xmp = xmp_files_get_new_xmp(f);
xmp_set_property(xmp, NS_XAP_RIGHTS, "Copyright", "(c) ACME Inc., some rights reserved"
   " - This work is licensed to the public under the Creative Commons Attribution-ShareAlike "
   "license http://creativecommons.org/licenses/by-sa/2.0/");
xmp_files_put_xmp(f, xmp);
xmp_free(xmp);
xmp_files_close(f, XMP_CLOSE_SAFEUPDATE);

Now a little call: Exempi 1.99.0 supports several media format, but not vorbis... I wish I could add support for it. Any idea? I haven't actually dug into it yet.

Notes

[1] could be any of the other supported file types

Syndicated 2007-05-30 03:23:34 from Diary of a CrazyFrench

exiv2 and Python

I discovered today pyexiv2, which is a Python interface to the infamous Exiv2, a GPL library to read and write Exif and IPTC/IIM metadata from JPEG and various camera RAW file. Too bad I can't reuse the exiv2 code in libopenraw as it is GPL and not LGPL.[1]

pyexiv2 is actually an exemple on how easy it is to write Python module in C++ using Boost.Python

Notes

[1] The decision to use LGPL for libopenraw is in complete relation to the policies from both Gnome and KDE when it come to libraries, and nothing else.

Syndicated 2007-05-29 19:12:55 from Diary of a CrazyFrench

Last week-end (or was it the one before ?)

Last week-end (or maybe the one before, I keep delaying this post), for Victoria day, we took the train to Montréal. It was actually a meetup of Range Finder Forums members.

Without order, occurred during the week-end:

  • watched the Sens winning to get to the finals of the Stanley Cup. They play starting this Monday against Anaheim's Duck This happened at Hurley's.
  • tried out the Epson RD-1, a digital rangefinder camera. Unfortunately I don't have the pictures as I didn't have my SD cards with me... Too bad this camera is expensive, still less than the Leica M8, but still.
  • tried out a Bessa R2 rangefinder at marché Jean-Talon. For this one I have the film, but I have yet to get it processed.
  • had a shoot with models. More about that later. Two fact: the EF 50mm f/1.4 USM is one of my favorite lenses (I ended up shooting most of the week-end with it), and I need to get a decent light meter for proper incident light metering.
  • discovered a few places on Saint-Denis: La Baroufe, Le Passeport (a gothic night club, that turns back into a clothing shop during the day) and l'Académie, a very nice apportez-votre vin[1] restaurant, located next to a SAQ[2] that close at 10:00PM[3]

I really miss living in that city. I felt that last time when attending LGM, this time just confirmed it. I miss walking down Sainte-Catherine with people in the street, in the evening or on week-ends, I miss the Metro.

Let's talk about changes. When I left they were starting to tear down the building that was hiding Saint-James-United church. Now the front of the church is free, visible. Here is what that give at dusk, from the street:

taken with an EF 50mm f1.4 USM, 1/160 f/2.5 @1600 ISO

Before that, I could only photograph this from the inside, like this, with very little distance:

taken with an EF 24-85mm f/3.5-4.5 USM, 1/125 f/3.5 @400 ISO

I'll go further in depth for the pictures, but the workflow for digital photography on Linux is still pretty steep...

Notes

[1] bring your own wine

[2] provincial liquor store

[3] pretty much uncommon, but for beer and wine, we have deps in Québec until 11:00PM

Syndicated 2007-05-29 15:24:38 from Diary of a CrazyFrench

Digital photography with free software

Linux.com has recently published several articles about digitial photography with Linux.

Notes

[1] Digital Asset Management

Syndicated 2007-05-25 23:47:46 from Diary of a CrazyFrench

XMP support

Exempi2 will use the Adobe XMP SDK as a code base, instead of reinventing the wheel. It will also become BSD licensed to make things easier with the original code.

The reasons are as follow:

  • Adobe XMP SDK implements the whole spec, including scanning XMP out of the various file formats
  • it is somewhat tested (but not on the platform we use)
  • it is less work to fix it than rewriting it
  • it is BSD licensed so perfectly fine for use in GPL applications

The caveats:

  • it needs work to build and work on Linux. I actually have done that.
  • it still fails on 64-bits platforms (fix in progress, don't assume sizeof(void*) == 4)
  • I'm not sure how much it will deviate from upstream as fixes needs to be. I'll do my best to push the changes upstream.
  • It needs a sane API. The APIs are not bad but the are not really designed for dynamic linking as they are based on C++ templates. Templates are not inherently bad, but passing them through dynamic linkage like that is not really a good idea, and worse, it is not language neutral. I'll make some nice C API inspired by what I did in Exempi.

Mental note: explain why XMP is important.

Syndicated 2007-05-22 23:51:46 from Diary of a CrazyFrench

Thanks you Adobe for XMP

Thank you Adobe for releasing your XMP SDK 4.1.1 under the BSD license. Now we can use it with GPL software. My main motivation beyond Exempi was GPL compatibility.

I promise I'll put it into good use. I don't know yet but I might end up abandoning Exempi in it current if that turns out well.

Syndicated 2007-05-11 22:43:30 from Diary of a CrazyFrench

After LGM

I'm just back from LGM, at least not yet, I'm waiting for my train.

This conference has been extremely interesting. Scribus, Inkscape, The Gimp, hugin (and friends), Krita where amongst these tools that users really like. I'm still impressed seeing jimmac demoing how to use Inkscape. I tried to do the same I completely got lost ; and I'm passing on Gimping too. At least I got a book "Gimp 2 Efficace" (in French) to learn more. Thanks to the conference sponsor.

On the developer side, GEGL looks yummy. For now, I'm actually thinking letting it demosaic the Bayer CFA extracted from RAW file to concentrate on the other features. After all most applications are likely to be willing to provide their own (which is already part of the spec), so why bothering.

Krita looks very interesting, and to the question "Will it provide Corel Painter features?" the answer is "yes". See Boud's post.

Also amazing is how John Bintz and MenTaLguY show us their work flow to draw comics using Free Software on Linux. This involve Sane, Inkscape and some programming language for the automation to generate the final work.

Syndicated 2007-05-06 21:29:58 from Diary of a CrazyFrench

Wining numbers

Today's winning numbers are:

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

That could be your old-style GPG fingerprint. That could be something else.

See BoingBoing for a related story.

Syndicated 2007-05-02 13:30:20 from Diary of a CrazyFrench

Libre Graphics Meeting

I will be talking at the Libre Graphics Meeting this week-end in Montreal. See you there!

Syndicated 2007-04-30 22:49:38 from Diary of a CrazyFrench

286 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!