Difference between revisions of "$pic"
From Scriptwiki
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 20: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 }