• 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

Coinpayments create_transaction "ERROR: Invalid command!"

PHP 8 - libxml_disable_entity_loader() has been deprecated. How do I replace the functionality it provides?

How can I make a full text index of the column?

Remove "estimated for {country}" text after tax amount in Woocommerce checkout page

Filter array by skipping every nth element from the end

Destroy session upon refresh

Project structure for PHP

Select option from dropdown menu with PHP and mySql

Is it possible to re-use an array taken from PHP via JSON in a $.ajax function?

Laravel: HTML in notification

Wordpress 'post_type_link' hides permalink

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

I want to use codeigniter foreign character library in my custom PHP project how i can use it?

Appending data to an anchor tag

Why does using salted hash on python and php give me different results?

About Contact Privacy policy Terms and conditions