$pic: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
Aca20031 (talk | contribs)
No edit summary
(No difference)

Revision as of 19:06, 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 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 }