Display .png return error #1451

Closed
opened 2026-10-05 00:44:23 +02:00 by adam · 1 comment
Owner

Uploading .png is successful.
png image couldn't be displayed on galleries page.

According to /var/log/apache2/error.log, PHP may cause this error.
PHP Warning: imagesy() expects parameter 1 to be resource, bool given in ***/piwigo/admin/include/image.class.php on line 689,

Similar problem is found in https://piwigo.org/forum/viewtopic.php?id=22731.
But this doesn't say how to fix it by ccs coding

Could you tell how to fix it.

Environment
OS: Ubuntu 18.04
PHP: 7.4.3
MySQL: Ver 15.1 Distrib 10.3.34-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

Uploading .png is successful. png image couldn't be displayed on galleries page. According to /var/log/apache2/error.log, PHP may cause this error. _PHP Warning: imagesy() expects parameter 1 to be resource, bool given in ***/piwigo/admin/include/image.class.php on line 689,_ Similar problem is found in https://piwigo.org/forum/viewtopic.php?id=22731. But this doesn't say how to fix it by ccs coding Could you tell how to fix it. Environment OS: Ubuntu 18.04 PHP: 7.4.3 MySQL: Ver 15.1 Distrib 10.3.34-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 <!-- github-sync-id:1233362790 -->
adam closed this issue 2026-10-05 00:44:23 +02:00
Author
Owner

This has been fixed!
Piwigo couldn't display RGBA images.
The solution is to convert RGBA to RGB.

This issue is closed.

This has been fixed! Piwigo couldn't display RGBA images. The solution is to convert RGBA to RGB. This issue is closed. <!-- github-comment-id:1125601024 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1451