Media generate thumbnails



  • Hi all,

    I am stuck with an issue when the Media module is generating the thumbnails

    the image is well updated and present on the server, however the other version can't be created

    and it's only for JPG file !!!

    JPG file

    [2016-07-08 06:50:34] local.INFO: Generating thumbnails for path: /assets/media/site-accueil.jpg
    [2016-07-08 06:50:34] local.ERROR: Intervention\Image\Exception\NotReadableException: Unable to init from given binary data. in /opt/apache/instance/www.savtec.fr/htdocs/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:91
    Stack trace:
    #0 /opt/apache/instance/www.savtec.fr/htdocs/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php(284): Intervention\Image\Gd\Decoder->initFromBinary('\xFF\xD8\xFF\xE0\x00\x10JFIF\x00\x01\x02\x00\x00...')
    #1 /opt/apache/instance/www.savtec.fr/htdocs/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php(64): Intervention\Image\AbstractDecoder->init('\xFF\xD8\xFF\xE0\x00\x10JFIF\x00\x01\x02\x00\x00...')
    #2 /opt/apache/instance/www.savtec.fr/htdocs/vendor/intervention/image/src/Intervention/Image/ImageManager.php(50): Intervention\Image\AbstractDriver->init('\xFF\xD8\xFF\xE0\x00\x10JFIF\x00\x01\x02\x00\x00...')
    #3 /opt/apache/instance/www.savtec.fr/htdocs/Modules/Media/Image/Imagy.php(103): Intervention\Image\ImageManager->make('\xFF\xD8\xFF\xE0\x00\x10JFIF\x00\x01\x02\x00\x00...')
    #4 /opt/apache/instance/www.savtec.fr/htdocs/Modules/Media/Jobs/CreateThumbnails.php(30): Modules\Media\Image\Imagy->createAll(Object(Modules\Media\ValueObjects\MediaPath))
    #5 [internal function]: Modules\Media\Jobs\CreateThumbnails->handle()
    #6 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(507): call_user_func_array(Array, Array)
    #7 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(192): Illuminate\Container\Container->call(Array)
    #8 [internal function]: Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}(Object(Modules\Media\Jobs\CreateThumbnails))
    #9 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Modules\Media\Jobs\CreateThumbnails))
    #10 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Modules\Media\Jobs\CreateThumbnails))
    #11 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Modules\Media\Jobs\CreateThumbnails))
    #12 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(204): Illuminate\Pipeline\Pipeline->then(Object(Closure))
    #13 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(43): Illuminate\Bus\Dispatcher->dispatchNow(Object(Modules\Media\Jobs\CreateThumbnails), Object(Closure))
    #14 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(129): Illuminate\Queue\CallQueuedHandler->call(Object(Illuminate\Queue\Jobs\SyncJob), Array)
    #15 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Queue/Jobs/SyncJob.php(44): Illuminate\Queue\Jobs\Job->resolveAndFire(Array)
    #16 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Queue/SyncQueue.php(27): Illuminate\Queue\Jobs\SyncJob->fire()
    #17 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(268): Illuminate\Queue\SyncQueue->push(Object(Modules\Media\Jobs\CreateThumbnails))
    #18 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(243): Illuminate\Bus\Dispatcher->pushCommandToQueue(Object(Illuminate\Queue\SyncQueue), Object(Modules\Media\Jobs\CreateThumbnails))
    #19 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(175): Illuminate\Bus\Dispatcher->dispatchToQueue(Object(Modules\Media\Jobs\CreateThumbnails))
    #20 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Bus/DispatchesJobs.php(17): Illuminate\Bus\Dispatcher->dispatch(Object(Modules\Media\Jobs\CreateThumbnails))
    #21 /opt/apache/instance/www.savtec.fr/htdocs/Modules/Media/Services/FileService.php(55): Modules\Media\Services\FileService->dispatch(Object(Modules\Media\Jobs\CreateThumbnails))
    #22 /opt/apache/instance/www.savtec.fr/htdocs/Modules/Media/Services/FileService.php(44): Modules\Media\Services\FileService->createThumbnails(Object(Modules\Media\Entities\File))
    #23 /opt/apache/instance/www.savtec.fr/htdocs/Modules/Media/Http/Controllers/Api/MediaController.php(54): Modules\Media\Services\FileService->store(Object(Symfony\Component\HttpFoundation\File\UploadedFile))
    #24 [internal function]: Modules\Media\Http\Controllers\Api\MediaController->store(Object(Modules\Media\Http\Requests\UploadMediaRequest))
    #25 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(256): call_user_func_array(Array, Array)
    #26 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(164): Illuminate\Routing\Controller->callAction('store', Array)
    #27 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(112): Illuminate\Routing\ControllerDispatcher->call(Object(Modules\Media\Http\Controllers\Api\MediaController), Object(Illuminate\Routing\Route), 'store')
    #28 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
    #29 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
    #30 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #31 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
    #32 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(114): Illuminate\Pipeline\Pipeline->then(Object(Closure))
    #33 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(67): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(Modules\Media\Http\Controllers\Api\MediaController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'store')
    #34 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php(203): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'Modules\\Media\\H...', 'store')
    #35 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php(134): Illuminate\Routing\Route->runWithCustomDispatcher(Object(Illuminate\Http\Request))
    #36 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(708): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
    #37 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
    #38 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
    #39 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #40 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
    #41 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(710): Illuminate\Pipeline\Pipeline->then(Object(Closure))
    #42 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(673): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
    #43 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
    #44 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(236): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
    #45 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
    #46 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
    #47 /opt/apache/instance/www.savtec.fr/htdocs/app/Http/Middleware/MinifyHtml.php(11): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #48 [internal function]: App\Http\Middleware\MinifyHtml->handle(Object(Illuminate\Http\Request), Object(Closure))
    #49 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
    #50 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #51 /opt/apache/instance/www.savtec.fr/htdocs/app/Http/Middleware/VerifyCsrfToken.php(29): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
    #52 [internal function]: App\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
    #53 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
    #54 /opt/apache/instance/www.savtec.fr/htdocs/vendor/maatwebsite/laravel-sidebar/src/Middleware/ResolveSidebars.php(35): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #55 [internal function]: Maatwebsite\Sidebar\Middleware\ResolveSidebars->handle(Object(Illuminate\Http\Request), Object(Closure))
    #56 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
    #57 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #58 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
    #59 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
    #60 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #61 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
    #62 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
    #63 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #64 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
    #65 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
    #66 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(59): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #67 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
    #68 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
    #69 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #70 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
    #71 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
    #72 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
    #73 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
    #74 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(122): Illuminate\Pipeline\Pipeline->then(Object(Closure))
    #75 /opt/apache/instance/www.savtec.fr/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(87): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
    #76 /opt/apache/instance/www.savtec.fr/htdocs/public/index.php(52): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
    #77 {main}
    
    

    For pgn file it works like a charm

    About the serveur: (I don't manage it, but of course I have to resolve the issue)...

    Php 7.0.8
    Apache & nginx
    Ssl actif



  • sounds like some support are missing

    From my server

    GD Support	enabled
    GD headers Version	2.1.1
    GD library Version	2.1.1
    FreeType Support	enabled
    FreeType Linkage	with freetype
    FreeType Version	2.5.2
    GIF Read Support	enabled
    GIF Create Support	enabled
    JPEG Support	enabled
    libJPEG Version	8
    PNG Support	enabled
    libPNG Version	1.2.50
    WBMP Support	enabled
    XPM Support	enabled
    libXpm Version	30411
    XBM Support	enabled
    WebP Support	enabled
    

    From the non working one

    GD Support	enabled	
    GD Version	bundled (2.1.0 compatible)	
    GIF Read Support	enabled	
    GIF Create Support	enabled	
    PNG Support	enabled	
    libPNG Version	1.2.49	
    WBMP Support	enabled	
    XBM Support	enabled	
    

    Compilation on-going !



  • and it's working well since I have JPEG Support enabled


Log in to reply
 

Looks like your connection to AsgardCms was lost, please wait while we try to reconnect.