my $anim = Gtk2::Gdk::PixbufAnimation->new_from_file($img_path); my $image = Gtk2::Image->new_from_animation($anim);