Last night I reached a new milestone in libopenraw: being able to decompress the RAW data from CR2 files using Lossless JPEG. The lazyweb has been helpful in finding code for it (libjpeg does not support it) code that I ported from old K&R to C++. I'm still not completely statisfied with the port but it works much better than my attempt to port some MIT-licensed Java code.

Above is the PGM I generated, that contain the RAW data, viewed in eog. The look is due to the fact that we have a GRBG 2x2 color filter array diplayed as a graymap, and that eog does sone dithering. This is the data I should be passing to the demosaicing code. The picture is one of the random sample I took from my own photo library, taken around the corner from where I was living in Montréal.

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.

Notes

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.

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...

Tone-mapping HDR photos with Qtpfsgui. HDR is one of these new techinque that give incredible results. It is way easier on digital than with traditionnal printing in B&W... (that's what masking in the darkroom helped achieve)

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.

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.