$pic

From Scriptwiki
Revision as of 21:06, 11 May 2008 by Aca20031 (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 formated 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 }