Fal::process()
\nn\t3::Fal()->process($fileObj = '', $processing = []);
Calculates an image via maxWidth, maxHeight, cropVariant etc.
Returns URI to the image as a string. Helpful for calculating thumbnails in the backend.
Alias to \nn\t3::File()->process()
\nn\t3::File()->process( 'fileadmin/images/portrait.jpg', ['maxWidth'=>200] );
\nn\t3::File()->process( '1:/images/portrait.jpg', ['maxWidth'=>200] );
\nn\t3::File()->process( $sysFile, ['maxWidth'=>200] );
\nn\t3::File()->process( $sysFileReference, ['maxWidth'=>200, 'cropVariant'=>'square'] );
Copied!
| @return string
Source Code
public function process ( $fileObj = '', $processing = [] )
{
return \nn\t3::File()->process( $fileObj, $processing );
}
Copied!