• 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

Server-sent events in PHP (without echo or print)

Adding custom body class to the custom archive pages

How can i hide dt if dd got empty value

MySQL upgrade causing unexpected results on simple WHERE clauses

How to disable only_full_group_by option in Laravel

Xdebug 3 not showing in phpinfo on m1 Monterey

Warning file_get_contents () failed to open stream: HTTP request failed! HTTP/1.0 402 Payment Required

stay with the last 15 elements of an array [duplicate]

Google Gmail API - How to login programatically?

Adding the custom page with add_menu_page function on Wordpress

Implode columnar values between two arrays into a flat array of concatenated strings

PHP Deprecated issue when running artisan command

Cannot retrieve error message using Symfony HttpClient if the response is not "ok"

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given [duplicate]

Load a .env file with PHP

About Contact Privacy policy Terms and conditions