insaniac has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to load the EXIF thumbnail from images, when they are present in the EXIF header, within Gtk2. The perldoc of Gtk2::Gdk::Pixbuf says I have to use pack(), so I can pass the data to Gtk2::Gdk::Pixbuf->new_from_data();
my $thumb = pack('a*',${ $image->get_exif->{ThumbnailImage} }); my $pixbuf = Gtk2::Gdk::Pixbuf->new_from_data($thumb,'rgb',TRU +E,8,160,120,640);
Any help, tips, pointers to URLs/docs is greatly appreciated!
Thanks,
a confused monkie..
to ask a question is a moment of shame
to remain ignorant is a lifelong shame
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to use pack() with Gtk2::Gdk::Pixbuf
by zentara (Cardinal) on Sep 13, 2005 at 11:16 UTC | |
by insaniac (Friar) on Sep 13, 2005 at 11:39 UTC | |
|
Re: How to use pack() with Gtk2::Gdk::Pixbuf
by insaniac (Friar) on Sep 13, 2005 at 13:21 UTC |