Documentation

ResizeImage

string
CSocNetTools::ResizeImage(
 mixed aFile,
 int sizeX,
 int sizeY
);

The method performs resizing of an image, specified as an ID or as an array structure matching the array structure, returned by the method CFile::GetByID. When the image sizes exceed the specified sizes, resizing is performed. Non-static method.

Parameters

Parameter Description Available from version
aFile Image ID or and array matching the array structure, returned by the method CFile::GetByID.
sizeX Horizontally resized size.
sizeY Vertically resized size.

Returned value

The method returns the path to the resized image relative to site root. Returns false in case of an error.



© «Bitrix24», 2001-2024
Up