App-Followme
view release on metacpan or search on metacpan
lib/App/Followme/JpegData.pm view on Meta::CPAN
);
}
#----------------------------------------------------------------------
# Look in the file for the data
sub fetch_from_file {
my ($self, $filename) = @_;
return () unless -e $filename;
return $self->SUPER::fetch_from_file($filename) if -T $filename;
my %dimensions;
($dimensions{width}, $dimensions{height}) = imgsize($filename);
return %dimensions;
}
#----------------------------------------------------------------------
# Get the name of the thumb photo file
lib/App/Followme/PodData.pm view on Meta::CPAN
return \%section;
}
#----------------------------------------------------------------------
# Convert filename to url
sub filename_to_url {
my ($self, $directory, $filename, $ext) = @_;
$filename = $self->convert_filename($filename);
return $self->SUPER::filename_to_url($directory, $filename, $ext);
}
#----------------------------------------------------------------------
# Find the directory containing the pod files
sub find_base_directory {
my ($self)= @_;
my @package_path = split(/::/, $self->{package});
my $package_folder = catfile(@package_path);
( run in 1.545 second using v1.01-cache-2.11-cpan-49f99fa48dc )