Unclassified NewsBoard Code Reference

UnbRescaleImage function

Rescale an arbitrary image file to smaller dimensions

function UnbRescaleImage ($filename, $maxwidth, $maxheight);

Parameters:

filename
(string) File to rescale, may be the temporary upload path (TODO: test this on Linux!)
maxwidth
(int) Maximum horizontal image width to that the image will be reduced if it exceeds it
maxheight
(int) Maximum vertical image height to that the image will be reduced if it exceeds it

Return value:

(bool) true: success
(string) error message

Implementation file: unb_lib/cp.inc.php, line 159

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.