18 Feb 2008 cinamod   » (Master)

As Arc mentioned the yesterday, GTK+ is well on its way to getting a native Win32 GDI+-based image loader, using Microsoft's so-called GDI+ "flat" API. We've avoided any hard run-time or compile-time dependencies as we're looking up GDI+'s functions at run-time from the DLL. In theory, this should let us do away with our libpng/libjpeg/libtiff dependencies on Win32 and let us support precisely whatever image formats Win32 natively supports.

Today, I managed to get single-frame images working properly, including scaling them (which most of the built-in GdkPixbuf loader plugins don't get right, FWIW). What's left is:

  1. Importing metadata (orientation, PNG text chunks, etc.)
  2. Handling animations (i.e. multi-frame GIFs)
  3. Saving pixbufs to PNGs/JPEGs/whatever

Unfortunately, this won't ever have progressive loading, since I don't believe that GDI+ supports that.

Anyone who's interested in checking it out and contributing, the code is in GNOME's SVN, under the gdpi-pixbuf-loader module.

Latest blog entries     Older blog 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!