"mick.crane" <mick.cr...@gmail.com> wrote: > I try to load images with Perl/Tk but there is message, > "couldn't recognize data in image file "test.jpeg" at > /usr/lib/x86_64-linux-gnu/perl5/5.38/Tk/Image.pm line 21" > I've tried different images/pngs/jpgs with same error. > images load OK in other viewers. > Installed tkpng with apt. > > Anybody successfully used images with Perl/Tk?
You'll likely do better asking perl questions on e.g the perlmonks site. > Would Tk::JPEG/Tk::PNG from cpan be happy with the Debian Tk and may > possibly help recognise the file format? Sorry, are you suggesting using versions different to that which came with the version you already have? Why would you even think of doing that? If you think the version of Tk you already have isn't working then replace the whole thing, not just bits of it. But I'd think that was premature myself. > Or is there some 'pruning' of the images, made with Gimp, needed to > work with Tk? > > mick >