• 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 programmatically find public properties of a class from inside one of it's methods

LARAVEL: How to fetch id dynamically in a query builder?

WooCommerce Subscriptions: Remove role on cancelled subscription

How do I enable error reporting in Laravel?

WordPress Subquery returns more than 1 row on SELECT

Reload parent page after submit in iframe

Apply session id from request header

Laravel UUID generation

WordPress + Nginx on non-standard port behind AWS ELB results in broken links

Show date difference as "20" instead of "20 years ago"

java URL working on browser but not in client program

How to read laravel_session cookies saved in cookie memory of browser in client side?

Inserting Country Selection into MySQL PHP [duplicate]

Nginx disallowing execution of PHP in uploads directory with Magento

Show only featured products in Woocommerce shop page

About Contact Privacy policy Terms and conditions