• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Error when uploading certain .png files "Interlace handling should be turned on when using png_read_image"

phpphp-7.1


PHP Snippet 1:

libpng warning: Interlace handling should be turned on when using png_read_image

PHP Snippet 2:

libpng warning: tRNS: invalid with alpha channel

libpng warning: iCCP: known incorrect sRGB profile

PHP Snippet 3:

<?php
// Create an image instance
$im = imagecreatefromgif('php.gif');

// Enable interlancing
imageinterlace($im, true);

// Save the interlaced image
imagegif($im, './php_interlaced.gif');
imagedestroy($im);
?>

Related Snippets

Image upload not working through ajax Laravel

Laravel 5 issue with wherePivot

Magento 2 - How to add new block to admin panel in product page?

Add a custom text for a particular product on specific email notification in Woocommerce

Debugging Stripe Webhook Event

Reducing authentication calls on external API (Laravel 5.6)

I'm trying to use curl with php but getting this error:Could not resolve host: Bearer

How to check user Permissions using Custom Middleware in Laravel

php script to delete files older than 24 hrs, deletes all files

GA4 custom event from server side, can someone tell me how i can do the following code in php?

Select option from dropdown menu with PHP and mySql

How to set dynamic `home` and `siteurl` in WordPress?

CodeIgniter 3 is generating a session file on each request, why?

Querying only one row from a one to many relationship laravel

How to KeyBy where multiple items have the same key

About Contact Privacy policy Terms and conditions