$pic: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m spelling |
||
Line 4: | Line 4: | ||
* File is the full or relative path to the picture file. | * File is the full or relative path to the picture file. | ||
* .size returns the size of the picture in bytes. Can be | * .size returns the size of the picture in bytes. Can be formatted with [[$bytes]]. This is the default property. | ||
* .width returns the width of the picture in pixels. | * .width returns the width of the picture in pixels. | ||
* .height returns the height of the picture in pixels. | * .height returns the height of the picture in pixels. |
Latest revision as of 19:09, 11 May 2008
Returns information about a picture file (.jpg .bmp or .png).
$pic(file)[.size|.width|.height]
- File is the full or relative path to the picture file.
- .size returns the size of the picture in bytes. Can be formatted with $bytes. This is the default property.
- .width returns the width of the picture in pixels.
- .height returns the height of the picture in pixels.
Example
alias pictureInfo { echo -atg $nopath($1-) is $bytes($pic($1-)).suf and $pic($1-).width $+ x $+ $pic($1-).height }