blib/lib/App/WRT/Image.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 13 | 13 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 19 | 19 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package App::WRT::Image; | ||||||
2 | |||||||
3 | 9 | 9 | 57 | use strict; | |||
9 | 17 | ||||||
9 | 272 | ||||||
4 | 9 | 9 | 51 | use warnings; | |||
9 | 11 | ||||||
9 | 271 | ||||||
5 | |||||||
6 | 9 | 9 | 54 | use base qw(Exporter); | |||
9 | 18 | ||||||
9 | 751 | ||||||
7 | our @EXPORT_OK = qw(image_size); | ||||||
8 | |||||||
9 | 9 | 9 | 5636 | use Image::Size; | |||
9 | 42660 | ||||||
9 | 804 | ||||||
10 | |||||||
11 | =over | ||||||
12 | |||||||
13 | =item image_size($path) | ||||||
14 | |||||||
15 | Returns (width, height) of a variety of image files. Called by icon_markup and | ||||||
16 | line_parse. | ||||||
17 | |||||||
18 | =cut | ||||||
19 | |||||||
20 | sub image_size { | ||||||
21 | 55 | 55 | 1 | 193 | return imgsize($_[0]); | ||
22 | } | ||||||
23 | |||||||
24 | =back | ||||||
25 | |||||||
26 | 1; |