Hi,

On 21.01.2012 12:28, Alexander Yakushev wrote:
> The title says everything. As far as I can understand, the function
> 
>      capi.oocairo.image_surface_create_from_png(icon)
> 
> which gets called in line 405 of the new naughty.lua is unfriendly to 
> the JPEG files.
> 
> My question is whether there is a way to display jpg images without 
> monkey patching the naughty.lua.

You could find us a nice, small library for loading images into cairo surfaces.
Previously awesome was using imlib2 which has built-in support for loading a
wide variety of image formats.

However, the drawing API of imlib2 is IMHO quite limited and thus we switched to
cairo. Technically, cairo has no support for loading any kind of image. However
there is "toy function" (= "you shouldn't be using this") for loading PNG images
and that is what we are currently using.

I don't feel like inventing my own library just for this, so... dunno.

Uli

-- 
'dubito ergo sum'
-- Elke's whiteboard

-- 
To unsubscribe, send mail to [email protected].

Reply via email to