$pic

From Scriptwiki
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 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 }