• 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

(Laravel) How to delete multiple models including optional relationships?

WordPress Security Standards want me to escape my html, but how to do it correctly?

get data-value with variable value

Return new collection without modifying original collection

GRPC installed successfully on ubuntu but php is looking for it in another folder

Xdebug 3 not showing in phpinfo on m1 Monterey

How to connect to MSSQL Server with PHP from Ubuntu 18.04?

Transfer data between JavaScript and PHP through JSON

Getting output of MS stored procedure on php call

Use Python plotly chart in PHP

Google API Heatmap Layer exception, why?

Laravel 5 issue with wherePivot

CodeIgniter 4: Like and Dislike Functionality

Magento 2 - How to add new block to admin panel in product page?

Composer Curl error 60: SSL certificate problem: unable to get local issuer certificate

About Contact Privacy policy Terms and conditions