There is a file (it is there!)
$imageManager = \XF::app()->imageManager();
// icant use imageMagick with XF, because the PECL is not installed normally on this client-server, but imageMagick is here, see later
/** @var \XF\Image\Gd $image */
$image = $imageManager->imageFromFile($tempPathFull);
If this file is a jpg everything is fine; if this is a webp $image is NULL.
$imageManager = \XF::app()->imageManager();
// icant use imageMagick with XF, because the PECL is not installed normally on this client-server, but imageMagick is here, see later
/** @var \XF\Image\Gd $image */
$image = $imageManager->imageFromFile($tempPathFull);
If this file is a jpg everything is fine; if this is a webp $image is NULL.
Last edited: