Post by matt71 » Tue Nov 01, 2016 5:07 am

Hello. I'm running a clean install of 2.3.0.2 and I keep getting these errors whenever I try to load a PNG file.
2016-10-31 12:26:27 - PHP Warning: imagecreatefrompng(): gd-png: fatal libpng error: bad parameters to zlib in /system/library/image.php on line 24
2016-10-31 12:26:27 - PHP Warning: imagecreatefrompng(): gd-png error: setjmp returns error condition in /system/library/image.php on line 24
2016-10-31 12:26:27 - PHP Warning: imagecreatefrompng(): '/image/placeholder.png' is not a valid PNG file in /system/library/image.php on line 24
2016-10-31 12:26:27 - PHP Warning: imagecreatetruecolor(): Invalid image dimensions in /system/library/image.php on line 105
2016-10-31 12:26:27 - PHP Warning: imagealphablending() expects parameter 1 to be resource, boolean given in /system/library/image.php on line 108
2016-10-31 12:26:27 - PHP Warning: imagesavealpha() expects parameter 1 to be resource, boolean given in /system/library/image.php on line 109
2016-10-31 12:26:27 - PHP Warning: imagecolorallocatealpha() expects parameter 1 to be resource, boolean given in /system/library/image.php on line 110
2016-10-31 12:26:27 - PHP Warning: imagecolortransparent() expects parameter 1 to be resource, boolean given in /system/library/image.php on line 111
2016-10-31 12:26:27 - PHP Warning: imagefilledrectangle() expects parameter 1 to be resource, boolean given in /system/library/image.php on line 116
2016-10-31 12:26:27 - PHP Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /system/library/image.php on line 118
2016-10-31 12:26:27 - PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /system/library/image.php on line 119
If I try to use a PNG for a manufacturer's logo, all hell breaks loose. This error appears when I load any product page that does not have a image associated with it. I even tried to change the default png placeholder file, but that didn't do it.

Any ideas are greatly appreciated.

Thanks
Matt

New member

Posts

Joined
Sat Jan 19, 2013 4:13 am

Post by Ozfarmer » Thu Feb 22, 2018 9:16 am

Did you ever get this fixed Matt?

Active Member

Posts

Joined
Wed Aug 17, 2011 7:08 pm
Location - Australia

Post by motion2082 » Thu Feb 22, 2018 6:40 pm

Hey guys,

This is an issue with Transperant PNGs within OpenCart /system/library/image.php

Searching for a work around. Will keep you posted.

Regards,
Motion

Active Member

Posts

Joined
Tue May 12, 2015 8:48 pm

Post by Ozfarmer » Thu Mar 01, 2018 7:19 am

Great thanks!.

Active Member

Posts

Joined
Wed Aug 17, 2011 7:08 pm
Location - Australia

Post by webcorvo » Fri Mar 02, 2018 8:07 pm

Hi,
There are no issues with transparent png ;)

Opencart Developer - For custom work and support contact @ webcorvo@gmail.com


User avatar
Active Member

Posts

Joined
Mon Mar 20, 2017 11:42 pm
Location - Lisbon, Portugal

Post by straightlight » Sat Mar 03, 2018 8:41 am

webcorvo wrote:
Fri Mar 02, 2018 8:07 pm
Hi,
There are no issues with transparent png ;)
Correct. The host needs to be contacted to either re-install or properly configure the GD Library settings on the server. Contact your host.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: Semrush [Bot] and 157 guests