insaniac has asked for the wisdom of the Perl Monks concerning the following question:
I've just discovered Template::Plugin::ExifTool, great great great. Now, I've also discovered that most camera's keep a thumbnail in this exif information too, which is perfectly viewable with this great Template plugin.
ThumbnailImage => SCALAR(0x84fe774)
so my little brain saw "SCALAR" and it said to my fingers "dereference it!". so i produce something like this:
[%- USE image = ExifTool(image_file) -%] [%- thumb=image.GetValue('ThumbnailImage','Binary') ; $thumb -%]
of course, if the above worked, you wouldn't be reading this message. The error message in question is:
(line 4 is the USE-line)undef error - Template::Stash::XS: get (arg 2) must be a scalar or lis +tref at ./thumb.tmpl line 4.
If I view the variable thumb with Dumper.dump(thumb)... than I can see the binary data. Well I see:
VAR1 = \'[binary data]';
Anybody any ideas how i should display the thumb? Thanks a lot!
to ask a question is a moment of shame
to remain ignorant is a lifelong shame
|
|---|