• 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

Woocommerce Edit Message "An account is already registered with your email address. Please log in."

How do I loop through an MS SQL database with VB.NET?

Laravel Passport - Not able to get token string in response?

Changing font color in javascript

curl returning 301 error after migrating to https

Laravel-fopen: failed to open stream: Permission denied

How to get result of the formula on import xlsx with maatwebsite using Laravel? I get formula and not value of the formula

wordpress : How to specify the cause "This site can’t be reached"

PHP mail sending empty mails

Filter WooCommerce related products by Polylang language

Laravel Jetsream Profile page not loading on fresh install

nginx err_connection_refused, can anyone help me?

Wordpress add responsive srcset header image to theme

I can't delete my image when it is liked because of the foreign key in mysql

How to upload mpdf file after generating to s3 bucket in php

About Contact Privacy policy Terms and conditions