• 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

TesseractOCR not working for Laravel

How can I create a Download Page with post php method?

Unsure why I am getting: Number of variables doesn't match number of parameters in prepared statement

Not able to access model in the controller mautic

Apply filter array/return terms

Return new collection without modifying original collection

Uncaught TypeError: Cannot read property 'length' of null when retrieving tags from wp

PHP echo values of all sub keys [duplicate]

Laravel Model save() & update() Not Saving

WordPress - Dynamically add user ID to the end of a URL

How to assert parameter attribute sub-structures in PHPUnit mock call expectations

Star rating with half star support

Upload a file Using PHP and JavaScript

PHP: How to quickly split a key=value file into associative array

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null

About Contact Privacy policy Terms and conditions