Skip to content

imagecreatefrompng(): gd-png: libpng warning #7567

@YapsBridging

Description

@YapsBridging

PHP Version

8.2

CodeIgniter4 Version

4.3.5

CodeIgniter4 Installation Method

Composer (using codeigniter4/appstarter)

Which operating systems have you tested for this bug?

Windows, Linux

Which server did you use?

apache

Database

mysql

What happened?

when i try to resize some image but not all image i found this error

imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile
codeigniter4\framework\system\Images\Handlers\GDHandler.php line 357

Steps to Reproduce

$image = \Config\Services::image();
$image->withFile(WRITEPATH . '/uploads/test.png')
->resize(100,100)
->save(WRITEPATH . '/uploads/test2.png');

Expected Output

image resize

Anything else?

10

this sample image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions