[RSS Feed/News] FFMPeg handling is very inefficient

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
\XFMG\Attachment\Media::onNewAttachment
PHP:

Code:
    public function onNewAttachment(Attachment $attachment, \XF\FileWrapper $file)
    {
        /** @var \XFMG\Service\Media\TempCreator $tempCreator */
        $tempCreator = \XF::app()->service('XFMG:Media\TempCreator');
        $tempCreator->setAttachment($attachment);
        if ($file->getExif())
        {
            $tempCreator->setExif($file->getExif());
        }
        $tempCreator->save();
    }

When this is called, the...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom