-
Notifications
You must be signed in to change notification settings - Fork 2k
imagecreatefrompng(): gd-png: libpng warning #7567
Copy link
Copy link
Closed
Labels
bugVerified issues on the current code behavior or pull requests that will fix themVerified issues on the current code behavior or pull requests that will fix them
Description
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?
this sample image
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugVerified issues on the current code behavior or pull requests that will fix themVerified issues on the current code behavior or pull requests that will fix them
