• 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

Display the WooCommerce product price inside a custom function

Upgrade PHP on AWS Linux

How to implement placeholder in a php file for moodle plugin?

Override default Auth routes in Laravel 7

I'm trying to use curl with php but getting this error:Could not resolve host: Bearer

How to install ZeroMQ for PHP on an Alpine Linux container?

Statement that checks whether a URL contains a particular path?

How to pass data to all views in Laravel 5?

phpunit - testing is painfully slow

Laravel with App Engine Standard Class 'FacadeIgnitionIgnitionServiceProvider' not found

Getting output of MS stored procedure on php call

Utf8 encoding issue with Laravel

*** ERROR *** The PHP configuration loaded file is: c:/wamp64/bin/php/php8.1.0/php.ini - should be: c:/wamp64/bin/apache/apache2.4.53.1/bin/php.ini

Could not decode a text frame as UTF-8.

Connecting an HTML webpage to a SQL Server

About Contact Privacy policy Terms and conditions