• 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

Transpose and flatten two-dimensional indexed array where rows may not be of equal length

Unable to get password for the instance created from AMI

Adding reCAPTCHA v2 into my PHP file

php curl requesting twice

Creating a config file in PHP

How to get monthly wise data in laravel

Parsing JSON File to array in PHP

How to fix bootstrap multiselect search data using ajax

wp_remote_get() not passing authentication

PHP mail sending empty mails

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

Display specific shipping method if woocommerce product has specific acf field value

Facebook SDK error: Cross-site request forgery validation failed. Required param "state" missing from persistent data

sqlsrv_num_rows() expects parameter 1 to be resource, boolean given

Facebook API, get page post link (PHP)

About Contact Privacy policy Terms and conditions