| 1 | package App::WRT::Image; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use base qw(Exporter); | ||
| 7 | our @EXPORT_OK = qw(image_size); | ||
| 8 | |||
| 9 | use Image::Size; | ||
| 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 | return imgsize($_[0]); | ||
| 22 | } | ||
| 23 | |||
| 24 | =back | ||
| 25 | |||
| 26 | 1; |