Documentation

ImageFixSize

bool
CBlogImage::ImageFixSize(
 array aFile
);

Verifies if an image matches to the specified maximum dimensions. If dimensions are exceeded - reduces the image to the required dimensions. Static method.

Method parameters

ParameterDescription
aFile Array with image file parameters.

Returned value

In case of successful size reduction, returns true, if the passed image is smaller or equal to the specified parameters - returns true, in the rest of cases, returns false.

© «Bitrix24», 2001-2024
Up