• 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

how to get value from array in laravel

PHP block shortcut in Visual Studio Code

Artisan, creating tables in database

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

VichUploaderBundle error "Expected argument of type "File", "NULL" given" when submitting the form without selecting any file

Can't call javascript alert alertify library from PHP

Sagepay Error The Vendor failed to provide a RedirectionURL

Last order would be re-order in wooCommerce. How is it possible?

Jquery DataTables: Data not displaying in table via Ajax

CodeIgniter 3 is generating a session file on each request, why?

Laravel display validation error

How to debug in WooCommerce 3+

Update Order custom Field value with WooCommerce REST API

How To Access A Column In M-M Relationship Table In Laravel

Transpose and flatten two-dimensional indexed array where rows may not be of equal length

About Contact Privacy policy Terms and conditions