Not a bug Corrupt JPEG data on import

Salamanca

Active member
Affected version
2.2
This is not a Xenforo bug.

Trying to import from Invision Board to Xenforo, and getting this error:

Code:
ErrorException: [E_WARNING] getimagesize(): corrupt JPEG data: 2 extraneous bytes before marker in src/addons/OzzModz/GifAvatar/XF/Service/User/Avatar.php at line 18

    XF::handlePhpError()
    getimagesize() in src/addons/OzzModz/GifAvatar/XF/Service/User/Avatar.php at line 18
    OzzModz\GifAvatar\XF\Service\User\Avatar->validateImageAsAvatar() in src/XF/Service/User/Avatar.php at line 82
    XF\Service\User\Avatar->setImage() in src/XF/Import/DataHelper/Avatar.php at line 36
    XF\Import\DataHelper\Avatar->setAvatarFromFile() in src/XF/Import/Data/User.php at line 366
    XF\Import\Data\User->postSave() in src/XF/Import/Data/AbstractData.php at line 138
    XF\Import\Data\AbstractData->save() in src/XF/Import/Helper.php at line 125
    XF\Import\Helper->importUser() in src/XF/Import/Importer/AbstractCoreImporter.php at line 107
    XF\Import\Importer\AbstractCoreImporter->importUser() in src/addons/XFI/Import/Importer/IpsForums.php at line 716
    XFI\Import\Importer\IpsForums->stepUsers() in src/XF/Import/Runner.php at line 244
    XF\Import\Runner->runStep() in src/XF/Import/Runner.php at line 61
    XF\Import\Runner->run() in src/XF/Admin/Controller/Import.php at line 234
    XF\Admin\Controller\Import->actionRun() in src/XF/Mvc/Dispatcher.php at line 352
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2345
    XF\App->run() in src/XF.php at line 512
    XF::runApp() in admin.php at line 13

I did try adding this to php.ini:

gd.jpeg_ignore_warning = 1

But did not change anything.
Any idea how to overcome this?

Thanks
Alex
 
Back
Top Bottom