Project

General

Profile

Actions

Added in 1.9.1

$pic(filename)

Returns the filesize/imagesize of a image file.

Parameters

Parameter Description
filename Image file to check.

Properties

Property Description
.width Return the image width.
.height Return the image height.
.size Return the image size.

Example

; Print width and height of a image file.
//echo -ag Image width is $pic(image.jpg).width height is $pic(image.jpg).height

Updated by Per Amundsen over 1 year ago · 2 revisions

Also available in: PDF HTML TXT