• 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 a product custom field only in WooCommerce Admin single orders

VichUploaderBundle error "Expected argument of type "File", "NULL" given" when submitting the form without selecting any file

woocommerce change position of price

Laravel with App Engine Standard Class 'FacadeIgnitionIgnitionServiceProvider' not found

Cannot connect to own websocket server when on secured domain

PHP Array split string and Integers

How to average columns of data from multiple, flat arrays?

Is it possible to re-use an array taken from PHP via JSON in a $.ajax function?

Get sum of arrays inside array

PHP Find Array Index value in multi-line array

MISSING UPDATES FOR: MEDIA Drupal 9

generating a random code in php?

Add record for each array elements if missing in table

Server-sent events in PHP (without echo or print)

(PHPUnit) PHP Fatal error: Uncaught Error: Call to undefined function each()

About Contact Privacy policy Terms and conditions