/usr/share/perl5/URI/Title/Image.pm is in liburi-title-perl 1.86-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | =head NAME
URI::Title::Image - get titles of images
=cut
package URI::Title::Image;
use warnings;
use strict;
use Image::Size;
sub types {(
'image/gif',
'image/jpg',
'image/jpeg',
'image/png',
)}
sub title {
my ($class, $url, $data, $type) = @_;
my ($x, $y) = imgsize(\$data);
$type =~ s!^[^/]*/!!;
return $type unless $x && $y;
return "$type ($x x $y)";
}
1;
|