src/Webtrees/ImageBuilder.php
function imageTtfTextErrorHandler($errno, $errstr) {
        // log the error
        Log::addErrorLog('Image Builder error: >' . $errno . '/' . $errstr . '< while processing file >' . $this->media->getServerFilename() . '<');
    
        // change value of useTTF to false so the fallback watermarking can be used.
        $this->use_ttf = false;
    
        return true;
    }
function imageTtfTextErrorHandler($errno, $errstr) {
        // log the error
        Log::addErrorLog('Image Builder error: >' . $errno . '/' . $errstr . '< while processing file >' . $this->media->getServerFilename() . '<');
    
        // change value of useTTF to false so the fallback watermarking can be used.
        $this->use_ttf = false;
    
        return true;
    }
function imageTtfTextErrorHandler ( $ errno , $ errstr ) { // log the error Log :: addErrorLog ( 'Image Builder error: >' . $ errno . '/' . $ errstr . '< while processing file >' . $ this -> media -> getServerFilename ( ) . '<' ) ; // change value of useTTF to false so the fallback watermarking can be used. $ this -> use_ttf = false ; return true ; }
imagettftext is the function that is most likely to throw an error
use this custom error handler to catch and log it

@param int    $errno
@param string $errstr

@return bool
imagettftext is the function that is most likely to throw an error use this custom error handler to catch and log it