Imlib2 does know anything of Gtk2, so you will have to make Imlib2 return something that Gtk2 (or Image::Base::Gtk2::Gdk::Drawable) understands.
It seems that Image::Base::Gtk2::Gdk::Image only thinks about "drawing" on an image, pixel by pixel or line by line, and don't have a way to draw a bitmap or JPEG buffer. Its documentation says so.
Image::Base::Gtk2::Gdk::Pixbuf can ->load from a file or ->load_string from a memory buffer. So I think the best approach would be to make Imlib2 return a JPEG buffer of the thumbnail and then use that with Image::Base::Gtk2::Gdk::Pixbuf.
Is there a reason you are using Image::Base at all instead of talking to Gtk2 yourself?
In reply to Re: Combination of Gtk2 and Imlib2
by Corion
in thread Combination of Gtk2 and Imlib2
by Schnuck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |