Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Resize
- *
- * @param array
- * @param integer
- * @param integer
- * @return array
- */
- static function Resize($pictures, $width, $height, $proportional = false)
- {
- foreach ($pictures as $picture)
- {
- if(count($picture) > 0 && $picture !== NULL && $picture !== false)
- {
- $type = ($proportional)? BX_RESIZE_IMAGE_PROPORTIONAL_ALT : BX_RESIZE_IMAGE_EXACT;
- $return = CFile::ResizeImageGet(
- $picture,
- array(
- "width" => intval($width),
- "height" => intval($height)
- ),
- $type,
- true
- );
- break;
- }
- }
- return self::ArKeyUpper($return);
- }
Advertisement
Add Comment
Please, Sign In to add comment