Problem/Motivation
This error is displayed when viewing content with some existing media image files before module activation :
Warning: imagecreatefrompng(): gd-png: fatal libpng error: cpIp: chunk data is too large in Drupal\system\Plugin\ImageToolkit\GDToolkit->load() (line 197 of core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php).
Drupal\system\Plugin\ImageToolkit\GDToolkit->load() (Line: 154)
Drupal\system\Plugin\ImageToolkit\GDToolkit->getResource() (Line: 58)
Drupal\system\Plugin\ImageToolkit\Operation\gd\Resize->execute(Array) (Line: 172)
Drupal\Core\ImageToolkit\ImageToolkitOperationBase->apply(Array) (Line: 124)
Drupal\Core\ImageToolkit\ImageToolkitBase->apply('resize', Array) (Line: 77)
Drupal\system\Plugin\ImageToolkit\Operation\gd\ScaleAndCrop->execute(Array) (Line: 172)
Drupal\Core\ImageToolkit\ImageToolkitOperationBase->apply(Array) (Line: 124)
Drupal\Core\ImageToolkit\ImageToolkitBase->apply('scale_and_crop', Array) (Line: 142)
Drupal\Core\Image\Image->apply('scale_and_crop', Array) (Line: 30)
Drupal\image\Plugin\ImageEffect\ScaleAndCropImageEffect->applyEffect(Object) (Line: 324)
Drupal\image\Entity\ImageStyle->createDerivative('private://media/image/Diane (1).png', 'private://styles/media_albums_creations/private/media/image/Diane (1).png') (Line: 166)
Drupal\image\Controller\ImageStyleDownloadController->deliver(Object, 'private', Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
It seems to be related to png files...
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes