• 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

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

The "client_reference_id" argument is not passed

Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path: ) in Unknown on line 0

protect images from being copied

What is the difference between client-side and server-side programming?

I want to store data in new index as per my key in php [duplicate]

MOODLE: What does it mean to aggregate h5p assets?

How can I easily switch between PHP versions on Mac OSX?

What is my SQL missing?

Laravel unique validation on multiple columns

Star and Half Star Rating in Laravel

PHPMetrics option --excluded-dirs="myfolder" : myfolder dir is not excluded within docker

PHP Print to Network Printer

How to set dynamic `home` and `siteurl` in WordPress?

PHP: How to quickly split a key=value file into associative array

About Contact Privacy policy Terms and conditions