$pic » History » Version 2
Per Amundsen, 02/23/2023 07:14 PM
1 | 1 | Per Amundsen | _Added in 1.9.1_ |
---|---|---|---|
2 | |||
3 | *$pic(filename)* |
||
4 | |||
5 | Returns the filesize/imagesize of a image file. |
||
6 | |||
7 | *Parameters* |
||
8 | |||
9 | 2 | Per Amundsen | table(ktable). |
10 | |*Parameter*|*Description*| |
||
11 | | filename | Image file to check. | |
||
12 | 1 | Per Amundsen | |
13 | *Properties* |
||
14 | |||
15 | 2 | Per Amundsen | table(ktable). |
16 | |*Property*|*Description*| |
||
17 | | .width | Return the image width. | |
||
18 | | .height | Return the image height. | |
||
19 | | .size | Return the image size. | |
||
20 | 1 | Per Amundsen | |
21 | *Example* |
||
22 | |||
23 | <pre> |
||
24 | ; Print width and height of a image file. |
||
25 | //echo -ag Image width is $pic(image.jpg).width height is $pic(image.jpg).height |
||
26 | </pre> |