/usr/share/perl5/URI/Title/Image.pm is in liburi-title-perl 1.900-1.
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 30 31 32 33 34 35 36 | package URI::Title::Image;
$URI::Title::Image::VERSION = '1.900';
use warnings;
use strict;
use Image::Size;
sub types {(
'image/gif',
'image/jpg',
'image/jpeg',
'image/png',
'image/x-png',
)}
sub title {
my ($class, $url, $data, $type) = @_;
my ($x, $y) = imgsize(\$data);
$type =~ s!^[^/]*/!!;
$type =~ s!^x-!!;
return $type unless $x && $y;
return "$type ($x x $y)";
}
1;
__END__
=for Pod::Coverage::TrustPod types title
=head1 NAME
URI::Title::Image - get titles of images
=cut
|