ImageTools

User Documentation: Functions: convertsize

int convertsize( string size [, string unit] )

Description

Converts unit number value to specified unit.

Parameters

size A number value with unit extension: px (pixels), in (inches), cm (centimeters), mm (millimeters), pt (points), pc (picas)
[ If unit extension false, reverts to default unit. ]
unit px (pixels), in (inches), cm (centimeters), mm (millimeters), pt (points), pc (picas)
[ If false, reverts to default unit. ]

Usage

$vif->convertsize($size, $unit);