• 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

Unit (real unit test) of test laravel relationship

MySQL order by field in Eloquent

WAMP/Wordpress - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

Trying to iterate over a mongodb cursor twice - failing

How to pass data to all views in Laravel 5?

PHP: Insert marker every 3 iterations

PHP: Print caught exception like Xdebug

How do I call Validator from a namespace with an already existing Validator class

Could not decode a text frame as UTF-8.

Update Order custom Field value with WooCommerce REST API

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

Performance of foreach, array_map with lambda and array_map with static function

codeigniter 4 running error first time with xampp

Accessors (Getter) & Mutators (Setter) On a Pivot Table in Laravel

Wordpress wpdb->delete issue

About Contact Privacy policy Terms and conditions