• 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

Entity provider not working in security.yml php symfony3.4 ({"code":401,"message":"bad credentials"}.)

Two buttons one form

advanced custom fields wordpress custom class

I want to display default profile image if user do not have profile image

PHP - CURL using HTTPS [closed]

"Notice: Undefined variable", "Notice: Undefined index", "Warning: Undefined array key", and "Notice: Undefined offset" using PHP

Creating live search with AJAX and CodeIgniter

How to show a popup modal in codeIgniter?

Laravel 8: Array to string conversion while calling route:list

Mobile browsers are adding .html to filename on download

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

Cross-Origin Resource Sharing (CORS) witth Laravel and Vuejs

Get all WooCommerce products within own plugin

PHPSpreadsheet - How Do I Use Auto Migration Tool

Where do I need to place a hook for phpunit?

About Contact Privacy policy Terms and conditions