• 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

Changing font color in javascript

send email using gmail-api and google-api-php-client

Composer Curl error 60: SSL certificate problem: unable to get local issuer certificate

Get data from accuweather api url

Alert message after submitting form in PHP

What is the function of the (new Date()).getTime() in PHP?

The "client_reference_id" argument is not passed

Problems getting instance of UploadedFile in Yii2

Make Shipping Method fields Mandatory on Woocommerce checkout page

Change the alert text on add to cart action without selected variation in Woocommerce

enroll_table three field fetch to payment form to create payment field in laravel 5.5

phpseclib 2.0 can not use Composer to create autoload

Call to a member function fetch_field() on a non-object MySQLiDB

Laravel - Browser displays message again when I press back button

Combining a describing and one array with data

About Contact Privacy policy Terms and conditions